modpost: add mod->is_vmlinux struct member
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 1 Jun 2020 05:57:26 +0000 (14:57 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 6 Jun 2020 14:39:19 +0000 (23:39 +0900)
commit5a438af9db2c4a0b80d51d8c1c9c623b0c0de967
tree8cc9dfb99a677d362227ad17d484579d42f09267
parent1be5fa6c948533bb95ac783010ef686261be5384
modpost: add mod->is_vmlinux struct member

is_vmlinux() is called in several places to check whether the current
module is vmlinux or not.

It is faster and clearer to check mod->is_vmlinux flag.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/mod/modpost.c
scripts/mod/modpost.h