Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Matthew Maurer and committed by
Luis Chamberlain
f4392216 03ddd2f1

+1 -1
+1 -1
kernel/module/main.c
··· 1645 1645 return strstarts(name, ".exit"); 1646 1646 } 1647 1647 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) 1649 1649 { 1650 1650 #if defined(CONFIG_64BIT) 1651 1651 unsigned long long secend;