Commit 0054f4b708d21bd0032480cf7309d17753bc17bb

Authored by Robert P. J. Day
Committed by Ingo Molnar
1 parent f7d909d547

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>

Showing 2 changed files with 3 additions and 0 deletions Side-by-side Diff

arch/x86/kernel/nmi_32.c
... ... @@ -22,6 +22,7 @@
22 22 #include <linux/cpumask.h>
23 23 #include <linux/kernel_stat.h>
24 24 #include <linux/kdebug.h>
  25 +#include <linux/slab.h>
25 26  
26 27 #include <asm/smp.h>
27 28 #include <asm/nmi.h>
arch/x86/kernel/test_nx.c
... ... @@ -11,6 +11,8 @@
11 11 */
12 12 #include <linux/module.h>
13 13 #include <linux/sort.h>
  14 +#include <linux/slab.h>
  15 +
14 16 #include <asm/uaccess.h>
15 17 #include <asm/asm.h>
16 18