Re: [PATCH] staging: lustre: fix pointer declarations

2014-11-26 Thread Al Viro
On Tue, Nov 25, 2014 at 09:44:21PM +0100, Zahari Doychev wrote: > This patch fixes pointer declarations from void * to void __user * in order > to remove some sparse warnings. _Are_ those userland addresses, though? Quick grep shows that in the only caller of lnet_copy_iov2flat() we have somethin

Re: [PATCH] staging: lustre: fix pointer declarations

2014-11-25 Thread Joe Perches
On Tue, 2014-11-25 at 21:44 +0100, Zahari Doychev wrote: > This patch fixes pointer declarations from void * to void __user * in order > to remove some sparse warnings. This patch does more than that. Please make sure to describe all of the changes in a patch in the commit message. > diff --git

[PATCH] staging: lustre: fix pointer declarations

2014-11-25 Thread Zahari Doychev
This patch fixes pointer declarations from void * to void __user * in order to remove some sparse warnings. lib-lnet.h:798:48: warning: incorrect type in initializer (different address spaces) lib-lnet.h:798:48:expected void [noderef] *iov_base lib-lnet.h:798:48:got void *dest lib-lnet.h: