The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] X86: Explicitly include required header files.
@ 2008-03-14  1:47 Robert P. J. Day
  2008-03-21 11:28 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2008-03-14  1:47 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: tglx, mingo


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>

---

 arch/x86/kernel/nmi_32.c  |    1 +
 arch/x86/kernel/test_nx.c |    2 ++
 2 files changed, 3 insertions(+)

diff --git a/arch/x86/kernel/nmi_32.c b/arch/x86/kernel/nmi_32.c
index 6a0aa70..800b07d 100644
--- a/arch/x86/kernel/nmi_32.c
+++ b/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>
diff --git a/arch/x86/kernel/test_nx.c b/arch/x86/kernel/test_nx.c
index 10b8a6f..787a5e4 100644
--- a/arch/x86/kernel/test_nx.c
+++ b/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>


========================================================================
Robert P. J. Day Linux Consulting, Training and Annoying Kernel
Pedantry:
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] X86: Explicitly include required header files.
  2008-03-14  1:47 [PATCH] X86: Explicitly include required header files Robert P. J. Day
@ 2008-03-21 11:28 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-03-21 11:28 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: Linux Kernel Mailing List, tglx, mingo


* Robert P. J. Day <rpjday@crashcourse.ca> wrote:

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

thanks, applied.

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-21 11:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-14  1:47 [PATCH] X86: Explicitly include required header files Robert P. J. Day
2008-03-21 11:28 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox