linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hugetlb: Provide a default HPAGE_SHIFT if !CONFIG_HUGETLB_PAGE
@ 2011-11-16 19:43 David Daney
  2011-11-16 21:32 ` David Rientjes
  0 siblings, 1 reply; 9+ messages in thread
From: David Daney @ 2011-11-16 19:43 UTC (permalink / raw)
  To: linux-mips, ralf, William Irwin, Andrew Morton, linux-kernel; +Cc: David Daney

From: David Daney <david.daney@cavium.com>

This is required now to get MIPS kernels to compile with
!CONFIG_HUGETLB_PAGE.

Signed-off-by: David Daney <david.daney@cavium.com>
---
 include/linux/hugetlb.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
index 19644e0..746d543 100644
--- a/include/linux/hugetlb.h
+++ b/include/linux/hugetlb.h
@@ -113,6 +113,7 @@ static inline void copy_huge_page(struct page *dst, struct page *src)
 #ifndef HPAGE_MASK
 #define HPAGE_MASK	PAGE_MASK		/* Keep the compiler happy */
 #define HPAGE_SIZE	PAGE_SIZE
+#define HPAGE_SHIFT	PAGE_SHIFT
 #endif
 
 #endif /* !CONFIG_HUGETLB_PAGE */
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-11-17 17:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-16 19:43 [PATCH] hugetlb: Provide a default HPAGE_SHIFT if !CONFIG_HUGETLB_PAGE David Daney
2011-11-16 21:32 ` David Rientjes
2011-11-16 22:09   ` David Daney
2011-11-16 23:18     ` David Rientjes
2011-11-16 23:44       ` David Daney
2011-11-17  0:08         ` David Rientjes
2011-11-17  1:00           ` David Daney
2011-11-17  4:56             ` David Rientjes
2011-11-17 17:21               ` David Daney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).