summaryrefslogtreecommitdiff
path: root/kernel/module
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2024-10-15 23:16:35 +0000
committerLuis Chamberlain <mcgrof@kernel.org>2024-10-19 14:35:06 -0700
commitf43922162184f2bd54d87c1b5e97cf72d0dd1290 (patch)
tree663d0b781856d548b95c85053452e54314dd864a /kernel/module
parent03ddd2f17e28fe0e53a702469b1b751d40f5efbb (diff)
downloadlinux-f43922162184f2bd54d87c1b5e97cf72d0dd1290.tar.gz
linux-f43922162184f2bd54d87c1b5e97cf72d0dd1290.tar.bz2
linux-f43922162184f2bd54d87c1b5e97cf72d0dd1290.zip
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>
Diffstat (limited to 'kernel/module')
-rw-r--r--kernel/module/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module/main.c b/kernel/module/main.c
index 49b9bca9de12..1a2dd52147ba 100644
--- a/kernel/module/main.c
+++ b/kernel/module/main.c
@@ -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;