mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] uml: Fix build breakage after slab.h changes
@ 2010-04-18 16:37 Jan Kiszka
  2010-04-18 21:24 ` Tejun Heo
  2010-04-19  8:51 ` Tejun Heo
  0 siblings, 2 replies; 10+ messages in thread
From: Jan Kiszka @ 2010-04-18 16:37 UTC (permalink / raw)
  To: Jeff Dike
  Cc: Linux Kernel Mailing List, user-mode-linux-devel, Tejun Heo, Tiger Yang

We now have to to include linux/slab.h explicitly for kmalloc & friends.
Files that build against host headers already get their prototypes via
um_malloc.h, linux/slab.h may even be unavailable.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
---
 arch/um/drivers/line.c    |    1 +
 arch/um/os-Linux/helper.c |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c
index 64cda95..7a656bd 100644
--- a/arch/um/drivers/line.c
+++ b/arch/um/drivers/line.c
@@ -6,6 +6,7 @@
 #include "linux/irqreturn.h"
 #include "linux/kd.h"
 #include "linux/sched.h"
+#include "linux/slab.h"
 #include "chan_kern.h"
 #include "irq_kern.h"
 #include "irq_user.h"
diff --git a/arch/um/os-Linux/helper.c b/arch/um/os-Linux/helper.c
index 06d6ccf..b6b1096 100644
--- a/arch/um/os-Linux/helper.c
+++ b/arch/um/os-Linux/helper.c
@@ -8,7 +8,6 @@
 #include <errno.h>
 #include <sched.h>
 #include <linux/limits.h>
-#include <linux/slab.h>
 #include <sys/socket.h>
 #include <sys/wait.h>
 #include "kern_constants.h"


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

end of thread, other threads:[~2010-04-20 17:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-18 16:37 [PATCH] uml: Fix build breakage after slab.h changes Jan Kiszka
2010-04-18 21:24 ` Tejun Heo
2010-04-19  7:35   ` Jan Kiszka
2010-04-19  8:19     ` Tejun Heo
2010-04-19 16:29     ` Jiri Kosina
2010-04-19 20:10       ` Jan Kiszka
2010-04-19 20:12         ` Jiri Kosina
2010-04-20 14:31           ` Jeff Dike
2010-04-20 17:11             ` Jan Kiszka
2010-04-19  8:51 ` Tejun Heo

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

Powered by JetHome