Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752748AbbLKIS1 (ORCPT ); Fri, 11 Dec 2015 03:18:27 -0500 Received: from m50-210.qiye.163.com ([123.125.50.210]:51263 "EHLO m50-210.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750853AbbLKIS0 (ORCPT ); Fri, 11 Dec 2015 03:18:26 -0500 X-Greylist: delayed 345 seconds by postgrey-1.27 at vger.kernel.org; Fri, 11 Dec 2015 03:18:25 EST From: Jandy Gou To: oleg.drokin@intel.com Cc: andreas.dilger@intel.com, gregkh@linuxfoundation.org, mike.rapoport@gmail.com, jinshan.xiong@intel.com, yawei.niu@intel.com, lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Jandy Gou Subject: [PATCH] staging: lustre: This patch fixes the following sparse warning: Date: Fri, 11 Dec 2015 16:08:53 +0800 Message-Id: <1449821333-18036-1-git-send-email-qingsong.gou@ck-telecom.com> X-Mailer: git-send-email 1.9.1 X-CM-TRANSID: RNOowECZpkL_hGpW+0CwDA--.4S3 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvj4R9miEDUUUU X-Originating-IP: [182.148.112.52] X-CM-SenderInfo: 5tlqw2xrqjhw1rx6uywnwhzvxfrphudrp/1tbiMgHNuFVitLoR4AAAsO Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1615 Lines: 41 drivers/staging/lustre/lustre/osc/osc_cache.c:622:19: warning: symbol 'osc_extent_find' was not declared. Should it be static? drivers/staging/lustre/lustre/osc/osc_cache.c:1423:6: warning: symbol 'osc_unreserve_grant' was not declared. Should it be static? Signed-off-by: Jandy Gou --- drivers/staging/lustre/lustre/osc/osc_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/osc/osc_cache.c b/drivers/staging/lustre/lustre/osc/osc_cache.c index b1d1a87f..62cfca6 100644 --- a/drivers/staging/lustre/lustre/osc/osc_cache.c +++ b/drivers/staging/lustre/lustre/osc/osc_cache.c @@ -619,7 +619,7 @@ static inline int overlapped(struct osc_extent *ex1, struct osc_extent *ex2) * Find or create an extent which includes @index, core function to manage * extent tree. */ -struct osc_extent *osc_extent_find(const struct lu_env *env, +static struct osc_extent *osc_extent_find(const struct lu_env *env, struct osc_object *obj, pgoff_t index, int *grants) @@ -1420,7 +1420,7 @@ static void __osc_unreserve_grant(struct client_obd *cli, } } -void osc_unreserve_grant(struct client_obd *cli, +static void osc_unreserve_grant(struct client_obd *cli, unsigned int reserved, unsigned int unused) { client_obd_list_lock(&cli->cl_loi_list_lock); -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/