From adea69172fc8cf6e5d00fb60c0cd6ab58d8ca8db Mon Sep 17 00:00:00 2001 From: Matthew Maurer Date: Tue, 15 Oct 2024 23:16:35 +0000 Subject: [PATCH] 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 Reviewed-by: Sami Tolvanen Signed-off-by: Luis Chamberlain (cherry picked from commit f43922162184f2bd54d87c1b5e97cf72d0dd1290 kernel/git/modules/linux.git modules-next) Bug: 347787665 --- kernel/module/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/module/main.c b/kernel/module/main.c index 3272d3c17a0f..6ea8096e1258 100644 --- a/kernel/module/main.c +++ b/kernel/module/main.c @@ -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;