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

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] voyager_smp.c static inline fix

This patch fixes a compile bug by moving a static inline function to the
right place. The body of a static inline function has to be declared
before the use of this function.

Signed-off-by: Dominik Hackl <dominik@hackl.dhs.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Dominik Hackl and committed by
Linus Torvalds
6431e6a2 7e43c84e

+8 -9
+8 -9
arch/i386/mach-voyager/voyager_smp.c
··· 97 97 static void vic_enable_cpi(void); 98 98 static void do_boot_cpu(__u8 cpuid); 99 99 static void do_quad_bootstrap(void); 100 - static inline void wrapper_smp_local_timer_interrupt(struct pt_regs *); 101 100 102 101 int hard_smp_processor_id(void); 103 102 ··· 122 123 send_one_QIC_CPI(cpu, cpi - QIC_CPI_OFFSET); 123 124 } 124 125 } 126 + } 127 + 128 + static inline void 129 + wrapper_smp_local_timer_interrupt(struct pt_regs *regs) 130 + { 131 + irq_enter(); 132 + smp_local_timer_interrupt(regs); 133 + irq_exit(); 125 134 } 126 135 127 136 static inline void ··· 1254 1247 { 1255 1248 send_CPI_allbutself(VIC_TIMER_CPI); 1256 1249 smp_local_timer_interrupt(regs); 1257 - } 1258 - 1259 - static inline void 1260 - wrapper_smp_local_timer_interrupt(struct pt_regs *regs) 1261 - { 1262 - irq_enter(); 1263 - smp_local_timer_interrupt(regs); 1264 - irq_exit(); 1265 1250 } 1266 1251 1267 1252 /* local (per CPU) timer interrupt. It does both profiling and