[TIPC]: Fix 64-bit build warnings.

When storing u32 values in a pointer, need to do
some long casts to keep GCC happy.

Signed-off-by: David S. Miller <davem@davemloft.net>

+9 -6
+2 -2
net/tipc/bcast.c
··· 114 114 115 115 static inline u32 bcbuf_acks(struct sk_buff *buf) 116 116 { 117 - return (u32)TIPC_SKB_CB(buf)->handle; 117 + return (u32)(unsigned long)TIPC_SKB_CB(buf)->handle; 118 118 } 119 119 120 120 static inline void bcbuf_set_acks(struct sk_buff *buf, u32 acks) 121 121 { 122 - TIPC_SKB_CB(buf)->handle = (void *)acks; 122 + TIPC_SKB_CB(buf)->handle = (void *)(unsigned long)acks; 123 123 } 124 124 125 125 static inline void bcbuf_decr_acks(struct sk_buff *buf)
+2 -1
net/tipc/port.c
··· 1234 1234 p_ptr->publ.connected = 1; 1235 1235 k_start_timer(&p_ptr->timer, p_ptr->probing_interval); 1236 1236 1237 - nodesub_subscribe(&p_ptr->subscription,peer->node, (void *)ref, 1237 + nodesub_subscribe(&p_ptr->subscription,peer->node, 1238 + (void *)(unsigned long)ref, 1238 1239 (net_ev_handler)port_handle_node_down); 1239 1240 res = TIPC_OK; 1240 1241 exit:
+5 -3
net/tipc/subscr.c
··· 329 329 unsigned int size, 330 330 int reason) 331 331 { 332 - struct subscriber *subscriber = ref_lock((u32)usr_handle); 332 + struct subscriber *subscriber; 333 333 spinlock_t *subscriber_lock; 334 334 335 + subscriber = ref_lock((u32)(unsigned long)usr_handle); 335 336 if (subscriber == NULL) 336 337 return; 337 338 ··· 351 350 const unchar *data, 352 351 u32 size) 353 352 { 354 - struct subscriber *subscriber = ref_lock((u32)usr_handle); 353 + struct subscriber *subscriber; 355 354 spinlock_t *subscriber_lock; 356 355 356 + subscriber = ref_lock((u32)(unsigned long)usr_handle); 357 357 if (subscriber == NULL) 358 358 return; 359 359 ··· 411 409 /* Establish a connection to subscriber */ 412 410 413 411 tipc_createport(topsrv.user_ref, 414 - (void *)subscriber->ref, 412 + (void *)(unsigned long)subscriber->ref, 415 413 importance, 416 414 0, 417 415 0,