Received: by 10.223.185.116 with SMTP id b49csp1131423wrg; Fri, 23 Feb 2018 12:29:21 -0800 (PST) X-Google-Smtp-Source: AH8x227+ZWjKqisglaubtdHJF2ScIm4lm3aY1RQ+SFzTHOl/GMCAtsO9vI90Os59/g8hF7aPy4Rq X-Received: by 10.99.107.202 with SMTP id g193mr2312837pgc.38.1519417761780; Fri, 23 Feb 2018 12:29:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519417761; cv=none; d=google.com; s=arc-20160816; b=dZq+n+s5hxNbBmYdtGMfF/tUvOd3top6L1/JtGePJguQnYnNfgXTm1/cYkTx66tyY4 zQLYs3C+VaqKYJK2oPZtEE3J+OFjrCDIR+bwVzLiWPOvLg8G0f53UDp/Wq0CvTDDW4br 7bqMwI976mChkbZEToOaFET96fAXbobRP0Ju3FN60hXP8Da9Rho/8e3juHeAvni01azP odazdozxyeSaDic2jRRjvAh5oKhclq7HjLJ0SfbmPW1tlyznpPFGOxOlMN+OEu3sEsE2 sY/R1rcywGSuTi+ybM/kn5JQKVcDFtSyVuZNjsGp6ykslARoxR/Y56hWHi7LN4tjqCUl VV0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=wmkHlu4FXias3YoyMN2Jc4e2cWH+E3I5mDU6FA3d9X4=; b=PfUsC78uwltuGCXA+L0ebuOLcewch1AxVFMP0PEFsPscL8DButcTAC0uQx2CopWhRZ Ip+KLYCKdXmtsCqpb2KEskkmcxX2ykibgNmuIpPzQcGWqUL757uhwYrfd2Qux41viVbQ JTTB7AtMgYas4yg2JePMw6/wi5bfZG2bfLhmHvuI1MxY/BioP0lS08UZbdmKYxEjZCow fLkLCB9xHyD5LTxDxU9OJohT58PFypdDqAVHUokm9J69rF/y7H+vgGxq2X1BAqlOtWsF 1vHlGYYrUW/m4dPfIfDS/9DH54POxR6USrQxJWHk4nWRp+XnsvNBxdIKcywGmEeKHNcR 5a0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si1895494pgr.31.2018.02.23.12.29.07; Fri, 23 Feb 2018 12:29:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754294AbeBWU2a (ORCPT + 99 others); Fri, 23 Feb 2018 15:28:30 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38040 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754112AbeBWSgv (ORCPT ); Fri, 23 Feb 2018 13:36:51 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 612FC89C; Fri, 23 Feb 2018 18:36:50 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , "Martin K. Petersen" Subject: [PATCH 4.4 091/193] mptfusion: hide unused seq_mpt_print_ioc_summary function Date: Fri, 23 Feb 2018 19:25:24 +0100 Message-Id: <20180223170340.289648646@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit 28558f5af50d8335cbbc8bc2726e0747553e29f5 upstream. 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 Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/message/fusion/mptbase.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c @@ -6848,6 +6848,7 @@ mpt_print_ioc_summary(MPT_ADAPTER *ioc, *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(MP seq_putc(m, '\n'); } +#endif /** * mpt_set_taskmgmt_in_progress_flag - set flags associated with task management