]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
scripts/kallsyms: remove redundant code for omitting U and N
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 8 Mar 2023 11:52:36 +0000 (20:52 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 17 Apr 2023 02:03:56 +0000 (11:03 +0900)
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>
scripts/kallsyms.c

index ea1e3d3aaa6b1e03ee26ef9ab68bb6767e4985d1..8148e880f78e81d522b8567637d246e3286528f4 100644 (file)
@@ -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') {