[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>
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c
index 451d875..80e219b 100644
--- a/net/tipc/subscr.c
+++ b/net/tipc/subscr.c
@@ -329,9 +329,10 @@
unsigned int size,
int reason)
{
- struct subscriber *subscriber = ref_lock((u32)usr_handle);
+ struct subscriber *subscriber;
spinlock_t *subscriber_lock;
+ subscriber = ref_lock((u32)(unsigned long)usr_handle);
if (subscriber == NULL)
return;
@@ -350,9 +351,10 @@
const unchar *data,
u32 size)
{
- struct subscriber *subscriber = ref_lock((u32)usr_handle);
+ struct subscriber *subscriber;
spinlock_t *subscriber_lock;
+ subscriber = ref_lock((u32)(unsigned long)usr_handle);
if (subscriber == NULL)
return;
@@ -409,7 +411,7 @@
/* Establish a connection to subscriber */
tipc_createport(topsrv.user_ref,
- (void *)subscriber->ref,
+ (void *)(unsigned long)subscriber->ref,
importance,
0,
0,