Re: [PATCH 3/7] [HACK] x86: crypto: fix link error with LTO

2018-02-02 Thread Arnd Bergmann
On Fri, Feb 2, 2018 at 8:49 PM, Nicolas Pitre wrote: > On Fri, 2 Feb 2018, Arnd Bergmann wrote: > >> crypto_it_tab and the other symbols like it are defined in >> crypto/aes_generic.c and exported for loadable modules. When >> building with LTO and CONFIG_TRIM_UNUSED_KSYMS, the exports >> are elim

Re: [PATCH 3/7] [HACK] x86: crypto: fix link error with LTO

2018-02-02 Thread Nicolas Pitre
On Fri, 2 Feb 2018, Arnd Bergmann wrote: > crypto_it_tab and the other symbols like it are defined in > crypto/aes_generic.c and exported for loadable modules. When > building with LTO and CONFIG_TRIM_UNUSED_KSYMS, the exports > are eliminated, since kbuild fails to take the users in > the arch/x8