Skip to content

Commit

Permalink
nodemask: include slab.h from drivers/base/node.c
Browse files Browse the repository at this point in the history
NODEMASK_ALLOC/FREE are mapped to kmalloc/free if NODES_SHIFT > 8.
Among its several users, drivers/base/node.c wasn't including slab.h
leading to build failure if NODES_SHIFT > 8.  Include slab.h from
drivers/base/node.c.

This isn't an ideal solution but including slab.h directly from
nodemask.h is not an option because nodemask.h gets included
everywhere.  For now, make it work by including slab.h from its users.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Tejun Heo committed Apr 6, 2010
1 parent 0fdf867 commit 18e5b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <linux/cpu.h>
#include <linux/device.h>
#include <linux/swap.h>
#include <linux/gfp.h>
#include <linux/slab.h>

static struct sysdev_class_attribute *node_state_attrs[];

Expand Down

0 comments on commit 18e5b53

Please sign in to comment.