* [PATCH] cleanup smp_call_function UP build
@ 2006-03-21 5:15 Con Kolivas
0 siblings, 0 replies; only message in thread
From: Con Kolivas @ 2006-03-21 5:15 UTC (permalink / raw)
To: linux-kernel; +Cc: Andrew Morton
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
Signed-off-by: Con Kolivas <kernel@kolivas.org>
include/linux/smp.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Index: linux-2.6.16-ck1/include/linux/smp.h
===================================================================
--- linux-2.6.16-ck1.orig/include/linux/smp.h 2006-03-21 15:55:29.000000000 +1100
+++ linux-2.6.16-ck1/include/linux/smp.h 2006-03-21 15:59:09.000000000 +1100
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-21 5:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-21 5:15 [PATCH] cleanup smp_call_function UP build Con Kolivas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox