From mboxrd@z Thu Jan 1 00:00:00 1970 From: Quentin Lambert Date: Wed, 07 Dec 2016 15:20:06 +0000 Subject: Re: [lustre-devel] [PATCH] staging: lustre: Fix a spatch warning due to an assignment from kernel to Message-Id: <33d23121-e5ca-0e14-bfbb-632f883e0948@gmail.com> List-Id: References: <20161202173332.5100-1-lambert.quentin@gmail.com> <306D1D4D-A949-44F6-BAFE-44F08F609D9B@intel.com> <81821426-c32c-c45a-e9a3-82f9818fc986@gmail.com> In-Reply-To: <81821426-c32c-c45a-e9a3-82f9818fc986@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Oleg Drokin Cc: Andreas Dilger , James Simmons , Greg Kroah-Hartman , lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Hi all, I am looking at the drivers/staging/lustre/lustre/llite/dir.c: 1469 /* Call mdc_iocontrol */ 1470 rc = obd_iocontrol(LL_IOC_FID2MDTIDX, exp, sizeof(fid), &fid, 1471 &index); 1472 if (rc) and sparse says: drivers/staging/lustre/lustre/llite/dir.c:1471:37: warning: incorrect type in argument 5 (different address spaces) I was wondering if there was any value to add a cast to fix the warning? And I guess this solution would also apply in my original patch to drivers/staging/lustre/lnet/lnet/lib-socket.c Quentin