lkml.org 
[lkml]   [2002]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] 2.5.32-smph
Date
This patch appears not to be in 2.5.32, but applies cleanly.

Use of cpu_online on UP causes the following warnings:

page_alloc.c:555: warning: statement with no effect
proc_misc.c:297: warning: statement with no effect
proc_misc.c:313: warning: statement with no effect
dev.c:1824: warning: statement with no effect

This patch fixes these warnings.

include/linux/smp.h | 2 +-
1 files changed, 1 insertion, 1 deletion

--- orig/include/linux/smp.h Fri Aug 30 14:53:33 2002
+++ linux/include/linux/smp.h Fri Aug 30 14:51:19 2002
@@ -94,7 +94,7 @@
static inline void smp_send_reschedule(int cpu) { }
static inline void smp_send_reschedule_all(void) { }
#define cpu_online_map 1
-#define cpu_online(cpu) ({ cpu; 1; })
+#define cpu_online(cpu) ({ (void)cpu; 1; })
#define num_online_cpus() 1
#define num_booting_cpus() 1

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.029 / U:14.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site