]> git.ipfire.org Git - people/ms/linux.git/commit
modpost: move export_from_secname() call to more relevant place
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 5 Apr 2022 11:33:52 +0000 (20:33 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 7 May 2022 18:16:58 +0000 (03:16 +0900)
commit535b3e05f435698f8f661d9e6449beb5791fff59
tree5c9194916c9045e6f68087e6b7217e2aeaceb47d
parent7ce3e410e0188ce7ca65b49c90cff2863d6e232e
modpost: move export_from_secname() call to more relevant place

The assigned 'export' is only used when

    if (strstarts(symname, "__ksymtab_"))

is met. The else-part of the assignment is the dead code.

Move the export_from_secname() call to where it is used.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
scripts/mod/modpost.c