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: 102172 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp273509qgy; Thu, 16 Jun 2016 06:52:26 -0700 (PDT) X-Received: by 10.36.2.2 with SMTP id 2mr8227583itu.34.1466085146470; Thu, 16 Jun 2016 06:52:26 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z73si6141306pfi.134.2016.06.16.06.52.26; Thu, 16 Jun 2016 06:52:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754789AbcFPNwQ (ORCPT + 1 other); 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 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 --- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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)); }