]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ipc: find_msg can be static
authorFengguang Wu <fengguang.wu@intel.com>
Wed, 20 Mar 2013 04:08:41 +0000 (15:08 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:34:31 +0000 (16:34 +1100)
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 <hannes@cmpxchg.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/msg.c

index daeca130488557311555818216b4ff9701fa31b0..309583c308cb3f998a4faca1cdcb2595c8e6501e 100644 (file)
--- 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;