[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <B164B906-4CF5-4619-AFE4-A074289A183C@intel.com>
Date: Mon, 5 Dec 2016 17:50:21 -0500
From: Oleg Drokin <oleg.drokin@...el.com>
To: "<sandeepjain.linux@...il.com>" <sandeepjain.linux@...il.com>
Cc: <andreas.dilger@...el.com>, <jsimmons@...radead.org>,
<gregkh@...uxfoundation.org>, <lustre-devel@...ts.lustre.org>,
<devel@...verdev.osuosl.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] staging: lustre: Fix function declaration/definition mismatch
On Dec 4, 2016, at 10:06 PM, <sandeepjain.linux@...il.com> <sandeepjain.linux@...il.com> wrote:
> From: Sandeep Jain <sandeepjain.linux@...il.com>
>
> Fixes following Sparse errors.
> lprocfs_status.c:1568:5: error: symbol 'lprocfs_wr_root_squash'
> redeclared with different type...
> lprocfs_status.c:1632:5: error: symbol 'lprocfs_wr_nosquash_nids'
> redeclared with different type...
>
> Signed-off-by: Sandeep Jain <sandeepjain.linux@...il.com>
Acked-by: Oleg Drokin <oleg.drokin@...el.com>
> ---
> drivers/staging/lustre/lustre/include/lprocfs_status.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/lustre/lustre/include/lprocfs_status.h b/drivers/staging/lustre/lustre/include/lprocfs_status.h
> index cc0713e..b5c24ca 100644
> --- a/drivers/staging/lustre/lustre/include/lprocfs_status.h
> +++ b/drivers/staging/lustre/lustre/include/lprocfs_status.h
> @@ -701,9 +701,9 @@ static struct lustre_attr lustre_attr_##name = __ATTR(name, mode, show, store)
> extern const struct sysfs_ops lustre_sysfs_ops;
>
> struct root_squash_info;
> -int lprocfs_wr_root_squash(const char *buffer, unsigned long count,
> +int lprocfs_wr_root_squash(const char __user *buffer, unsigned long count,
> struct root_squash_info *squash, char *name);
> -int lprocfs_wr_nosquash_nids(const char *buffer, unsigned long count,
> +int lprocfs_wr_nosquash_nids(const char __user *buffer, unsigned long count,
> struct root_squash_info *squash, char *name);
>
> /* all quota proc functions */
> --
> 2.7.4
Powered by blists - more mailing lists