File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -114,12 +114,12 @@ static inline u32 buf_seqno(struct sk_buff *buf)
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 )
Original file line number Diff line number Diff line change @@ -1234,7 +1234,8 @@ int tipc_connect2port(u32 ref, struct tipc_portid const *peer)
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 :
Original file line number Diff line number Diff line change @@ -329,9 +329,10 @@ static void subscr_conn_shutdown_event(void *usr_handle,
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
@@ -350,9 +351,10 @@ static void subscr_conn_msg_event(void *usr_handle,
350
351
const unchar * data ,
351
352
u32 size )
352
353
{
353
- struct subscriber * subscriber = ref_lock (( u32 ) usr_handle ) ;
354
+ struct subscriber * subscriber ;
354
355
spinlock_t * subscriber_lock ;
355
356
357
+ subscriber = ref_lock ((u32 )(unsigned long )usr_handle );
356
358
if (subscriber == NULL )
357
359
return ;
358
360
@@ -409,7 +411,7 @@ static void subscr_named_msg_event(void *usr_handle,
409
411
/* Establish a connection to subscriber */
410
412
411
413
tipc_createport (topsrv .user_ref ,
412
- (void * )subscriber -> ref ,
414
+ (void * )( unsigned long ) subscriber -> ref ,
413
415
importance ,
414
416
0 ,
415
417
0 ,
You can’t perform that action at this time.
0 commit comments