| To: | David Daney <ddaney.cavm@gmail.com> |
|---|---|
| Subject: | Re: [patch] hugetlb: remove dummy definitions of HPAGE_MASK and HPAGE_SIZE |
| From: | Linus Torvalds <torvalds@linux-foundation.org> |
| Date: | Mon, 21 Nov 2011 14:43:19 -0800 |
| Cc: | David Rientjes <rientjes@google.com>, Andrew Morton <akpm@linux-foundation.org>, linux-mips@linux-mips.org, ralf@linux-mips.org, linux-kernel@vger.kernel.org, David Daney <david.daney@cavium.com>, linux-arch@vger.kernel.org, Robin Holt <holt@sgi.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; 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: | <4ECACF68.3020701@gmail.com> |
| References: | <1321567050-13197-1-git-send-email-ddaney.cavm@gmail.com> <alpine.DEB.2.00.1111171520130.20133@chino.kir.corp.google.com> <alpine.DEB.2.00.1111171522131.20133@chino.kir.corp.google.com> <4ECACF68.3020701@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Mon, Nov 21, 2011 at 2:23 PM, David Daney <ddaney.cavm@gmail.com> 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.
Linus
|
| Previous by Date: | Re: [patch] mips, mm: avoid using HPAGE constants without CONFIG_HUGETLB_PAGE, David Rientjes |
|---|---|
| Next by Date: | Re: [patch] hugetlb: remove dummy definitions of HPAGE_MASK and HPAGE_SIZE, David Rientjes |
| Previous by Thread: | Re: [patch] hugetlb: remove dummy definitions of HPAGE_MASK and HPAGE_SIZE, David Daney |
| Next by Thread: | Re: [patch] hugetlb: remove dummy definitions of HPAGE_MASK and HPAGE_SIZE, David Daney |
| Indexes: | [Date] [Thread] [Top] [All Lists] |