public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH mmotm] ipc: find_msg can be static
       [not found] <20130302130742.GA13966@localhost>
@ 2013-03-02 13:37 ` Peter Hurley
  0 siblings, 0 replies; only message in thread
From: Peter Hurley @ 2013-03-02 13:37 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Fengguang Wu, linux-kernel, Johannes Weiner, Peter Hurley

From: Fengguang Wu <fengguang.wu@intel.com>

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>
---
 msg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipc/msg.c b/ipc/msg.c
index daeca13..309583c 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;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-03-02 13:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20130302130742.GA13966@localhost>
2013-03-02 13:37 ` [PATCH mmotm] ipc: find_msg can be static Peter Hurley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox