diff options
author | Palmer Dabbelt <palmer@rivosinc.com> | 2023-07-21 17:01:48 +0200 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2023-07-24 21:09:47 +0200 |
commit | ff09f6fd297293175eaa0ed492495e36b3eb1a8e (patch) | |
tree | e8685220b9b73edbab65a3bb378951e01cbfec47 /kernel/module | |
parent | kernel: params: Remove unnecessary ‘0’ values from err (diff) | |
download | linux-ff09f6fd297293175eaa0ed492495e36b3eb1a8e.tar.xz linux-ff09f6fd297293175eaa0ed492495e36b3eb1a8e.zip |
modpost, kallsyms: Treat add '$'-prefixed symbols as mapping symbols
Trying to restrict the '$'-prefix change to RISC-V caused some fallout,
so let's just treat all those symbols as special.
Fixes: c05780ef3c190 ("module: Ignore RISC-V mapping symbols too")
Link: https://lore.kernel.org/all/20230712015747.77263-1-wangkefeng.wang@huawei.com/
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/module')
-rw-r--r-- | kernel/module/kallsyms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module/kallsyms.c b/kernel/module/kallsyms.c index 78a1ffc399d9..ef73ae7c8909 100644 --- a/kernel/module/kallsyms.c +++ b/kernel/module/kallsyms.c @@ -289,7 +289,7 @@ static const char *find_kallsyms_symbol(struct module *mod, * and inserted at a whim. */ if (*kallsyms_symbol_name(kallsyms, i) == '\0' || - is_mapping_symbol(kallsyms_symbol_name(kallsyms, i), IS_ENABLED(CONFIG_RISCV))) + is_mapping_symbol(kallsyms_symbol_name(kallsyms, i))) continue; if (thisval <= addr && thisval > bestval) { |