Re: [PATCH 5/7] ARM: fix __inflate_kernel_data stack warning for LTO

2018-02-20 Thread Nicolas Pitre
On Tue, 20 Feb 2018, Arnd Bergmann wrote: > Commit ca8b5d97d6bf ("ARM: XIP kernel: store .data compressed in ROM") > moved the decompressor workspace to the stack and added a compiler > flag to avoid the stack size warning. > > With LTO, that warning comes back. Moving the workspace into an

Re: [PATCH 5/7] ARM: fix __inflate_kernel_data stack warning for LTO

2018-02-20 Thread Nicolas Pitre
On Tue, 20 Feb 2018, Arnd Bergmann wrote: > Commit ca8b5d97d6bf ("ARM: XIP kernel: store .data compressed in ROM") > moved the decompressor workspace to the stack and added a compiler > flag to avoid the stack size warning. > > With LTO, that warning comes back. Moving the workspace into an

[PATCH 5/7] ARM: fix __inflate_kernel_data stack warning for LTO

2018-02-20 Thread Arnd Bergmann
Commit ca8b5d97d6bf ("ARM: XIP kernel: store .data compressed in ROM") moved the decompressor workspace to the stack and added a compiler flag to avoid the stack size warning. With LTO, that warning comes back. Moving the workspace into an initdata variable avoids that warning but presumably also

[PATCH 5/7] ARM: fix __inflate_kernel_data stack warning for LTO

2018-02-20 Thread Arnd Bergmann
Commit ca8b5d97d6bf ("ARM: XIP kernel: store .data compressed in ROM") moved the decompressor workspace to the stack and added a compiler flag to avoid the stack size warning. With LTO, that warning comes back. Moving the workspace into an initdata variable avoids that warning but presumably also