]> err.no Git - linux-2.6/commit
[PATCH] ppc64 need HPAGE_SHIFT when huge pages disabled
authorAndy Whitcroft <apw@shadowen.org>
Fri, 18 Nov 2005 09:11:02 +0000 (01:11 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 18 Nov 2005 15:49:46 +0000 (07:49 -0800)
commitb50ce2324cecf4efc7babe31f4aa1a07f9157317
treec8cacd9ab083d2abf58a8d586d3014f314479b69
parentc0e485216de80046dd0d448b7cd530dbfc31402f
[PATCH] ppc64 need HPAGE_SHIFT when huge pages disabled

With the new powerpc architecture we don't seem to be able to disable huge
pages anymore.

    mm/built-in.o(.toc1+0xae0): undefined reference to `HPAGE_SHIFT'
    make: *** [.tmp_vmlinux1] Error 1

We seem to need to define HPAGE_SHIFT to something when HUGETLB_PAGE isn't
defined.  This patch defines it to PAGE_SHIFT when we have no support.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-powerpc/page_64.h