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: 102174 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp273422qgy; Thu, 16 Jun 2016 06:52:12 -0700 (PDT) X-Received: by 10.36.0.193 with SMTP id 184mr8254356ita.31.1466085131902; Thu, 16 Jun 2016 06:52:11 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z25si6137601pff.218.2016.06.16.06.52.11; Thu, 16 Jun 2016 06:52:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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 netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754756AbcFPNvz (ORCPT + 4 others); Thu, 16 Jun 2016 09:51:55 -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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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(-) -- 2.9.0 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;