]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
module: Take const arg in validate_section_offset
authorMatthew Maurer <mmaurer@google.com>
Tue, 15 Oct 2024 23:16:35 +0000 (23:16 +0000)
committerLuis Chamberlain <mcgrof@kernel.org>
Sat, 19 Oct 2024 21:35:06 +0000 (14:35 -0700)
`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>
kernel/module/main.c

index 49b9bca9de12f77121e80aafa1c705516e3b7e98..1a2dd52147ba81bd81f5e2532d3b5609f091d5e7 100644 (file)
@@ -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;