--- zzzz-none-000/linux-2.6.39.4/include/linux/module.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/include/linux/module.h 2021-11-10 13:23:10.000000000 +0000 @@ -731,12 +731,12 @@ #else /* !CONFIG_GENERIC_BUG */ -static inline void module_bug_finalize(const Elf_Ehdr *hdr, - const Elf_Shdr *sechdrs, - struct module *mod) +static inline void module_bug_finalize(const Elf_Ehdr *hdr __attribute__((unused)), + const Elf_Shdr *sechdrs __attribute__((unused)), + struct module *mod __attribute__((unused))) { } -static inline void module_bug_cleanup(struct module *mod) {} +static inline void module_bug_cleanup(struct module *mod __attribute__((unused))) {} #endif /* CONFIG_GENERIC_BUG */ #endif /* _LINUX_MODULE_H */