From: Tristan Lelong Date: Sat, 6 Dec 2014 06:43:20 +0000 (-0800) Subject: staging: lustre: fix sparse warning on LPROC_SEQ_FOPS macros X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~83^2~335 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e84962e3afc1665756bd4854c63da662696fb687;p=pandora-kernel.git staging: lustre: fix sparse warning on LPROC_SEQ_FOPS macros This patch fix a sparse warning in lustre sources warning: incorrect type in argument 1 (different address spaces) expected void [noderef] *to got char * This is done by adding the missing __user attribute on userland pointers inside the LPROC_SEQ_FOPS like macros: - LPROC_SEQ_FOPS - LPROC_SEQ_FOPS_RW_TYPE - LPROC_SEQ_FOPS_WR_ONLY - LDLM_POOL_PROC_WRITER The patch also updates all the functions that are used by this macro: - lprocfs_wr_* - *_seq_write as well as some helpers used by the previously modified functions (otherwise fixing the sparse warning add some new ones): - lprocfs_write_frac_helper - lprocfs_write_helper - lprocfs_write_u64_helper The patch also fixes one __user pointer direct dereference by strncmp in function fld_proc_hash_seq_write. Signed-off-by: Tristan Lelong Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed