[PATCH 1/1] staging: lustre/lustre/llite: get rid of incorrect type warning

Greg Kroah-Hartman gregkh at linuxfoundation.org
Thu Jun 11 00:48:17 UTC 2015


On Mon, Jun 08, 2015 at 04:01:57PM -0700, Tolga Ceylan wrote:
> In dir.c and llite_lib.c, sparse reports multiple warnings messages
> due to different address spaces. This patch resolves these warnings
> by adding the tag __user for username addresses.
> 
> Signed-off-by: Tolga Ceylan <tolga.ceylan at gmail.com>

Are you sure all of these are correct?  The kernel/user api for lustre
is a complex beast, and just casting away the pointer types isn't
usually the proper thing to do in order to resolve the issues here.

thanks,

greg k-h


More information about the devel mailing list