On Thu, Sep 8, 2022 at 9:06 AM Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote: > > Hi all, > > After merging the kbuild tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > ld: vmlinux.a: member arch/powerpc/kernel/prom_init_check in archive is not an object > make[2]: *** [scripts/Makefile.vmlinux_o:61: vmlinux.o] Error 1 > make[1]: *** [Makefile:1166: vmlinux.o] Error 2 > make: *** [Makefile:222: __sub-make] Error 2 > Command exited with non-zero status 2 > > I don't know what caused this. > > I have used the kbuild tree from next-20220907 with the top 4 commits > reverted again. > > -- > Cheers, > Stephen Rothwell Sorry, it was a mis-conversion. I will fix it up as follows: diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index f264d9b2cb63..ad3decb9f20b 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile @@ -203,7 +203,7 @@ obj-$(CONFIG_ALTIVEC) += vector.o obj-$(CONFIG_PPC64) += entry_64.o obj-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += prom_init.o -obj-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += prom_init_check +extra-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += prom_init_check quiet_cmd_prom_init_check = PROMCHK $@ cmd_prom_init_check = $(CONFIG_SHELL) $< "$(NM)" $(obj)/prom_init.o; touch $@ -- Best Regards Masahiro Yamada