diff options
| author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2026-08-20 20:50:05 +0800 |
|---|---|---|
| committer | Petr Pavlu <petr.pavlu@suse.com> | 2026-09-09 12:15:36 +0200 |
| commit | db91da8f05185706f492841d96864ad78893dd62 (patch) | |
| tree | 0bc0a3c01bfd50b160818132e23bf2a9f2e50c62 /kernel/module | |
| parent | df2908090cda368b01ff43709f51890076c56157 (diff) | |
module/kallsyms: Rename is_mapping_symbol() to is_ignored_kernel_symbol()
The helper function is_mapping_symbol() historically checks for both
local labels prefixed with ".L" or "L0" and mapping symbols prefixed
with "$".
Rename it to is_ignored_kernel_symbol() to better reflect this actual
behavior and scope, preventing conceptual confusion.
While at it, update the related non-module files, no functional changes.
Suggested-by: Petr Pavlu <petr.pavlu@suse.com>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
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 f23126d804b2..a52942fd0e07 100644 --- a/kernel/module/kallsyms.c +++ b/kernel/module/kallsyms.c @@ -294,7 +294,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_ignored_kernel_symbol(kallsyms_symbol_name(kallsyms, i))) continue; if (thisval <= addr && thisval > bestval) { |
