Skip to contentSkip to conversation

Clear sparse warning: different address space

PATCH New Greg KH 1 participant 1 message Mar 29, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Greg KH

author
#1 lore raw

PATCH 1/1 Clear sparse warning: different address space

Quoted 2 lines · Guillermo O. Freschi

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.

Quoted 10 lines
---
 drivers/staging/lustre/lustre/llite/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/llite/dir.c +0 -0
index 13b35922a4ca..acdde21d41d9 100644

drivers/staging/lustre/lustre/llite/dir.c static long ll_dir_ioctl(struct file *file, unsigned int cmd, unsigned long arg) · line 1467

Quoted 5 lines
drivers/staging/lustre/lustre/llite/dir.c +1 -1
@@ -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