Skip to contentSkip to conversation

fix include/linux/smp.h

PATCH New Paul Mackerras 1 participant 1 message Apr 4, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix include/linux/smp.h

Linus,

This patch adds #include <linux/threads.h> to include/linux/smp.h, because it (smp.h) needs the definition of NR_CPUS. (It so happens that include/asm-i386/smp.h includes <linux/threads.h>, but IMHO include/linux/smp.h shouldn't rely on that).

Please apply this patch to your 2.5 tree.

Paul.

include/linux/smp.h +1 -0
diff -urN linux-2.5/include/linux/smp.h pmac-2.5/include/linux/smp.h
@@ -12,6 +12,7 @@
 
 #include <linux/kernel.h>
 #include <linux/compiler.h>
+#include <linux/threads.h>
 #include <asm/smp.h>
 
 /*