Re: [PATCH v2] kbuild: fix UNUSED_KSYMS_WHITELIST for Clang LTO

2021-02-27 Thread Sedat Dilek
On Sat, Feb 27, 2021 at 8:08 AM Sedat Dilek wrote: > > On Sat, Feb 27, 2021 at 7:55 AM Masahiro Yamada wrote: > > > > On Fri, Feb 26, 2021 at 6:26 PM Sedat Dilek wrote: > > > > > > On Fri, Feb 26, 2021 at 7:26 AM Masahiro Yamada > > > wrote: > > > > > > > > Commit fbe078d397b4 ("kbuild: lto: a

Re: [PATCH v2] kbuild: fix UNUSED_KSYMS_WHITELIST for Clang LTO

2021-02-26 Thread Sedat Dilek
On Sat, Feb 27, 2021 at 7:55 AM Masahiro Yamada wrote: > > On Fri, Feb 26, 2021 at 6:26 PM Sedat Dilek wrote: > > > > On Fri, Feb 26, 2021 at 7:26 AM Masahiro Yamada > > wrote: > > > > > > Commit fbe078d397b4 ("kbuild: lto: add a default list of used symbols") > > > does not work as expected if

Re: [PATCH v2] kbuild: fix UNUSED_KSYMS_WHITELIST for Clang LTO

2021-02-26 Thread Masahiro Yamada
On Fri, Feb 26, 2021 at 6:26 PM Sedat Dilek wrote: > > On Fri, Feb 26, 2021 at 7:26 AM Masahiro Yamada wrote: > > > > Commit fbe078d397b4 ("kbuild: lto: add a default list of used symbols") > > does not work as expected if the .config file has already specified > > CONFIG_UNUSED_KSYMS_WHITELIST="

Re: [PATCH v2] kbuild: fix UNUSED_KSYMS_WHITELIST for Clang LTO

2021-02-26 Thread Sedat Dilek
On Fri, Feb 26, 2021 at 7:26 AM Masahiro Yamada wrote: > > Commit fbe078d397b4 ("kbuild: lto: add a default list of used symbols") > does not work as expected if the .config file has already specified > CONFIG_UNUSED_KSYMS_WHITELIST="my/own/white/list" before enabling > CONFIG_LTO_CLANG. > > So, t

[PATCH v2] kbuild: fix UNUSED_KSYMS_WHITELIST for Clang LTO

2021-02-25 Thread Masahiro Yamada
Commit fbe078d397b4 ("kbuild: lto: add a default list of used symbols") does not work as expected if the .config file has already specified CONFIG_UNUSED_KSYMS_WHITELIST="my/own/white/list" before enabling CONFIG_LTO_CLANG. So, the user-supplied whitelist and LTO-specific white list must be indepe