staging: lustre: lnet: specify address space
PATCH 1/1 staging: lustre: lnet: specify address space
Fix warning issued by sparse:
incorrect type in assignment (different address spaces).
Signed-off-by Paolo Cretaro <[email protected]>
--- drivers/staging/lustre/lnet/lnet/lib-socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lnet/lnet/lib-socket.c +1 -1
@@ -181,7 +181,7 @@ lnet_ipif_enumerate(char ***namesp) goto out0; } - ifc.ifc_buf = (char *)ifr; + ifc.ifc_buf = (char __user *)ifr; ifc.ifc_len = nalloc *sizeof (*ifr); rc =lnet_sock_ioctl (SIOCGIFCONF , (unsigned long )&ifc);
Signature · 1 line
2.13.0
PATCH 1/1 staging: lustre: lnet: specify address space
Quoted 13 lines · Paolo Cretaro
Fix warning issued by sparse:
incorrect type in assignment (different address spaces).Signed-off-by Paolo Cretaro <[email protected]>--- drivers/staging/lustre/lnet/lnet/lib-socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/lustre/lnet/lnet/lib-socket.c +0
-0
drivers/staging/lustre/lnet/lnet/lib-socket.c lnet_ipif_enumerate(char ***namesp) · line 184
Quoted 5 lines
drivers/staging/lustre/lnet/lnet/lib-socket.c +1
-1@@ -181,7 +181,7 @@ lnet_ipif_enumerate(char ***namesp) goto out0; } - ifc.ifc_buf = (char *)ifr; + ifc.ifc_buf = (char __user *)ifr;
But it's not a __user pointer so this is wrong. You have deleted a valuable warning message which is there to inform us about important bugs.
regards,
dan carpenter