Re: [PATCH] staging: lustre: Fix the warning messages about casting without __user macro

2015-01-09 Thread Andrey Utkin
2014-12-10 16:49 GMT+02:00 Greg KH gre...@linuxfoundation.org: On Wed, Dec 10, 2014 at 07:09:59AM +, Al Viro wrote: On Tue, Dec 09, 2014 at 10:56:12PM -0800, Shalin Mehta wrote: From: Shalin Mehta shalinmeht...@gmail.com This issue is showed up while compiling with sparse. The iov_base

Re: [PATCH] staging: lustre: Fix the warning messages about casting without __user macro

2014-12-10 Thread Greg KH
On Wed, Dec 10, 2014 at 07:09:59AM +, Al Viro wrote: On Tue, Dec 09, 2014 at 10:56:12PM -0800, Shalin Mehta wrote: From: Shalin Mehta shalinmeht...@gmail.com This issue is showed up while compiling with sparse. The iov_base in struct iovec struct explicitly declares that the

[PATCH] staging: lustre: Fix the warning messages about casting without __user macro

2014-12-09 Thread Shalin Mehta
From: Shalin Mehta shalinmeht...@gmail.com This issue is showed up while compiling with sparse. The iov_base in struct iovec struct explicitly declares that the assigned value should be user space pointer with __user macro. Where as here, the __user macro isn't used while casting.

Re: [PATCH] staging: lustre: Fix the warning messages about casting without __user macro

2014-12-09 Thread Al Viro
On Tue, Dec 09, 2014 at 10:56:12PM -0800, Shalin Mehta wrote: From: Shalin Mehta shalinmeht...@gmail.com This issue is showed up while compiling with sparse. The iov_base in struct iovec struct explicitly declares that the assigned value should be user space pointer with __user macro.