diff options
Diffstat (limited to 'net/tipc/bcast.c')
-rw-r--r-- | net/tipc/bcast.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c index a926cec24119..64cca6479560 100644 --- a/net/tipc/bcast.c +++ b/net/tipc/bcast.c | |||
@@ -107,22 +107,22 @@ static spinlock_t bc_lock = SPIN_LOCK_UNLOCKED; | |||
107 | char tipc_bclink_name[] = "multicast-link"; | 107 | char tipc_bclink_name[] = "multicast-link"; |
108 | 108 | ||
109 | 109 | ||
110 | static inline u32 buf_seqno(struct sk_buff *buf) | 110 | static u32 buf_seqno(struct sk_buff *buf) |
111 | { | 111 | { |
112 | return msg_seqno(buf_msg(buf)); | 112 | return msg_seqno(buf_msg(buf)); |
113 | } | 113 | } |
114 | 114 | ||
115 | static inline u32 bcbuf_acks(struct sk_buff *buf) | 115 | static u32 bcbuf_acks(struct sk_buff *buf) |
116 | { | 116 | { |
117 | return (u32)(unsigned long)TIPC_SKB_CB(buf)->handle; | 117 | return (u32)(unsigned long)TIPC_SKB_CB(buf)->handle; |
118 | } | 118 | } |
119 | 119 | ||
120 | static inline void bcbuf_set_acks(struct sk_buff *buf, u32 acks) | 120 | static void bcbuf_set_acks(struct sk_buff *buf, u32 acks) |
121 | { | 121 | { |
122 | TIPC_SKB_CB(buf)->handle = (void *)(unsigned long)acks; | 122 | TIPC_SKB_CB(buf)->handle = (void *)(unsigned long)acks; |
123 | } | 123 | } |
124 | 124 | ||
125 | static inline void bcbuf_decr_acks(struct sk_buff *buf) | 125 | static void bcbuf_decr_acks(struct sk_buff *buf) |
126 | { | 126 | { |
127 | bcbuf_set_acks(buf, bcbuf_acks(buf) - 1); | 127 | bcbuf_set_acks(buf, bcbuf_acks(buf) - 1); |
128 | } | 128 | } |
@@ -134,7 +134,7 @@ static inline void bcbuf_decr_acks(struct sk_buff *buf) | |||
134 | * Called with 'node' locked, bc_lock unlocked | 134 | * Called with 'node' locked, bc_lock unlocked |
135 | */ | 135 | */ |
136 | 136 | ||
137 | static inline void bclink_set_gap(struct node *n_ptr) | 137 | static void bclink_set_gap(struct node *n_ptr) |
138 | { | 138 | { |
139 | struct sk_buff *buf = n_ptr->bclink.deferred_head; | 139 | struct sk_buff *buf = n_ptr->bclink.deferred_head; |
140 | 140 | ||
@@ -154,7 +154,7 @@ static inline void bclink_set_gap(struct node *n_ptr) | |||
154 | * distribute NACKs, but tries to use the same spacing (divide by 16). | 154 | * distribute NACKs, but tries to use the same spacing (divide by 16). |
155 | */ | 155 | */ |
156 | 156 | ||
157 | static inline int bclink_ack_allowed(u32 n) | 157 | static int bclink_ack_allowed(u32 n) |
158 | { | 158 | { |
159 | return((n % TIPC_MIN_LINK_WIN) == tipc_own_tag); | 159 | return((n % TIPC_MIN_LINK_WIN) == tipc_own_tag); |
160 | } | 160 | } |