浏览代码

tipc: fix sparse non static symbol warnings

Fixes the following sparse warnings:

net/tipc/socket.c:545:5: warning:
 symbol 'tipc_sk_proto_rcv' was not declared. Should it be static?
net/tipc/socket.c:2015:5: warning:
 symbol 'tipc_ioctl' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Wei Yongjun 11 年之前
父节点
当前提交
52f50ce556
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      net/tipc/socket.c

+ 3 - 2
net/tipc/socket.c

@@ -635,7 +635,8 @@ void tipc_sk_mcast_rcv(struct sk_buff *buf)
  * Returns 0 (TIPC_OK) if message was consumed, 1 (TIPC_FWD_MSG) if
  * Returns 0 (TIPC_OK) if message was consumed, 1 (TIPC_FWD_MSG) if
  * (CONN_PROBE_REPLY) message should be forwarded.
  * (CONN_PROBE_REPLY) message should be forwarded.
  */
  */
-int tipc_sk_proto_rcv(struct tipc_sock *tsk, u32 *dnode, struct sk_buff *buf)
+static int tipc_sk_proto_rcv(struct tipc_sock *tsk, u32 *dnode,
+			     struct sk_buff *buf)
 {
 {
 	struct tipc_msg *msg = buf_msg(buf);
 	struct tipc_msg *msg = buf_msg(buf);
 	struct tipc_port *port = &tsk->port;
 	struct tipc_port *port = &tsk->port;
@@ -2068,7 +2069,7 @@ static int tipc_getsockopt(struct socket *sock, int lvl, int opt,
 	return put_user(sizeof(value), ol);
 	return put_user(sizeof(value), ol);
 }
 }
 
 
-int tipc_ioctl(struct socket *sk, unsigned int cmd, unsigned long arg)
+static int tipc_ioctl(struct socket *sk, unsigned int cmd, unsigned long arg)
 {
 {
 	struct tipc_sioc_ln_req lnr;
 	struct tipc_sioc_ln_req lnr;
 	void __user *argp = (void __user *)arg;
 	void __user *argp = (void __user *)arg;