Skip to content

Commit

Permalink
scripts/kallsyms: remove redundant code for omitting U and N
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
masahir0y committed Apr 17, 2023
1 parent bea5b74 commit a7b00a1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit a7b00a1

Please sign in to comment.