[PATCH] x86_64: Fix memory policy build without CONFIG_HUGETLBFS
authorChen, Kenneth W <kenneth.w.chen@intel.com>
Fri, 3 Feb 2006 20:51:14 +0000 (21:51 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 5 Feb 2006 00:43:14 +0000 (16:43 -0800)
commit00ac59adfca8f2f339beb0b67054e786c275553e
tree96489ebcdebec957f94de44940e10b3935bc3c18
parent9e8c34edfd7ae97d0e3391f34d9d26a0167912bf
[PATCH] x86_64: Fix memory policy build without CONFIG_HUGETLBFS

> mm/mempolicy.c: In function `huge_zonelist':
> mm/mempolicy.c:1045: error: `HPAGE_SHIFT' undeclared (first use in this function)
> mm/mempolicy.c:1045: error: (Each undeclared identifier is reported only once
> mm/mempolicy.c:1045: error: for each function it appears in.)
> make[1]: *** [mm/mempolicy.o] Error 1

Need to wrap huge_zonelist function with CONFIG_HUGETLBFS.

Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mempolicy.c