mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@linux-foundation.org>
To: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Christoph Hellwig <hch@infradead.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Boaz Harrosh <bharrosh@panasas.com>
Subject: Re: [PATCH 1/2] byteorder: add load/store_{endian} API
Date: Mon, 2 Mar 2009 16:37:17 -0800 (PST)	[thread overview]
Message-ID: <alpine.LFD.2.00.0903021632320.3111@localhost.localdomain> (raw)
In-Reply-To: <1236039944.5756.19.camel@brick>



On Mon, 2 Mar 2009, Harvey Harrison wrote:
>
> Although gcc (4.4) grew support for __builtin_constant_p in static 
> inlines, older gcc's don't, so we would lose that with essentially all 
> current compilers.

We've used __builtin_constant_p in inline functions for a long time.

Look at kmalloc() in <linux/slab_dev.h>.

I do agree that it's a "new" feature, but I don't think it's _that_ new. I 
think it goes back to something like 3.2 rather than 4.4.

Although I also would not be surprised if this is one of those "gcc 
version of the day" things, where some versions do it, others don't.

So it's quite possible that it depends a bit on just how many dead cats 
you have offered, and whether you ran widdershins or turnwise around the 
computer when you turned it on.

		Linus

  reply	other threads:[~2009-03-03  0:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-03  0:06 Harvey Harrison
2009-03-03  0:15 ` Linus Torvalds
2009-03-03  0:25   ` Harvey Harrison
2009-03-03  0:37     ` Linus Torvalds [this message]
2009-03-03  0:40       ` Harvey Harrison
2009-03-03  1:51         ` Linus Torvalds
2009-03-03  2:09           ` Harvey Harrison

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.00.0903021632320.3111@localhost.localdomain \
    --to=torvalds@linux-foundation.org \
    --cc=akpm@linux-foundation.org \
    --cc=bharrosh@panasas.com \
    --cc=geert@linux-m68k.org \
    --cc=harvey.harrison@gmail.com \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome