--- zzzz-none-000/linux-4.9.279/include/linux/elf.h 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/include/linux/elf.h 2023-02-08 11:43:43.000000000 +0000 @@ -48,7 +48,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);