Skip to content

Commit 742e038

Browse files
Wu Fengguangdavem330
authored andcommitted
tipc: link_is_bc_sndlink() can be static
TO: "David S. Miller" <[email protected]> CC: [email protected] CC: Jon Maloy <[email protected]> CC: Ying Xue <[email protected]> CC: [email protected] CC: [email protected] Signed-off-by: Fengguang Wu <[email protected]> Acked-by: Jon Maloy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 687f079 commit 742e038

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

net/tipc/link.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ bool tipc_link_is_blocked(struct tipc_link *l)
163163
return l->state & (LINK_RESETTING | LINK_PEER_RESET | LINK_FAILINGOVER);
164164
}
165165

166-
bool link_is_bc_sndlink(struct tipc_link *l)
166+
static bool link_is_bc_sndlink(struct tipc_link *l)
167167
{
168168
return !l->bc_sndlink;
169169
}
170170

171-
bool link_is_bc_rcvlink(struct tipc_link *l)
171+
static bool link_is_bc_rcvlink(struct tipc_link *l)
172172
{
173173
return ((l->bc_rcvlink == l) && !link_is_bc_sndlink(l));
174174
}
@@ -1364,8 +1364,8 @@ static bool tipc_link_build_bc_proto_msg(struct tipc_link *l, bool bcast,
13641364
* Give a newly added peer node the sequence number where it should
13651365
* start receiving and acking broadcast packets.
13661366
*/
1367-
void tipc_link_build_bc_init_msg(struct tipc_link *l,
1368-
struct sk_buff_head *xmitq)
1367+
static void tipc_link_build_bc_init_msg(struct tipc_link *l,
1368+
struct sk_buff_head *xmitq)
13691369
{
13701370
struct sk_buff_head list;
13711371

net/tipc/node.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ int tipc_node_xmit_skb(struct net *net, struct sk_buff *skb, u32 dnode,
10831083
*
10841084
* Invoked with no locks held.
10851085
*/
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)
10871087
{
10881088
int rc;
10891089
struct sk_buff_head xmitq;

0 commit comments

Comments
 (0)