Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

uml: Fix build breakage after slab.h changes

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>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Jan Kiszka and committed by
Tejun Heo
7f3c1fa4 13bd8e46

+1 -1
+1
arch/um/drivers/line.c
··· 6 6 #include "linux/irqreturn.h" 7 7 #include "linux/kd.h" 8 8 #include "linux/sched.h" 9 + #include "linux/slab.h" 9 10 #include "chan_kern.h" 10 11 #include "irq_kern.h" 11 12 #include "irq_user.h"
-1
arch/um/os-Linux/helper.c
··· 8 8 #include <errno.h> 9 9 #include <sched.h> 10 10 #include <linux/limits.h> 11 - #include <linux/slab.h> 12 11 #include <sys/socket.h> 13 12 #include <sys/wait.h> 14 13 #include "kern_constants.h"