From patchwork Thu Jun 16 13:52:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102173 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp273502qgy; Thu, 16 Jun 2016 06:52:26 -0700 (PDT) X-Received: by 10.36.37.73 with SMTP id g70mr25097483itg.51.1466085146183; 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 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 S1754784AbcFPNwQ (ORCPT + 4 others); Thu, 16 Jun 2016 09:52:16 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:51968 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754751AbcFPNwN (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 0LxO7W-1bSIQC09Bi-016tql; Thu, 16 Jun 2016 15:52:10 +0200 From: Arnd Bergmann To: netdev@vger.kernel.org, Thomas Sailer Cc: Arnd Bergmann , linux-hams@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/8] hamradio: baycom: fix old-style declaration Date: Thu, 16 Jun 2016 15:52:11 +0200 Message-Id: <20160616135245.3198419-4-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:RdxtXzqdx2n3JQUXJJcOIMfryIi8umk9LPopDw3+rP3E49+FPEs s37QKZwLaFkUieY1tG3fRETT0hDdmDKWxu8ztzohI8RRWb77BKBIrrK5L/U2x7/1MRd3wYf khvFlMUkc6P4vD8+O4KUNqQMfe5ATg/+hkP4KfAWiEO34j17DDg9gVafy6ZM3nWoWaQsDT3 5iWBYllKfdFeOeK8F/HuA== X-UI-Out-Filterresults: notjunk:1; V01:K0:V8Xi7VQOEV0=:MuNGxntBxM8DND+6s+KJpx +PsR8zj6ClQfEeApN9UxSSU7PfAqThTmhDaGKcssTntU3+GK2MzOAaK9KKK5GsqiAuDWKyxyl i3KFEdS0w/Jss6w2zirNqMBaP69ZwMN7wElrLh0WF8sVUnk85+96v5OVwxdjA0RsYy0KCPTWM RQ+ph1o07xdFK6KqnLdEyOIWs68KO5VL0naCfMEWDlJGSBnez1LZPbto7utN6lCOIOixtgTgt K1licw68R6NsqmMMZOfL3QMas32T1Dj8odWOhwUJnOgSX8SnLeRwPn8Q+ChdQiGLi4Zbx7fdK X/6tsLW9X0EDVunb117cYg2A5PH2LOw7NU/lyrne0uIOLHSF7e5B6XzYTYVGEyUDQY2PtNfm5 Q+Y/mMrFakJJd12m6bkMkk56cOmAs3AdNtDIalxZlSItZhcSO3UO6tM1zhImK/IHriKZHNihv 8vBbepNLHCSMkw1dz9POJJr4dOrj4q6RBYYA8LUB1RidM/IA26Z5SfgkYjBkHkCV4y235YBbu vfB5BhPIhxOvuhRX/tik3+rmPSzCJt6E4D4D/kuoKVprqjdMM4pftvy/yhloSzcoOqk6Pvxf6 YiomLuwBg0hXqoxKz79wVTEHzlS3HuOanNsuiZBOYqXXA59K/4mL3gMoqtwdYykrijLfq2GEY oo6UU6vNHWHB660e89WUyPN5j4oiMj0PKjjtkD7JjNwvsDpON0KTPopJW6Paw2/u5GN0= Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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/hamradio/baycom_par.c:159:1: error: '__inline__' is not at beginning of declaration [-Werror=old-style-declaration] For consistency with other drivers, I'm changing '__inline__' to 'inline' at the same time. Signed-off-by: Arnd Bergmann --- drivers/net/hamradio/baycom_par.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.9.0 diff --git a/drivers/net/hamradio/baycom_par.c b/drivers/net/hamradio/baycom_par.c index acb636963e90..072cddce9264 100644 --- a/drivers/net/hamradio/baycom_par.c +++ b/drivers/net/hamradio/baycom_par.c @@ -156,7 +156,7 @@ struct baycom_state { /* --------------------------------------------------------------------- */ -static void __inline__ baycom_int_freq(struct baycom_state *bc) +static inline void baycom_int_freq(struct baycom_state *bc) { #ifdef BAYCOM_DEBUG unsigned long cur_jiffies = jiffies; @@ -192,7 +192,7 @@ static void __inline__ baycom_int_freq(struct baycom_state *bc) /* --------------------------------------------------------------------- */ -static __inline__ void par96_tx(struct net_device *dev, struct baycom_state *bc) +static inline void par96_tx(struct net_device *dev, struct baycom_state *bc) { int i; unsigned int data = hdlcdrv_getbits(&bc->hdrv); @@ -216,7 +216,7 @@ static __inline__ void par96_tx(struct net_device *dev, struct baycom_state *bc) /* --------------------------------------------------------------------- */ -static __inline__ void par96_rx(struct net_device *dev, struct baycom_state *bc) +static inline void par96_rx(struct net_device *dev, struct baycom_state *bc) { int i; unsigned int data, mask, mask2, descx;