summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-03-08 20:52:36 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2023-04-08 22:52:52 +0900
commitd6d063c59c796f76082f188c571e6450debf5690 (patch)
treeb98654a15fa3e879f64f370fbf097a2f063a7b21 /scripts
parent2251d50e9ead23e9e9da1f0e5bab333264a118e3 (diff)
downloadlinux-next-d6d063c59c796f76082f188c571e6450debf5690.tar.gz
scripts/kallsyms: remove redundant code for omitting U and N
The symbol types 'U' and 'N' are already filtered out by the following line in scripts/mksysmap: -e ' [aNUw] ' Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kallsyms.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index ea1e3d3aaa6b..8148e880f78e 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -178,10 +178,7 @@ static bool is_ignored_symbol(const char *name, char type)
return true;
}
- if (type == 'U' || type == 'u')
- return true;
- /* exclude debugging symbols */
- if (type == 'N' || type == 'n')
+ if (type == 'u' || type == 'n')
return true;
if (toupper(type) == 'A') {