From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750996AbdAQP3q (ORCPT ); Tue, 17 Jan 2017 10:29:46 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:58266 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750982AbdAQP3F (ORCPT ); Tue, 17 Jan 2017 10:29:05 -0500 From: Arnd Bergmann To: Ralf Baechle Cc: linux-mips@linux-mips.org, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 13/13] MIPS: avoid old-style declaration Date: Tue, 17 Jan 2017 16:18:47 +0100 Message-Id: <20170117151911.4109452-13-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170117151911.4109452-1-arnd@arndb.de> References: <20170117151911.4109452-1-arnd@arndb.de> X-Provags-ID: V03:K0:YW8KRKJUlwV/3wts/X+n71hOeAKFkKC7IBMjTfZRmU+3B3J7E5G Ib2Lc3W6PbA/J4ZkxiaAh/jo3jDc3gj0MtklD9hdhyTka3lcnhB3uddfleNAhoQgwf7MVPp /esUzArQ9TUmiW42jRvlNqJ8QfCt5x6q6FVBRkvLAKv/hKtlgZQKdFyK5pIHkNQmSKSWW/P k7wy46BqwjzrfgNHv0/Bg== X-UI-Out-Filterresults: notjunk:1;V01:K0:U9L8kRiREHY=:mxXw1tUtUGodRFOoRbAF6I 2J1dZW2DWhB3idKUwo2pCl8sQvY6hZED2XTLTxLFQOOZzTpbRVXuyc/AtJI2lmrVK+Lte6Vta esyrvhkHioKqzYOJYLn/CVim6EzUxIPDswDWspIKDwZ3/j+lT344Ub1dNvsgZaqTvmAty0wc/ a+fqf0YIN0teT+poDhudOfW7P0o3Xb1+vv7XwW9UgsLiKnmr/A+xLn2EgLSnFC6qvhQVQz3hl +RuWa3dbOYpZr04mDlAyUDDe2CnpVQEN07iuQRpw8X35JRV0Z9y9aNHlkzDUZ/60ecj9CrpUi epHICzpLxIFNruWDXbw8xNbPu3M49rS1ymofRFs4lv6NFlpeejD1fYGcnWC42yZ1ke8wRTupe wxox3IU+xkx3A+19umNwKVABJci4iqCd4I3LKqbfxvYrdBdenXAZCa+eCL06uZsnSUsZrrWN/ EpPUD54xOFfW1G6ysC9IXSJJ9xPV7wS06S9yRoScNCL+HKNJReCLMeYgTLH3ZC6Ey02ZMKGux aMEk5k5gusHr/UF0bFN/g9jHigrwFNxtwgrt3lu78WuRbnzH5YR2O55T/473JTuvkOtSh2C7p VYTCu5RT0ps1+zXLdiZpQRvUp8SKifnVQ82NHWsfWBG+Xd8o5QtTb0V1AStK3xS4+GgKIYjaH LsvxRX4E/NYitroB7+tsA/A1yeVO8vCdhTk284d4iNH1ylxAX19sFGDFVjSNzqCtUFyA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org gcc warns about nonstandard declarations: arch/mips/sgi-ip32/ip32-irq.c:31:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration] arch/mips/sgi-ip32/ip32-irq.c:36:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration] arch/mips/sgi-ip27/ip27-klnuma.c: In function 'replicate_kernel_text': arch/mips/sgi-ip27/ip27-klnuma.c:85:116: error: old-style function definition [-Werror=old-style-definition] Moving 'inline' before the return type, and adding argument types shuts up the warning here. This patch affects several platforms, but all in a trivial way. I'm fixing up all instances I found in any of the 'defconfig' builds. Signed-off-by: Arnd Bergmann --- arch/mips/emma/markeins/setup.c | 2 +- arch/mips/netlogic/xlp/wakeup.c | 2 +- arch/mips/sgi-ip27/ip27-klnuma.c | 2 +- arch/mips/sgi-ip32/ip32-irq.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/mips/emma/markeins/setup.c b/arch/mips/emma/markeins/setup.c index 9100122e5cef..44ff64a80255 100644 --- a/arch/mips/emma/markeins/setup.c +++ b/arch/mips/emma/markeins/setup.c @@ -90,7 +90,7 @@ void __init plat_time_init(void) static void markeins_board_init(void); extern void markeins_irq_setup(void); -static void inline __init markeins_sio_setup(void) +static inline void __init markeins_sio_setup(void) { } diff --git a/arch/mips/netlogic/xlp/wakeup.c b/arch/mips/netlogic/xlp/wakeup.c index 87d7846af2d0..d61004dd71b4 100644 --- a/arch/mips/netlogic/xlp/wakeup.c +++ b/arch/mips/netlogic/xlp/wakeup.c @@ -197,7 +197,7 @@ static void xlp_enable_secondary_cores(const cpumask_t *wakeup_mask) } } -void xlp_wakeup_secondary_cpus() +void xlp_wakeup_secondary_cpus(void) { /* * In case of u-boot, the secondaries are in reset diff --git a/arch/mips/sgi-ip27/ip27-klnuma.c b/arch/mips/sgi-ip27/ip27-klnuma.c index bda90cf87e8c..2beb03907d09 100644 --- a/arch/mips/sgi-ip27/ip27-klnuma.c +++ b/arch/mips/sgi-ip27/ip27-klnuma.c @@ -82,7 +82,7 @@ static __init void copy_kernel(nasid_t dest_nasid) memcpy((void *)dest_kern_start, (void *)source_start, kern_size); } -void __init replicate_kernel_text() +void __init replicate_kernel_text(void) { cnodeid_t cnode; nasid_t client_nasid; diff --git a/arch/mips/sgi-ip32/ip32-irq.c b/arch/mips/sgi-ip32/ip32-irq.c index e0c7d9e142fa..838d8589a1c0 100644 --- a/arch/mips/sgi-ip32/ip32-irq.c +++ b/arch/mips/sgi-ip32/ip32-irq.c @@ -28,12 +28,12 @@ #include /* issue a PIO read to make sure no PIO writes are pending */ -static void inline flush_crime_bus(void) +static inline void flush_crime_bus(void) { crime->control; } -static void inline flush_mace_bus(void) +static inline void flush_mace_bus(void) { mace->perif.ctrl.misc; } -- 2.9.0