[Top] [All Lists]

Re: [PATCH v2 0/2] Dummy HPAGE_* constants for !CONFIG_HUGETLB_PAGE

To: David Daney <>
Subject: Re: [PATCH v2 0/2] Dummy HPAGE_* constants for !CONFIG_HUGETLB_PAGE
From: David Rientjes <>
Date: Thu, 17 Nov 2011 15:22:02 -0800 (PST)
Cc:,, Andrew Morton <>,, David Daney <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=beta; h=date:from:x-x-sender:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; bh=5Fg27qAvsDWmP+SgQ0tvlzK0U2yjR1z8WHS8s5WvBvI=; b=B7jBTLmBRLw0qKMTsaibN8cGE9f3MGrZOg/oNZcqAL3N1s5P3J5bfMetDIIfbh6cur dFqro7aYFEGtyjA69Oeg==
In-reply-to: <>
References: <>
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Thu, 17 Nov 2011, David Daney wrote:

> From: David Daney <>
> After a, somewhat heated, discussion with David Rientjes, I think the
> following approach will work.
> The first patch adds HPAGE_SHIFT, needed by MIPS.
> The second cleans up the exiting HPAGE_MASK and HPAGE_SIZE
> David Daney (2):
>   hugetlb: Provide a default HPAGE_SHIFT if !CONFIG_HUGETLB_PAGE
>   hugetlb: Provide safer dummy values for HPAGE_MASK and HPAGE_SIZE
>  include/linux/hugetlb.h |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
> Cc: David Rientjes <>

Nack on both, we already discussed this in the other thread (and I 
wouldn't call it "somewhat heated").

We don't need these dummy definitions at all for any current architectures 
that use them and they should be removed so that any future code using 
them will have the proper dependency on CONFIG_HUGETLB_PAGE.

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