All of lore.kernel.org
 help / color / mirror / Atom feed
* compiling 2.6.31, SMP with NR_CPUS == 1
       [not found] <39e348480909171025v21290799jc974c650b6c04379@mail.gmail.com>
@ 2009-09-17 17:28 ` GoatZilla
  0 siblings, 0 replies; only message in thread
From: GoatZilla @ 2009-09-17 17:28 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]

I'm not sure if this is just me, or it's already been fixed, but in
include/linux/cpumask.h, if nr_cpu_ids is defined to "1", doesn't that
break init/main.c:368?

[-- Attachment #2: cpumask.patch --]
[-- Type: application/octet-stream, Size: 623 bytes --]

--- cpumask.h	14 Sep 2009 23:14:14 -0000	1.1.1.1
+++ cpumask.h	17 Sep 2009 16:55:09 -0000
@@ -396,7 +396,9 @@
 
 #if NR_CPUS == 1
 
-#define nr_cpu_ids		1
+/*  See init/main.c:368  */
+extern int nr_cpu_ids;
+
 #ifndef CONFIG_DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
 #define first_cpu(src)		({ (void)(src); 0; })
 #define next_cpu(n, src)	({ (void)(src); 1; })
@@ -406,7 +408,6 @@
 #endif /* !CONFIG_DISABLE_OBSOLETE_CPUMASK_FUNCTIONS */
 #else /* NR_CPUS > 1 */
 
-extern int nr_cpu_ids;
 #ifndef CONFIG_DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
 int __first_cpu(const cpumask_t *srcp);
 int __next_cpu(int n, const cpumask_t *srcp);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-17 17:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <39e348480909171025v21290799jc974c650b6c04379@mail.gmail.com>
2009-09-17 17:28 ` compiling 2.6.31, SMP with NR_CPUS == 1 GoatZilla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.