Skip to contentSkip to conversation

cleanup smp_call_function UP build

PATCH New Con Kolivas 1 participant 1 message Mar 21, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cleanup smp_call_function UP build

Fix for compiler warnings on UP builds:
net/core/flow.c: In function 'flow_cache_flush':
net/core/flow.c:299: warning: statement with no effect

 include/linux/smp.h |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
include/linux/smp.h +5 -1
Index: linux-2.6.16-ck1/include/linux/smp.h
===================================================================
@@ -93,7 +93,11 @@ void smp_prepare_boot_cpu(void);
  */
 #define raw_smp_processor_id()			0
 #define hard_smp_processor_id()			0
-#define smp_call_function(func,info,retry,wait)	({ 0; })
+static inline int up_smp_call_function(void)
+{
+	return 0;
+}
+#define smp_call_function(func,info,retry,wait)	(up_smp_call_function())
 #define on_each_cpu(func,info,retry,wait)	({ func(info); 0; })
 static inline void smp_send_reschedule(int cpu) { }
 #define num_booting_cpus()			1