module: Take const arg in validate_section_offset
`validate_section_offset` doesn't modify the info passed in. Make this clear by adjusting the type signature. Signed-off-by: Matthew Maurer <mmaurer@google.com> Reviewed-by: Sami Tolvanen <samitolvanen@google.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
This commit is contained in:
committed by
Luis Chamberlain
parent
03ddd2f17e
commit
f439221621
@@ -1645,7 +1645,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;
|
||||
|
||||
Reference in New Issue
Block a user