Skip to content

Commit

Permalink
x86: Explicitly include required header files.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Robert P. J. Day authored and Ingo Molnar committed Apr 17, 2008
1 parent f7d909d commit 0054f4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/kernel/nmi_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions arch/x86/kernel/test_nx.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
*/
#include <linux/module.h>
#include <linux/sort.h>
#include <linux/slab.h>

#include <asm/uaccess.h>
#include <asm/asm.h>

Expand Down

0 comments on commit 0054f4b

Please sign in to comment.