From patchwork Sat Jul 7 15:33:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 10512913 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4A9AA600CA for ; Sat, 7 Jul 2018 15:33:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43AD628884 for ; Sat, 7 Jul 2018 15:33:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37F402888A; Sat, 7 Jul 2018 15:33:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C23CB28884 for ; Sat, 7 Jul 2018 15:33:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754086AbeGGPdM (ORCPT ); Sat, 7 Jul 2018 11:33:12 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46900 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754067AbeGGPdL (ORCPT ); Sat, 7 Jul 2018 11:33:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=iypLWenuxxEgWYrxRhsVWEurc3EsWyuW+PJacLdnGcI=; b=QGjkdG/fr0kzcBims6DdXUcMT EvUDuMuGRs8MgicZ58u4NlaDwrJOaVCJDo/M75TM0kNB/QLiQqQVD+/uHlbmcBLbfRloW8oEBpVEO KB7Z9o2r27MSbCJWqS6PKvSkqWRUD/QyxnGTJXg4ifoiF5riJzb0pOFOLvoxj/jZ/xxwxse4Pf9Os dn6uP7hDqfqARugaAmD/cVTlcP1PjPTJkyeaUHKefZMJJQkvZszPDrdTxZTZlLqnRvEMlJDuduAVP nMoFJz5bMCsJxxqGQQno2uAmn+EfV2JpAVd2zqU8hEF+U/2/624zPlzwQrcK/wPkQAMpYNqLszs0p 1xnLNEAIg==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbpCw-0002tS-2d; Sat, 07 Jul 2018 15:33:10 +0000 To: Simon Kelley , linux-wireless@vger.kernel.org, Kalle Valo , David Miller , "netdev@vger.kernel.org" From: Randy Dunlap Subject: [PATCH] net/wireless/atmel: fix defined but not used warning Message-ID: Date: Sat, 7 Jul 2018 08:33:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Randy Dunlap Fix a build warning in drivers/net/wireless/atmel/ when CONFIG_PROC_FS is not enabled by marking the unused function as __maybe_unused. ../drivers/net/wireless/atmel/atmel.c:1402:12: warning: 'atmel_proc_show' defined but not used [-Wunused-function] Signed-off-by: Randy Dunlap Cc: Simon Kelley Cc: linux-wireless@vger.kernel.org Cc: Kalle Valo Cc: "David S. Miller" Cc: netdev@vger.kernel.org --- drivers/net/wireless/atmel/atmel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- linux-next-20180706.orig/drivers/net/wireless/atmel/atmel.c +++ linux-next-20180706/drivers/net/wireless/atmel/atmel.c @@ -39,6 +39,7 @@ ******************************************************************************/ +#include #include #include @@ -1399,7 +1400,7 @@ static int atmel_validate_channel(struct return 0; } -static int atmel_proc_show(struct seq_file *m, void *v) +static int __maybe_unused atmel_proc_show(struct seq_file *m, void *v) { struct atmel_private *priv = m->private; int i;