summaryrefslogtreecommitdiffstats
path: root/scripts/kallsyms.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-03-08 12:52:36 +0100
committerMasahiro Yamada <masahiroy@kernel.org>2023-04-17 04:03:56 +0200
commita7b00a1811c9e562b44f0b283de7f01443123390 (patch)
tree3242ceb88d1efab882092036ffe50fc9298305b7 /scripts/kallsyms.c
parentkallsyms: expand symbol name into comment for debugging (diff)
downloadlinux-a7b00a1811c9e562b44f0b283de7f01443123390.tar.xz
linux-a7b00a1811c9e562b44f0b283de7f01443123390.zip
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/kallsyms.c')
-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') {