[PATCH] staging: lustre: lnet: fix type warning in lib-socket.c

From: Geliang Tang
Date: Sun Jun 28 2015 - 02:17:00 EST


This patch fixes the following sparse warning:

drivers/staging/lustre/lnet/lnet/lib-socket.c:175:29:
warning: incorrect type in assignment (different address spaces)
expected char [noderef] <asn:1>*ifcu_buf
got char *<noident>

Signed-off-by: Geliang Tang <geliangtang@xxxxxxx>
---
drivers/staging/lustre/lnet/lnet/lib-socket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lnet/lnet/lib-socket.c b/drivers/staging/lustre/lnet/lnet/lib-socket.c
index 6f7ef4c..e3d1c42 100644
--- a/drivers/staging/lustre/lnet/lnet/lib-socket.c
+++ b/drivers/staging/lustre/lnet/lnet/lib-socket.c
@@ -172,7 +172,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);
--
2.3.4


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/