Re: [PATCH v2 05/14] powerpc: Remove linker flag from KBUILD_AFLAGS

2023-01-26 Thread Michael Ellerman
Masahiro Yamada writes: > On Thu, Jan 26, 2023 at 11:07 AM Nathan Chancellor wrote: >> >> On Thu, Jan 26, 2023 at 10:29:54AM +0900, Masahiro Yamada wrote: >> > On Wed, Jan 25, 2023 at 1:11 PM Michael Ellerman >> > wrote: >> > > >> > > Nathan Chancellor writes: >> > > > When clang's

Re: [PATCH v2 05/14] powerpc: Remove linker flag from KBUILD_AFLAGS

2023-01-25 Thread Masahiro Yamada
On Thu, Jan 26, 2023 at 11:07 AM Nathan Chancellor wrote: > > On Thu, Jan 26, 2023 at 10:29:54AM +0900, Masahiro Yamada wrote: > > On Wed, Jan 25, 2023 at 1:11 PM Michael Ellerman > > wrote: > > > > > > Nathan Chancellor writes: > > > > When clang's -Qunused-arguments is dropped from

Re: [PATCH v2 05/14] powerpc: Remove linker flag from KBUILD_AFLAGS

2023-01-25 Thread Nathan Chancellor
On Thu, Jan 26, 2023 at 10:29:54AM +0900, Masahiro Yamada wrote: > On Wed, Jan 25, 2023 at 1:11 PM Michael Ellerman wrote: > > > > Nathan Chancellor writes: > > > When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, it > > > points out that KBUILD_AFLAGS contains a linker flag, which

Re: [PATCH v2 05/14] powerpc: Remove linker flag from KBUILD_AFLAGS

2023-01-25 Thread Masahiro Yamada
On Wed, Jan 25, 2023 at 1:11 PM Michael Ellerman wrote: > > Nathan Chancellor writes: > > When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, it > > points out that KBUILD_AFLAGS contains a linker flag, which will be > > used: > > Should that say "unused" ? Nathan, shall I fix it

Re: [PATCH v2 05/14] powerpc: Remove linker flag from KBUILD_AFLAGS

2023-01-24 Thread Michael Ellerman
Nathan Chancellor writes: > When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, it > points out that KBUILD_AFLAGS contains a linker flag, which will be > used: Should that say "unused" ? > clang: error: -Wl,-a32: 'linker' input unused > [-Werror,-Wunused-command-line-argument]

[PATCH v2 05/14] powerpc: Remove linker flag from KBUILD_AFLAGS

2023-01-11 Thread Nathan Chancellor
When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, it points out that KBUILD_AFLAGS contains a linker flag, which will be used: clang: error: -Wl,-a32: 'linker' input unused [-Werror,-Wunused-command-line-argument] This was likely supposed to be '-Wa,-a$(BITS)'. However, this