Kernel Build Fails on repo linux-next-20240626
Greetings!!!
Kernel Build fails with below error, while building with linux-next(next-20240626) repo.
arch/powerpc/kernel/nvram_64.c:79:17: error: initialization of ‘void (*)(struct kmsg_dumper *, enum kmsg_dump_reason, const char *)’ from incompatible pointer type ‘void (*)(struct kmsg_dumper *, enum kmsg_dump_reason)’ [-Werror=incompatible-pointer-types] 79 | .dump = oops_to_nvram
| ^~~~~~~~~~~~~arch/powerpc/kernel/nvram_64.c:79:17: note: (near initialization for ‘nvram_kmsg_dumper.dump’)arch/powerpc/kernel/nvram_64.c:645:13: error: conflicting types for ‘oops_to_nvram’; have ‘void(struct kmsg_dumper *, enum kmsg_dump_reason, const char *)’
645 | static void oops_to_nvram(struct kmsg_dumper *dumper,
| ^~~~~~~~~~~~~arch/powerpc/kernel/nvram_64.c:75:13: note: previous declaration of ‘oops_to_nvram’ with type ‘void(struct kmsg_dumper *, enum kmsg_dump_reason)’
75 | static void oops_to_nvram(struct kmsg_dumper *dumper,
| ^~~~~~~~~~~~~arch/powerpc/kernel/nvram_64.c:75:13: error: ‘oops_to_nvram’ used but never defined [-Werror]arch/powerpc/kernel/nvram_64.c:645:13: error: ‘oops_to_nvram’ defined but not used [-Werror=unused-function]
645 | static void oops_to_nvram(struct kmsg_dumper *dumper,
| ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:244: arch/powerpc/kernel/nvram_64.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:485: arch/powerpc/kernel] Error 2
make[2]: *** [scripts/Makefile.build:485: arch/powerpc] Error 2
This issue has been introduced with the below commit.
Commit ID: 7e72bb7504d1192ab89809f6192dba1b06f4fa51.
Regards,
Venkat.
Hi,
I think this patch was merged by mistake, as it was not yet reviewed. can someone revert it ?
Signature · 1 line
Jocelyn
Quoted 38 lines · Venkat Rao Bagalkote
Greetings!!!
Kernel Build fails with below error, while building with linux-next(next-20240626) repo.
arch/powerpc/kernel/nvram_64.c:79:17: error: initialization of ‘void (*)(structkmsg_dumper*, enum kmsg_dump_reason, const char *)’ from incompatible pointer type ‘void (*)(structkmsg_dumper*, enum kmsg_dump_reason)’ [-Werror=incompatible-pointer-types]
79 | .dump =oops_to_nvram
| ^~~~~~~~~~~~~arch/powerpc/kernel/nvram_64.c:79:17: note: (near initialization for ‘nvram_kmsg_dumper.dump’)arch/powerpc/kernel/nvram_64.c:645:13: error: conflicting types for ‘oops_to_nvram’; have ‘void(structkmsg_dumper*, enum kmsg_dump_reason, const char *)’
645 | static void oops_to_nvram(structkmsg_dumper*dumper,
| ^~~~~~~~~~~~~arch/powerpc/kernel/nvram_64.c:75:13: note: previous declaration of ‘oops_to_nvram’ with type ‘void(structkmsg_dumper*, enum kmsg_dump_reason)’
75 | static void oops_to_nvram(structkmsg_dumper*dumper,
| ^~~~~~~~~~~~~arch/powerpc/kernel/nvram_64.c:75:13: error: ‘oops_to_nvram’ used but never defined [-Werror]arch/powerpc/kernel/nvram_64.c:645:13: error: ‘oops_to_nvram’ defined but not used [-Werror=unused-function]
645 | static void oops_to_nvram(structkmsg_dumper*dumper,
| ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:244:arch/powerpc/kernel/nvram_64.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:485:arch/powerpc/kernel] Error 2make[2]: *** [
scripts/Makefile.build:485:arch/powerpc] Error 2This issue has been introduced with the below commit.
Commit ID:
7e72bb7504d1192ab89809f6192dba1b06f4fa51.Regards,
Venkat.