linux-mips
[Top] [All Lists]

[PATCH] hugetlb: Provide a default HPAGE_SHIFT if !CONFIG_HUGETLB_PAGE

To: linux-mips@linux-mips.org, ralf@linux-mips.org, William Irwin <wli@holomorphy.com>, Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org
Subject: [PATCH] hugetlb: Provide a default HPAGE_SHIFT if !CONFIG_HUGETLB_PAGE
From: David Daney <ddaney.cavm@gmail.com>
Date: Wed, 16 Nov 2011 11:43:31 -0800
Cc: David Daney <david.daney@cavium.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=1dUh3L9fpvLEtXnYf8iCofytBwYqryA3scnvmshozZ0=; b=aJyNs9AHbLPQYt456I0siW5SJX9ERG2jDHEd06ZBwtEBo4xrVzcG3nBLkQTUGtN8nw aOR6If7wMvjIb4XFzPK2zNKeqkXfKRCCPXObhkcCGHD9C0CO/8x2hpVX9MxsFNYnoLSS 8I03FLgun+y327zqMizAbtA3mM3dJB2ubBW8E=
Sender: linux-mips-bounce@linux-mips.org
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


<Prev in Thread] Current Thread [Next in Thread>