diff --git a/kernel/module/main.c b/kernel/module/main.c index 3272d3c17a0f..6ea8096e1258 100644 --- a/kernel/module/main.c +++ b/kernel/module/main.c @@ -1681,7 +1681,7 @@ bool __weak module_exit_section(const char *name) return strstarts(name, ".exit"); } -static int validate_section_offset(struct load_info *info, Elf_Shdr *shdr) +static int validate_section_offset(const struct load_info *info, Elf_Shdr *shdr) { #if defined(CONFIG_64BIT) unsigned long long secend;