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

[PATCH] cleanup smp_call_function UP build

net/core/flow.c: In function 'flow_cache_flush':
net/core/flow.c:299: warning: statement with no effect

Signed-off-by: Con Kolivas <kernel@kolivas.org>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Con Kolivas and committed by
Linus Torvalds
3c30b06d 2ff28e22

+5 -1
+5 -1
include/linux/smp.h
··· 82 82 */ 83 83 #define raw_smp_processor_id() 0 84 84 #define hard_smp_processor_id() 0 85 - #define smp_call_function(func,info,retry,wait) ({ 0; }) 85 + static inline int up_smp_call_function(void) 86 + { 87 + return 0; 88 + } 89 + #define smp_call_function(func,info,retry,wait) (up_smp_call_function()) 86 90 #define on_each_cpu(func,info,retry,wait) \ 87 91 ({ \ 88 92 local_irq_disable(); \