diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-06-01 07:57:26 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-06-06 16:39:19 +0200 |
commit | 5a438af9db2c4a0b80d51d8c1c9c623b0c0de967 (patch) | |
tree | 8cc9dfb99a677d362227ad17d484579d42f09267 /scripts/mod/modpost.h | |
parent | modpost: remove is_vmlinux() call in check_for_{gpl_usage,unused}() (diff) | |
download | linux-5a438af9db2c4a0b80d51d8c1c9c623b0c0de967.tar.xz linux-5a438af9db2c4a0b80d51d8c1c9c623b0c0de967.zip |
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>
Diffstat (limited to 'scripts/mod/modpost.h')
-rw-r--r-- | scripts/mod/modpost.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mod/modpost.h b/scripts/mod/modpost.h index 68d813abf33d..87251729539e 100644 --- a/scripts/mod/modpost.h +++ b/scripts/mod/modpost.h @@ -120,6 +120,7 @@ struct module { int gpl_compatible; struct symbol *unres; int from_dump; /* 1 if module was loaded from *.symvers */ + int is_vmlinux; int seen; int skip; int has_init; |