lkml.org 
[lkml]   [2013]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH mmotm] ipc: find_msg can be static
Date
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;

\
 
 \ /
  Last update: 2013-03-02 15:21    [W:1.065 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site