On 11/19/2011 09:27 PM, Hillf Danton wrote: [...]
--- a/arch/mips/include/asm/page.h Sun Nov 20 13:08:44 2011 +++ b/arch/mips/include/asm/page.h Sun Nov 20 13:17:43 2011 @@ -38,6 +38,11 @@ #define HPAGE_SIZE (_AC(1,UL)<< HPAGE_SHIFT) #define HPAGE_MASK (~(HPAGE_SIZE - 1)) #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT) +#else +#define HPAGE_SHIFT ({ BUG(); 0; }) +#define HPAGE_SIZE ({ BUG(); 0; }) +#define HPAGE_MASK ({ BUG(); 0; })
These three are taken care of in linux/hugetlb.h by the patches that Andrew Morton has in his tree, the full discussion starts at:
http://www.linux-mips.org/archives/linux-mips/2011-11/msg00412.html
+#define HUGETLB_PAGE_ORDER ({ BUG(); 0; })
This value doesn't appear to be necessary at this point. David Daney