From patchwork Thu Jun 16 13:52:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9180957 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 EBEAD6088F 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 DC617262F2 for ; Thu, 16 Jun 2016 13:52:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF5B2280B0; 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 57EE8280B0 for ; Thu, 16 Jun 2016 13:52:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754789AbcFPNwQ (ORCPT ); Thu, 16 Jun 2016 09:52:16 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:62103 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754312AbcFPNwN (ORCPT ); Thu, 16 Jun 2016 09:52:13 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0LpfQU-1brYxG38R4-00fWBD; Thu, 16 Jun 2016 15:51:56 +0200 From: Arnd Bergmann To: netdev@vger.kernel.org Cc: Arnd Bergmann , Stanislav Yakovlev , Kalle Valo , "David S. Miller" , Johannes Berg , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/8] wireless: ipw2200: fix old-style declaration Date: Thu, 16 Jun 2016 15:52:10 +0200 Message-Id: <20160616135245.3198419-3-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:F3FIljavWacLLnBdTgeOzhuVFjewjPuhVR3VU+dM52J/ALTpPU3 NjDiWeJ8OOtNG5Bsyh/svvcVNDDowY8PmqxwUB45cMFA0NQeAwMOIDZXFPoqxkVC48BwtPX 626S5cu2CXib+JBqWi5Nd4KWXGkvBpA+nUkCNgtZx0DZuY0+Rn55cztLWt/UNf9eneD4qtp vA3ioLOXko3EBpML2blNA== X-UI-Out-Filterresults: notjunk:1; V01:K0:Rc8e4hFNoyg=:+IeIrDNZjj6UJ+vy9Gk/f9 KB/dobFyOyAVje421o7+QlVJr76dgQiYpXnM56D+cPKc7Gw4MMEUvgTeZBgLClvKMJ9n0HLih vsmoJJkR698vhULjN7QWCuMh09jbE85nJ+J26VbpmANo2OHFJLtLtgbQLceGF0DxBGWPB7Kh5 sdAycVlHcFlq+yqYCqiwZlHg1eb1ehQGVy2bCRxmyB3a1VzQgbCEEhmSjZ5faYNry6Wm0q+8d E/XO3+BQAWmHNv5SuSIt2t5oS0MesPtAO4jEmh5fHsFowWz+ZKk4ng2OZtUWtpYO9W7w+1Vwn tCi5hhkqFSd/Femnzxa9hLTfe8ktBLmNPBdkkVdl0F+GNE9mwiGvEMLYVQiK4OOuorsFytl6+ UZwI5iOFzfG21erHP7lN833KOS88QUsfWFmlti0kzjw8Oh5iqIziSPPp9apaTwtFmbNilnaUk cWHcE3lKoOhn6f43EgzSSCDAwTzOxnXyoM9sEsaFm/MvsL5SephIECltdhCvWJxM4iRK4//6Q wRRirIO/dqbci1ADJuBZNbUHvc3Q0ctncnuCS9n6ER0K9YsmEN3ed8b1M/RWTqfcIxqtlJRW2 DtOcutVWvZF+YHMLwABDuYbVmMGURpbhwuVwgEdiBTaC7KzPxwm/BozUUdgwX3h0PUfLGVUil P2ZXUOWZTBiTwXdTZQrdHMxx0qSh9edyoLlY8/n+1GMyXblous93KmiJQIJda6ES7DUs= 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 'inline' keyword to come before the return type in a declaration, and we get a warning for this with "make W=1": drivers/net/wireless/intel/ipw2x00/ipw2200.c:4096:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration] Signed-off-by: Arnd Bergmann Acked-by: Stanislav Yakovlev --- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c index 5adb7cefb2fe..bfd68612a535 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c @@ -4093,7 +4093,7 @@ static const char *ipw_get_status_code(u16 status) return "Unknown status value."; } -static void inline average_init(struct average *avg) +static inline void average_init(struct average *avg) { memset(avg, 0, sizeof(*avg)); }