Whamcloud - gitweb
LU-6245 libcfs: remove types abstraction from libcfs/LNet code
[fs/lustre-release.git] / lnet / lnet / acceptor.c
index 496325c..d6448fe 100644 (file)
@@ -354,7 +354,7 @@ lnet_acceptor(void *arg)
         __u32          magic;
         __u32          peer_ip;
         int            peer_port;
-        int            secure = (int)((long_ptr_t)arg);
+       int            secure = (int)((uintptr_t)arg);
 
         LASSERT (lnet_acceptor_state.pta_sock == NULL);
 
@@ -486,7 +486,7 @@ lnet_acceptor_start(void)
        if (lnet_count_acceptor_nis() == 0)  /* not required */
                return 0;
 
-       task = kthread_run(lnet_acceptor, (void *)(ulong_ptr_t)secure,
+       task = kthread_run(lnet_acceptor, (void *)(uintptr_t)secure,
                           "acceptor_%03ld", secure);
        if (IS_ERR(task)) {
                rc2 = PTR_ERR(task);