[Top] [All Lists]

Re: [patch] hugetlb: remove dummy definitions of HPAGE_MASK and HPAGE_SI

To: David Daney <>
Subject: Re: [patch] hugetlb: remove dummy definitions of HPAGE_MASK and HPAGE_SIZE
From: Linus Torvalds <>
Date: Mon, 21 Nov 2011 14:43:19 -0800
Cc: David Rientjes <>, Andrew Morton <>,,,, David Daney <>,, Robin Holt <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Mhmf1v9O4gEn8SFS9HcVxetH2At4cphLnM2SQYopBOU=; b=uHpacWBBMLkwkCPx9oXt90GZdtY32heJKQgVnj1QWnVx3GiFL6z+zFSau6tJWSPIAx 2gy5GH+sCBaMTrOKH4bvVZXYwJ29Wsw8Jt0QEroS/k0r7z5UgqYZEW7Jlxh3yw/Klbdo I/3dFycSnIsgEnm8HDn4S5y9E+M5zFNwcBrvA=
In-reply-to: <>
References: <> <> <> <>
On Mon, Nov 21, 2011 at 2:23 PM, David Daney <> wrote:
> This whole comment strikes me as somewhat dishonest, as at the time David
> Rientjes wrote it, he knew that there were dependencies on these symbols in
> the linux-next tree.
> Now we can add these:
> +#define HPAGE_SHIFT    ({ BUG(); 0; })
> +#define HPAGE_SIZE     ({ BUG(); 0; })
> +#define HPAGE_MASK     ({ BUG(); 0; })

Hell no.

We don't do run-time BUG() things. No way, no how.

If that #define cannot be used, then it damn well shouldn't be defined at all.

David's patch is clearly the right thing to do. Don't try to send me
the above kind of insane crap.


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