Skip to content

Commit f439221

Browse files
maurermcgrof
authored andcommitted
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 <[email protected]> Reviewed-by: Sami Tolvanen <[email protected]> Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 03ddd2f commit f439221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/module/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@ bool __weak module_exit_section(const char *name)
16451645
return strstarts(name, ".exit");
16461646
}
16471647

1648-
static int validate_section_offset(struct load_info *info, Elf_Shdr *shdr)
1648+
static int validate_section_offset(const struct load_info *info, Elf_Shdr *shdr)
16491649
{
16501650
#if defined(CONFIG_64BIT)
16511651
unsigned long long secend;

0 commit comments

Comments
 (0)