diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2015-10-24 10:56:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-25 09:31:52 -0400 |
commit | 742e038330a485350334ee5eb75dce4a9dff87cd (patch) | |
tree | a3a79797617cf9438d8509c437cf3f6d7ff4a3b3 /net/tipc | |
parent | 687f079addba1ac7f97ce97080c2291bbe8c8dce (diff) |
tipc: link_is_bc_sndlink() can be static
TO: "David S. Miller" <davem@davemloft.net>
CC: netdev@vger.kernel.org
CC: Jon Maloy <jon.maloy@ericsson.com>
CC: Ying Xue <ying.xue@windriver.com>
CC: tipc-discussion@lists.sourceforge.net
CC: linux-kernel@vger.kernel.org
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/link.c | 8 | ||||
-rw-r--r-- | net/tipc/node.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c index 4449fa01e232..9efbdbde2b08 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c | |||
@@ -163,12 +163,12 @@ bool tipc_link_is_blocked(struct tipc_link *l) | |||
163 | return l->state & (LINK_RESETTING | LINK_PEER_RESET | LINK_FAILINGOVER); | 163 | return l->state & (LINK_RESETTING | LINK_PEER_RESET | LINK_FAILINGOVER); |
164 | } | 164 | } |
165 | 165 | ||
166 | bool link_is_bc_sndlink(struct tipc_link *l) | 166 | static bool link_is_bc_sndlink(struct tipc_link *l) |
167 | { | 167 | { |
168 | return !l->bc_sndlink; | 168 | return !l->bc_sndlink; |
169 | } | 169 | } |
170 | 170 | ||
171 | bool link_is_bc_rcvlink(struct tipc_link *l) | 171 | static bool link_is_bc_rcvlink(struct tipc_link *l) |
172 | { | 172 | { |
173 | return ((l->bc_rcvlink == l) && !link_is_bc_sndlink(l)); | 173 | return ((l->bc_rcvlink == l) && !link_is_bc_sndlink(l)); |
174 | } | 174 | } |
@@ -1364,8 +1364,8 @@ static bool tipc_link_build_bc_proto_msg(struct tipc_link *l, bool bcast, | |||
1364 | * Give a newly added peer node the sequence number where it should | 1364 | * Give a newly added peer node the sequence number where it should |
1365 | * start receiving and acking broadcast packets. | 1365 | * start receiving and acking broadcast packets. |
1366 | */ | 1366 | */ |
1367 | void tipc_link_build_bc_init_msg(struct tipc_link *l, | 1367 | static void tipc_link_build_bc_init_msg(struct tipc_link *l, |
1368 | struct sk_buff_head *xmitq) | 1368 | struct sk_buff_head *xmitq) |
1369 | { | 1369 | { |
1370 | struct sk_buff_head list; | 1370 | struct sk_buff_head list; |
1371 | 1371 | ||
diff --git a/net/tipc/node.c b/net/tipc/node.c index 7493506b069b..20cddec0a43c 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c | |||
@@ -1083,7 +1083,7 @@ int tipc_node_xmit_skb(struct net *net, struct sk_buff *skb, u32 dnode, | |||
1083 | * | 1083 | * |
1084 | * Invoked with no locks held. | 1084 | * Invoked with no locks held. |
1085 | */ | 1085 | */ |
1086 | void tipc_node_bc_rcv(struct net *net, struct sk_buff *skb, int bearer_id) | 1086 | static void tipc_node_bc_rcv(struct net *net, struct sk_buff *skb, int bearer_id) |
1087 | { | 1087 | { |
1088 | int rc; | 1088 | int rc; |
1089 | struct sk_buff_head xmitq; | 1089 | struct sk_buff_head xmitq; |