Browse Source

x86: Explicitly include required header files.

After an experimental cleanup of <linux/percpu.h>, these files were
exposed as invoking kmalloc() without including <linux/slab.h>.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Robert P. J. Day 17 years ago
parent
commit
0054f4b708
2 changed files with 3 additions and 0 deletions
  1. 1 0
      arch/x86/kernel/nmi_32.c
  2. 2 0
      arch/x86/kernel/test_nx.c

+ 1 - 0
arch/x86/kernel/nmi_32.c

@@ -22,6 +22,7 @@
 #include <linux/cpumask.h>
 #include <linux/cpumask.h>
 #include <linux/kernel_stat.h>
 #include <linux/kernel_stat.h>
 #include <linux/kdebug.h>
 #include <linux/kdebug.h>
+#include <linux/slab.h>
 
 
 #include <asm/smp.h>
 #include <asm/smp.h>
 #include <asm/nmi.h>
 #include <asm/nmi.h>

+ 2 - 0
arch/x86/kernel/test_nx.c

@@ -11,6 +11,8 @@
  */
  */
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/sort.h>
 #include <linux/sort.h>
+#include <linux/slab.h>
+
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
 #include <asm/asm.h>
 #include <asm/asm.h>