From: James Simmons Date: Thu, 23 Jun 2016 17:38:13 +0000 (-0400) Subject: LU-7623 lnet: remove useless cast X-Git-Tag: 2.8.56~106 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=ba162203853721dd2ad16bcc2212b11461974264 LU-7623 lnet: remove useless cast In the cleanup of the user land / kernel pointers a small cleanup was missed which removed a cast no longer needed for a call of lnet_ping(). This brings us into sync with the upstream client. Change-Id: Ib281aaac7f2a1516d8586fbf3d10dee18cd77873 Signed-off-by: James Simmons Reviewed-on: http://review.whamcloud.com/18950 Tested-by: Jenkins Reviewed-by: Frank Zago Reviewed-by: Christopher J. Morrone Reviewed-by: John L. Hammond Tested-by: Maloo Reviewed-by: Dmitry Eremin Reviewed-by: Oleg Drokin --- diff --git a/libcfs/include/libcfs/libcfs_ioctl.h b/libcfs/include/libcfs/libcfs_ioctl.h index f403e9b..990eda5 100644 --- a/libcfs/include/libcfs/libcfs_ioctl.h +++ b/libcfs/include/libcfs/libcfs_ioctl.h @@ -74,9 +74,9 @@ struct libcfs_ioctl_data { char *ioc_inlbuf2; __u32 ioc_plen1; /* buffers in userspace */ - char __user *ioc_pbuf1; + void __user *ioc_pbuf1; __u32 ioc_plen2; /* buffers in userspace */ - char __user *ioc_pbuf2; + void __user *ioc_pbuf2; char ioc_bulk[0]; }; diff --git a/lnet/lnet/api-ni.c b/lnet/lnet/api-ni.c index 99f5267..b7f297f 100644 --- a/lnet/lnet/api-ni.c +++ b/lnet/lnet/api-ni.c @@ -2128,7 +2128,7 @@ LNetCtl(unsigned int cmd, void *arg) id.nid = data->ioc_nid; id.pid = data->ioc_u32[0]; rc = lnet_ping(id, data->ioc_u32[1], /* timeout */ - (lnet_process_id_t __user *)data->ioc_pbuf1, + data->ioc_pbuf1, data->ioc_plen1/sizeof(lnet_process_id_t)); if (rc < 0) return rc;