[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANiq72mXLbaefVBqZzz1vSREi0=HiBUgR1KU3iRjOCum7rvfrw@mail.gmail.com>
Date: Thu, 5 Sep 2019 21:40:50 +0200
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Nick Desaulniers <ndesaulniers@...gle.com>,
Will Deacon <will@...nel.org>,
Josh Poimboeuf <jpoimboe@...hat.com>,
"Naveen N. Rao" <naveen.n.rao@...ux.vnet.ibm.com>,
"David S. Miller" <davem@...emloft.net>,
Paul Burton <paul.burton@...s.com>,
Sedat Dilek <sedat.dilek@...il.com>,
Linux List Kernel Mailing <linux-kernel@...r.kernel.org>
Subject: Re: [GIT PULL] compiler-attributes for v5.3-rc8
On Thu, Sep 5, 2019 at 6:20 PM Linus Torvalds
<torvalds@...ux-foundation.org> wrote:
>
> Macro stringification isn't entirely obvious, and an unquoted string
> could become corrupted if the stringification ends up not happening
> immediately.
Nick, Linus: shouldn't we just simply go for no stringifying at all,
i.e. changing it to:
#define __section(S) __attribute__((__section__(S)))
That way we can handle both easy things like:
__section("foo")
as well as the mentioned:
__section(".initcall" level ".init")
that we couldn't do before.
Both GCC and Clang give the same result and it is also easier to
reason about it.
Cheers,
Miguel
Powered by blists - more mailing lists