[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e231bce4942848400f4286a2d4178eeab6555989.camel@perches.com>
Date: Wed, 22 Sep 2021 01:51:34 -0700
From: Joe Perches <joe@...ches.com>
To: Alexey Dobriyan <adobriyan@...il.com>, linux-kernel@...r.kernel.org
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>, apw@...onical.com,
Christoph Lameter <cl@...ux.com>,
Daniel Micay <danielmicay@...il.com>,
Dennis Zhou <dennis@...nel.org>, dwaipayanray1@...il.com,
Joonsoo Kim <iamjoonsoo.kim@....com>,
Linux-MM <linux-mm@...ck.org>,
Lukas Bulwahn <lukas.bulwahn@...il.com>,
mm-commits@...r.kernel.org, Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Miguel Ojeda <ojeda@...nel.org>,
Pekka Enberg <penberg@...nel.org>,
David Rientjes <rientjes@...gle.com>,
Tejun Heo <tj@...nel.org>, Vlastimil Babka <vbabka@...e.cz>,
linux-doc@...r.kernel.org
Subject: Re: function prototype element ordering
On Wed, 2021-09-22 at 10:24 +0300, Alexey Dobriyan wrote:
> Attributes should be on their own line, they can be quite lengthy.
>
> __attribute__((...))
> [static] [inline] T f(A1 arg1, ...)
> {
> ...
> }
>
> There will be even more attributes in the future, both added by
> compilers and developers (const, pure, WUR), so let's make "prototype lane"
> for them.
>
> Same for structures:
>
> __attribute__((packed))
> struct S {
> };
Do you know if placing attributes like __packed/__aligned() before
definitions would work for all cases for structs/substructs/unions?
Powered by blists - more mailing lists