瀏覽代碼

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 年之前
父節點
當前提交
0054f4b708
共有 2 個文件被更改,包括 3 次插入0 次删除
  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/kernel_stat.h>
 #include <linux/kdebug.h>
+#include <linux/slab.h>
 
 #include <asm/smp.h>
 #include <asm/nmi.h>

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

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