[PATCH] cleanup smp_call_function UP build
authorCon Kolivas <kernel@kolivas.org>
Sun, 26 Mar 2006 09:37:19 +0000 (01:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:56:55 +0000 (08:56 -0800)
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>
include/linux/smp.h

index d699a16b0cb275609b6c8fd474426d37cb6f7a9c..e2fa3ab4afc5e9125e0dd6a98e3929b3eeba20fa 100644 (file)
@@ -82,7 +82,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)      \
        ({                                      \
                local_irq_disable();            \