]> 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)
commit919a64a2120847f44992d542e321feee74b469a4
tree8cc9dfb99a677d362227ad17d484579d42f09267
parent9332160177d79dac8102b656eef7740742a7cd74
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