From: Fengguang Wu Date: Tue, 26 Mar 2013 23:26:00 +0000 (+1100) Subject: ipc: find_msg can be static X-Git-Tag: next-20130402~2^2~110 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7b2dbc0e1d8c90c5baf814beb2b94a441259f954;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 346f8ef8bc57..fcaf2d8d4830 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;