Skip to content

Commit

Permalink
uml: Fix build breakage after slab.h changes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Kiszka authored and Tejun Heo committed Apr 19, 2010
1 parent 13bd8e4 commit 7f3c1fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions arch/um/drivers/line.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion arch/um/os-Linux/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7f3c1fa

Please sign in to comment.