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