All of lore.kernel.org
 help / color / mirror / Atom feed
* [lustre-devel] [PATCH] Clear sparse warning: different address space
       [not found] <20170325030503.31675-1-kedrot@gmail.com>
@ 2017-03-29  7:33 ` Greg KH
  0 siblings, 0 replies; only message in thread
From: Greg KH @ 2017-03-29  7:33 UTC (permalink / raw)
  To: lustre-devel

On Sat, Mar 25, 2017 at 12:05:03AM -0300, Guillermo O. Freschi wrote:
> Made tagged `index` as `__user` to remove warning from
> `obd_iocontrol` call.

Your subject line is odd, please make it match other changes for this
driver.

> Signed-off-by: Guillermo O. Freschi <kedrot@gmail.com>
> ---
>  drivers/staging/lustre/lustre/llite/dir.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/lustre/lustre/llite/dir.c b/drivers/staging/lustre/lustre/llite/dir.c
> index 13b35922a4ca..acdde21d41d9 100644
> --- a/drivers/staging/lustre/lustre/llite/dir.c
> +++ b/drivers/staging/lustre/lustre/llite/dir.c
> @@ -1464,7 +1464,7 @@ static long ll_dir_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
>  	case LL_IOC_FID2MDTIDX: {
>  		struct obd_export *exp = ll_i2mdexp(inode);
>  		struct lu_fid fid;
> -		__u32 index;
> +		__u32 __user index;

Are you sure?  How did you test this?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-29  7:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20170325030503.31675-1-kedrot@gmail.com>
2017-03-29  7:33 ` [lustre-devel] [PATCH] Clear sparse warning: different address space Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.