Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Avoid old-style declaration

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 <arnd@arndb.de>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/15050/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Arnd Bergmann and committed by
Ralf Baechle
42b76a1d 23ca9b52

+5 -5
+1 -1
arch/mips/emma/markeins/setup.c
··· 90 90 static void markeins_board_init(void); 91 91 extern void markeins_irq_setup(void); 92 92 93 - static void inline __init markeins_sio_setup(void) 93 + static inline void __init markeins_sio_setup(void) 94 94 { 95 95 } 96 96
+1 -1
arch/mips/netlogic/xlp/wakeup.c
··· 197 197 } 198 198 } 199 199 200 - void xlp_wakeup_secondary_cpus() 200 + void xlp_wakeup_secondary_cpus(void) 201 201 { 202 202 /* 203 203 * In case of u-boot, the secondaries are in reset
+1 -1
arch/mips/sgi-ip27/ip27-klnuma.c
··· 82 82 memcpy((void *)dest_kern_start, (void *)source_start, kern_size); 83 83 } 84 84 85 - void __init replicate_kernel_text() 85 + void __init replicate_kernel_text(void) 86 86 { 87 87 cnodeid_t cnode; 88 88 nasid_t client_nasid;
+2 -2
arch/mips/sgi-ip32/ip32-irq.c
··· 28 28 #include <asm/ip32/ip32_ints.h> 29 29 30 30 /* issue a PIO read to make sure no PIO writes are pending */ 31 - static void inline flush_crime_bus(void) 31 + static inline void flush_crime_bus(void) 32 32 { 33 33 crime->control; 34 34 } 35 35 36 - static void inline flush_mace_bus(void) 36 + static inline void flush_mace_bus(void) 37 37 { 38 38 mace->perif.ctrl.misc; 39 39 }