diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2014-07-20 01:14:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-21 01:19:04 -0400 |
commit | 52f50ce556af7008e1c2088d8b2b778ef5e79ff1 (patch) | |
tree | a7d29e5e24b223e00f59858badea5f6a0f3a8986 /net/tipc | |
parent | 1b31a1bf851b55ce3180b0e40998ee32a2cc61e0 (diff) |
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>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/socket.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 5ad42f6137d8..8477d08a6aa0 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c | |||
@@ -635,7 +635,8 @@ void tipc_sk_mcast_rcv(struct sk_buff *buf) | |||
635 | * Returns 0 (TIPC_OK) if message was consumed, 1 (TIPC_FWD_MSG) if | 635 | * Returns 0 (TIPC_OK) if message was consumed, 1 (TIPC_FWD_MSG) if |
636 | * (CONN_PROBE_REPLY) message should be forwarded. | 636 | * (CONN_PROBE_REPLY) message should be forwarded. |
637 | */ | 637 | */ |
638 | int tipc_sk_proto_rcv(struct tipc_sock *tsk, u32 *dnode, struct sk_buff *buf) | 638 | static int tipc_sk_proto_rcv(struct tipc_sock *tsk, u32 *dnode, |
639 | struct sk_buff *buf) | ||
639 | { | 640 | { |
640 | struct tipc_msg *msg = buf_msg(buf); | 641 | struct tipc_msg *msg = buf_msg(buf); |
641 | struct tipc_port *port = &tsk->port; | 642 | struct tipc_port *port = &tsk->port; |
@@ -2068,7 +2069,7 @@ static int tipc_getsockopt(struct socket *sock, int lvl, int opt, | |||
2068 | return put_user(sizeof(value), ol); | 2069 | return put_user(sizeof(value), ol); |
2069 | } | 2070 | } |
2070 | 2071 | ||
2071 | int tipc_ioctl(struct socket *sk, unsigned int cmd, unsigned long arg) | 2072 | static int tipc_ioctl(struct socket *sk, unsigned int cmd, unsigned long arg) |
2072 | { | 2073 | { |
2073 | struct tipc_sioc_ln_req lnr; | 2074 | struct tipc_sioc_ln_req lnr; |
2074 | void __user *argp = (void __user *)arg; | 2075 | void __user *argp = (void __user *)arg; |