aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/subscr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/subscr.c')
-rw-r--r--net/tipc/subscr.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c
index 198371723b4..5bcd1f6e103 100644
--- a/net/tipc/subscr.c
+++ b/net/tipc/subscr.c
@@ -92,7 +92,7 @@ static u32 htohl(u32 in, int swap)
92 * try to take the lock if the message is rejected and returned! 92 * try to take the lock if the message is rejected and returned!
93 */ 93 */
94 94
95static void subscr_send_event(struct subscription *sub, 95static void subscr_send_event(struct tipc_subscription *sub,
96 u32 found_lower, 96 u32 found_lower,
97 u32 found_upper, 97 u32 found_upper,
98 u32 event, 98 u32 event,
@@ -118,7 +118,7 @@ static void subscr_send_event(struct subscription *sub,
118 * Returns 1 if there is overlap, otherwise 0. 118 * Returns 1 if there is overlap, otherwise 0.
119 */ 119 */
120 120
121int tipc_subscr_overlap(struct subscription *sub, 121int tipc_subscr_overlap(struct tipc_subscription *sub,
122 u32 found_lower, 122 u32 found_lower,
123 u32 found_upper) 123 u32 found_upper)
124 124
@@ -138,7 +138,7 @@ int tipc_subscr_overlap(struct subscription *sub,
138 * Protected by nameseq.lock in name_table.c 138 * Protected by nameseq.lock in name_table.c
139 */ 139 */
140 140
141void tipc_subscr_report_overlap(struct subscription *sub, 141void tipc_subscr_report_overlap(struct tipc_subscription *sub,
142 u32 found_lower, 142 u32 found_lower,
143 u32 found_upper, 143 u32 found_upper,
144 u32 event, 144 u32 event,
@@ -158,7 +158,7 @@ void tipc_subscr_report_overlap(struct subscription *sub,
158 * subscr_timeout - subscription timeout has occurred 158 * subscr_timeout - subscription timeout has occurred
159 */ 159 */
160 160
161static void subscr_timeout(struct subscription *sub) 161static void subscr_timeout(struct tipc_subscription *sub)
162{ 162{
163 struct tipc_port *server_port; 163 struct tipc_port *server_port;
164 164
@@ -205,7 +205,7 @@ static void subscr_timeout(struct subscription *sub)
205 * Called with subscriber port locked. 205 * Called with subscriber port locked.
206 */ 206 */
207 207
208static void subscr_del(struct subscription *sub) 208static void subscr_del(struct tipc_subscription *sub)
209{ 209{
210 tipc_nametbl_unsubscribe(sub); 210 tipc_nametbl_unsubscribe(sub);
211 list_del(&sub->subscription_list); 211 list_del(&sub->subscription_list);
@@ -227,8 +227,8 @@ static void subscr_del(struct subscription *sub)
227static void subscr_terminate(struct subscriber *subscriber) 227static void subscr_terminate(struct subscriber *subscriber)
228{ 228{
229 u32 port_ref; 229 u32 port_ref;
230 struct subscription *sub; 230 struct tipc_subscription *sub;
231 struct subscription *sub_temp; 231 struct tipc_subscription *sub_temp;
232 232
233 /* Invalidate subscriber reference */ 233 /* Invalidate subscriber reference */
234 234
@@ -280,8 +280,8 @@ static void subscr_terminate(struct subscriber *subscriber)
280static void subscr_cancel(struct tipc_subscr *s, 280static void subscr_cancel(struct tipc_subscr *s,
281 struct subscriber *subscriber) 281 struct subscriber *subscriber)
282{ 282{
283 struct subscription *sub; 283 struct tipc_subscription *sub;
284 struct subscription *sub_temp; 284 struct tipc_subscription *sub_temp;
285 int found = 0; 285 int found = 0;
286 286
287 /* Find first matching subscription, exit if not found */ 287 /* Find first matching subscription, exit if not found */
@@ -314,10 +314,10 @@ static void subscr_cancel(struct tipc_subscr *s,
314 * Called with subscriber port locked. 314 * Called with subscriber port locked.
315 */ 315 */
316 316
317static struct subscription *subscr_subscribe(struct tipc_subscr *s, 317static struct tipc_subscription *subscr_subscribe(struct tipc_subscr *s,
318 struct subscriber *subscriber) 318 struct subscriber *subscriber)
319{ 319{
320 struct subscription *sub; 320 struct tipc_subscription *sub;
321 int swap; 321 int swap;
322 322
323 /* Determine subscriber's endianness */ 323 /* Determine subscriber's endianness */
@@ -418,7 +418,7 @@ static void subscr_conn_msg_event(void *usr_handle,
418{ 418{
419 struct subscriber *subscriber = usr_handle; 419 struct subscriber *subscriber = usr_handle;
420 spinlock_t *subscriber_lock; 420 spinlock_t *subscriber_lock;
421 struct subscription *sub; 421 struct tipc_subscription *sub;
422 422
423 /* 423 /*
424 * Lock subscriber's server port (& make a local copy of lock pointer, 424 * Lock subscriber's server port (& make a local copy of lock pointer,