--- zzzz-none-000/linux-3.10.107/include/linux/elf.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/elf.h 2021-11-10 11:53:56.000000000 +0000 @@ -37,13 +37,18 @@ #endif +#ifndef elf_lib_check_arch +#define elf_lib_check_arch(a) (1) +#endif + /* Optional callbacks to write extra ELF notes. */ struct file; #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 file *file, - loff_t *foffset) { return 0; } +static inline int elf_coredump_extra_notes_write( + struct file *file __maybe_unused, + loff_t *foffset __maybe_unused) { return 0; } #else extern int elf_coredump_extra_notes_size(void); extern int elf_coredump_extra_notes_write(struct file *file, loff_t *foffset);