[NET]: Shut up warnings in net/core/flow.c

Not really a network problem, more a !SMP issue.

net/core/flow.c:295: warning: statement with no effect

flow.c:295: smp_call_function(flow_cache_flush_per_cpu, &info, 1, 0);

Fix this by converting the macro to an inline function, which
also increases the typechecking for !SMP builds.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Russell King and committed by David S. Miller af2b4079 b3a5225f

+7 -1
+7 -1
include/linux/smp.h
··· 94 94 */ 95 95 #define raw_smp_processor_id() 0 96 96 #define hard_smp_processor_id() 0 97 - #define smp_call_function(func,info,retry,wait) ({ 0; }) 97 + 98 + static inline int smp_call_function(void (*func) (void *info), void *info, 99 + int retry, int wait) 100 + { 101 + return 0; 102 + } 103 + 98 104 #define on_each_cpu(func,info,retry,wait) ({ func(info); 0; }) 99 105 static inline void smp_send_reschedule(int cpu) { } 100 106 #define num_booting_cpus() 1