Skip to contentSkip to conversation

ipc: find_msg can be static

PATCH New Peter Hurley 1 participant 1 message Mar 2, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20130302130742.GA13966@localhost

#1 lore raw

PATCH 1/1 ipc: find_msg can be static

From: Fengguang Wu <[email protected]>

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?

---
 msg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ipc/msg.c +1 -1
index daeca13..309583c 100644
@@ -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;