nodemask: include slab.h from drivers/base/node.c
authorTejun Heo <tj@kernel.org>
Tue, 6 Apr 2010 10:23:33 +0000 (19:23 +0900)
committerTejun Heo <tj@kernel.org>
Tue, 6 Apr 2010 21:41:41 +0000 (06:41 +0900)
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>
drivers/base/node.c

index 985abd7f49a7b5c03282fe6d53f7f8ad647fd095..057979a19eea10283e5db959580a6f0208c8ab80 100644 (file)
@@ -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[];