[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1362231422-5192-1-git-send-email-peter@hurleysoftware.com>
Date: Sat, 2 Mar 2013 08:37:02 -0500
From: Peter Hurley <peter@...leysoftware.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Fengguang Wu <fengguang.wu@...el.com>,
linux-kernel@...r.kernel.org, Johannes Weiner <hannes@...xchg.org>,
Peter Hurley <peter@...leysoftware.com>
Subject: [PATCH mmotm] ipc: find_msg can be static
From: Fengguang Wu <fengguang.wu@...el.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@...xchg.org>
Signed-off-by: Peter Hurley <peter@...leysoftware.com>
Reported-by: Fengguang Wu <fengguang.wu@...el.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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists