From patchwork Wed Jan 27 15:57:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101065 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2663802lbb; Wed, 27 Jan 2016 07:59:08 -0800 (PST) X-Received: by 10.98.65.148 with SMTP id g20mr43556580pfd.21.1453910348520; Wed, 27 Jan 2016 07:59:08 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q74si10242275pfq.207.2016.01.27.07.59.08 for ; Wed, 27 Jan 2016 07:59:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754333AbcA0P7H (ORCPT ); Wed, 27 Jan 2016 10:59:07 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:59544 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753248AbcA0P7F (ORCPT ); Wed, 27 Jan 2016 10:59:05 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0LqlQA-1Zu5ou1oBe-00eJHP; Wed, 27 Jan 2016 16:58:34 +0100 From: Arnd Bergmann To: "Martin K. Petersen" , James.Bottomley@HansenPartnership.com, Nagalakshmi Nandigama , Praveen Krishnamoorthy , Sreekanth Reddy , Abhijit Mahajan Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-scsi@vger.kernel.org, "James E.J. Bottomley" , MPT-FusionLinux.pdl@avagotech.com, linux-kernel@vger.kernel.org Subject: [PATCH 2/7] mptfusion: hide unused seq_mpt_print_ioc_summary function Date: Wed, 27 Jan 2016 16:57:18 +0100 Message-Id: <1453910247-3447628-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1453910247-3447628-1-git-send-email-arnd@arndb.de> References: <1453910247-3447628-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:vfrfVAGc/suFTbEljp7eSwZApAMWPJTiFcfyLDOill+7RSsI/mK UX/tAqROVMvlj8fpXCml6v07s/oPGjMQ5YJixupzaokZOaxi1wPd16GRtmNuAJG7lG+4yTW iEKDqAT0i0SBrNyOo0E3X2Vrbgs3PpkaSgHR6f/AGypSJV+c3jWWHFQO8JZqJDyXPkQsT4Q x4KJRMP1vbPbkj0xxz2eg== X-UI-Out-Filterresults: notjunk:1; V01:K0:BoiXTDeFwWc=:IdRud3PTA6XAtdHaSqAd/W Af97DlDl7eS8l4L/Xa4BwJ9Zay2FQB/7CLRLPnqf61bpOxcWpNCdIqOnCAulehIFoc1dTtm/W mvB/VjFfgFfGH17i82pWV3vtJW6dEq4n/EMeYVEvY++bkb3kJPGnazOT21Dpps+mD4xpdFdQq daaP0rF02aHh/+HPsvbxHFAH0Co8x1I1px/ZYwfQX3OlolRhsDnNZT69pzaHqWFrHqZwx6w3R wspk1PSrGh15oh9GCOnue1Hq8AVx92iPotRVwyNKgbR5zMAFlQdoe8ddUlwwkvpQD3G8sV4um HH1g+h4IDwhE/tR34o14WbJgr1MbNBHAJmr5c4LUZAr4YtXy38XwAWdGO3hQjRWxE46EA9H0z gsEsTt9IUknWI9F6G0Oseyzd7vGi2+F8xV5YkBe1jqx320LhOrXVBgsO/3cgJvji0pHjVEHca Us3SR8K5drGEFz2H3bsBgdjOxmsPp7WrWUVbr2yM5TV0BWMuHF/3jwK2Rsvy39SzxWlrQqrmL oks1o1eA/MkDItFrN17Ua7vwMmRhuG9aGzOH5/6v9OCG5yG5wDX6NimlUZgJ1F+5MCXUedyMr ByZ0f/VIawuL5qDUVhQIVPMn3tc6A70nryrEDNmY1RPABf2lPGQfvcQ0EzbhdiLZmzjKPmSMV Bqr2jM0+EEhW3zTgeFY3eOn1bmnZip5xfJyVyWHO4PwMbO8/Q8WuETBjeueB8O56gZAI= Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org The seq_mpt_print_ioc_summary function is used for the /proc/mpt/iocN/summary implementation and never gets called when CONFIG_PROC_FS is disabled: drivers/message/fusion/mptbase.c:6851:13: warning: 'seq_mpt_print_ioc_summary' defined but not used [-Wunused-function] static void seq_mpt_print_ioc_summary(MPT_ADAPTER *ioc, struct seq_file *m, int showlan) This adds an #ifdef to hide the function definition in that case and avoid the warning. Signed-off-by: Arnd Bergmann --- drivers/message/fusion/mptbase.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index 5dcc0313c38a..207370d68c17 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c @@ -6848,6 +6848,7 @@ mpt_print_ioc_summary(MPT_ADAPTER *ioc, char *buffer, int *size, int len, int sh *size = y; } +#ifdef CONFIG_PROC_FS static void seq_mpt_print_ioc_summary(MPT_ADAPTER *ioc, struct seq_file *m, int showlan) { char expVer[32]; @@ -6879,6 +6880,7 @@ static void seq_mpt_print_ioc_summary(MPT_ADAPTER *ioc, struct seq_file *m, int seq_putc(m, '\n'); } +#endif /** * mpt_set_taskmgmt_in_progress_flag - set flags associated with task management