--- zzzz-none-000/linux-5.15.111/include/linux/elf.h 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/include/linux/elf.h 2024-02-07 10:23:26.000000000 +0000 @@ -67,7 +67,8 @@ #ifndef ARCH_HAVE_EXTRA_ELF_NOTES static inline int elf_coredump_extra_notes_size(void) { return 0; } -static inline int elf_coredump_extra_notes_write(struct coredump_params *cprm) { return 0; } +static inline int elf_coredump_extra_notes_write(struct coredump_params __always_unused *cprm) +{ return 0; } #else extern int elf_coredump_extra_notes_size(void); extern int elf_coredump_extra_notes_write(struct coredump_params *cprm);