From patchwork Thu Jun 16 13:52:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9180955 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 D6CCC6075D for ; Thu, 16 Jun 2016 13:52:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7A0E262F2 for ; Thu, 16 Jun 2016 13:52:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC1F428362; Thu, 16 Jun 2016 13:52:20 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 36701262F2 for ; Thu, 16 Jun 2016 13:52:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754732AbcFPNv4 (ORCPT ); Thu, 16 Jun 2016 09:51:56 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:57861 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754312AbcFPNvw (ORCPT ); Thu, 16 Jun 2016 09:51:52 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0M5wgz-1bbxLc0jk1-00xrZg; Thu, 16 Jun 2016 15:51:37 +0200 From: Arnd Bergmann To: netdev@vger.kernel.org Cc: Arnd Bergmann , Brett Rudley , Arend van Spriel , "Franky (Zhenhui) Lin" , Hante Meuleman , Kalle Valo , Johannes Berg , "David S. Miller" , linux-wireless@vger.kernel.org, brcm80211-dev-list@broadcom.com, linux-kernel@vger.kernel.org Subject: [PATCH 2/8] wireless: brcmsmac: fix old-style declaration Date: Thu, 16 Jun 2016 15:52:09 +0200 Message-Id: <20160616135245.3198419-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160616135245.3198419-1-arnd@arndb.de> References: <20160616135020.3154461-1-arnd@arndb.de> <20160616135245.3198419-1-arnd@arndb.de> X-Provags-ID: V03:K0:5ThlEGWxKFBMMbFy//A/mgZYSSOZ4wwKVwsh9mB6YniYb81m5Uf SJBDhUTtMCTyAMvEIiEXw4QL+gvcFnFs/IELmW462gxOHXwaUpOWavWDtq3m2ic9xGnsDdE 8EJk9tRkvz7UwMzdjeSakaoP61iDIAl3SfEP9jqh0pqvQbdVT8CVd533gH5Kt22QHNl/9hL 4MeIP50x+7/mNjfPm4ODw== X-UI-Out-Filterresults: notjunk:1; V01:K0:nkNB5OORu0g=:aN80B7xR/QS68gmaQTEm5g S/1TPCW0RdPgAgyD2Cu6qrtYjjod182hPKWMPsXEb90GNFsL9c7YdUAmvRUaxhx8JnhHGxkd+ r1/ff72q3gfibbMaKWliHarCNHFWPlKFrqbhC0yukaLSnv2VlrUAE83S0AQe1v2trqIwo5qQK 04CszDijtiV1OiF5YzENFmsdXEAWTcOTxrU4xkGLk9ESiT11PGY9gCwXCo+cveJmPvv8kOLc1 yX1kUSYakWePKHWNhRHQIPOr3W1MWjfphfFW2KmvhbQQcfc33PI7BFqd0XGd5t3NNP4Rph8GU iD2yntQYpInxeN1SZVOOSSbDYD4F/5KJ0ho1m6bd3Cb2rX9o9zpNvFM8abXnH/PcHYz2gnSa8 cMUIKgfqHsnlGK8vBxbjUwd7083nbD+QBmIbC2Qzwdx6CrDQcc6Vp0HqcLOJeiPl7A4xyzGpe Zs61S0C92iCybZSVJpO3d09I/f2WagqGllMG6i6YSU0c8ly4XuYIIFRHwAETuLV88bFXvnQnV CLcIeU8c1e2/3YNAibATwKOdgPIsn36WE9sztiNGRWvNInCUz5HyTqWGjXQboU8/6WSOJBmOS KnSsxU/TS48uYYT2H1GL/TzxUAwhRXYeLBL3Ydj0NXupbhKnXeUyVRwCWpAVON/JRg32ndktW FaPrKd+lp15ANLK9L/ABK3InvKGH9ad9ddaJ8ypEIEx/MYkURa6p5N3ElxGv0yjICIVk= 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 Modern C standards expect the 'static' keyword to come first in a declaration, and we get a warning for this with "make W=1": drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c:3353:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] Signed-off-by: Arnd Bergmann --- drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c index e16ee60639f5..c2a938b59044 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c @@ -3349,8 +3349,8 @@ static void brcms_b_coreinit(struct brcms_c_info *wlc) dma_rxfill(wlc_hw->di[RX_FIFO]); } -void -static brcms_b_init(struct brcms_hardware *wlc_hw, u16 chanspec) { +static void brcms_b_init(struct brcms_hardware *wlc_hw, u16 chanspec) +{ u32 macintmask; bool fastclk; struct brcms_c_info *wlc = wlc_hw->wlc;