FROMGIT: 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.

Change-Id: Iab00d0efdf2b2e8e5dd412cfb07c8a0d5f758c97
Signed-off-by: Matthew Maurer <mmaurer@google.com>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
(cherry picked from commit f43922162184f2bd54d87c1b5e97cf72d0dd1290 kernel/git/modules/linux.git modules-next)
Bug: 347787665
This commit is contained in:
Matthew Maurer
2024-10-15 23:16:35 +00:00
committed by Matthias Männich
parent 3f47aa7e1b
commit adea69172f
+1 -1
View File
@@ -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;