From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752829AbcLEWud convert rfc822-to-8bit (ORCPT ); Mon, 5 Dec 2016 17:50:33 -0500 Received: from mga01.intel.com ([192.55.52.88]:29881 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751524AbcLEWub (ORCPT ); Mon, 5 Dec 2016 17:50:31 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,749,1477983600"; d="scan'208";a="39215299" Subject: Re: [PATCH] staging: lustre: Fix function declaration/definition mismatch Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Oleg Drokin In-Reply-To: <1480907197-23201-1-git-send-email-sandeepjain.linux@gmail.com> Date: Mon, 5 Dec 2016 17:50:21 -0500 Cc: , , , , , Content-Transfer-Encoding: 8BIT Message-Id: References: <1480907197-23201-1-git-send-email-sandeepjain.linux@gmail.com> To: "" X-Mailer: Apple Mail (2.1283) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Dec 4, 2016, at 10:06 PM, wrote: > From: Sandeep Jain > > 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 Acked-by: Oleg Drokin > --- > 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