From: Fengguang Wu Date: Wed, 20 Mar 2013 04:08:41 +0000 (+1100) Subject: ipc: find_msg can be static X-Git-Tag: next-20130322~1^2~81 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8d52eef21a3f003e7417a64b303943c64151b813;p=karo-tx-linux.git ipc: find_msg can be static Fixes sparse warning identified by Fengguang's test robot: ipc/msg.c:810:16: sparse: symbol 'find_msg' was not declared. Should it be static? Cc: Johannes Weiner Signed-off-by: Peter Hurley Reported-by: Fengguang Wu Signed-off-by: Andrew Morton --- diff --git a/ipc/msg.c b/ipc/msg.c index daeca1304885..309583c308cb 100644 --- a/ipc/msg.c +++ b/ipc/msg.c @@ -807,7 +807,7 @@ static inline void free_copy(struct msg_msg *copy) } #endif -struct msg_msg *find_msg(struct msg_queue *msq, long *msgtyp, int mode) +static struct msg_msg *find_msg(struct msg_queue *msq, long *msgtyp, int mode) { struct msg_msg *msg; long count = 0;