]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7738e96f5a185db89de5643335ff1ab389a8e834
tree8cc9dfb99a677d362227ad17d484579d42f09267
parent52e1dae0977ff47b1df7acf3a38a77f5e7e928ef
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