Messages in this thread | | | From | Ard Biesheuvel <> | Date | Wed, 11 Jan 2017 08:06:54 +0000 | Subject | Re: x86-64: Maintain 16-byte stack alignment |
| |
On 11 January 2017 at 06:53, Linus Torvalds <torvalds@linux-foundation.org> wrote: > > > On Jan 10, 2017 8:36 PM, "Herbert Xu" <herbert@gondor.apana.org.au> wrote: > > > Sure we can ban the use of attribute aligned on stacks. But > what about indirect uses through structures? > > > It should be pretty trivial to add a sparse warning for that, though. >
Couldn't we update the __aligned(x) macro to emit 32 if arch == x86 and x == 16? All other cases should work just fine afaict
| |