summaryrefslogtreecommitdiff
path: root/scripts/mod/modpost.h
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-06-01 14:57:26 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2020-06-06 23:39:19 +0900
commit5a438af9db2c4a0b80d51d8c1c9c623b0c0de967 (patch)
tree8cc9dfb99a677d362227ad17d484579d42f09267 /scripts/mod/modpost.h
parent1be5fa6c948533bb95ac783010ef686261be5384 (diff)
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.h1
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;