X86: Explicitly include required header files.
PATCH 1/1 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 <[email protected]>
---
arch/x86/kernel/nmi_32.c | 1 + arch/x86/kernel/test_nx.c | 2 ++ 2 files changed, 3 insertions(+)
arch/x86/kernel/nmi_32.c +1 -0
@@ -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>
arch/x86/kernel/test_nx.c +2 -0
@@ -11,6 +11,8 @@*/ #include <linux/module.h> #include <linux/sort.h> +#include <linux/slab.h> +#include <asm/uaccess.h> #include <asm/asm.h>
========================================================================
Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry:
Signed-off-by Robert P. J. Day <[email protected]
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
Ingo Molnar
AppliedQuoted 2 lines · Robert P. J. Day
After an experimental cleanup of <
linux/percpu.h>, these files were exposed as invokingkmalloc()without including <linux/slab.h>.
thanks, applied.
Ingo