Re: [patch] mips, mm: avoid using HPAGE constants without CONFIG_HUGETLB_PAGE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux