summaryrefslogtreecommitdiff
path: root/scripts/mod/modpost.h
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-06-01 14:57:29 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2020-06-06 23:39:20 +0900
commita82f794c41ab51f088af325f5d9acba30a6facdb (patch)
tree9448b9e414cb9152333294e4c51817bd35a02b6f /scripts/mod/modpost.h
parent858b937d289bbf7551d496100c1fa9efcad5796e (diff)
modpost: strip .o from modname before calling new_module()
new_module() conditionally strips the .o because the modname has .o suffix when it is called from read_symbols(), but no .o when it is called from read_dump(). It is clearer to strip .o in read_symbols(). I also used flexible-array for mod->name. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/mod/modpost.h')
-rw-r--r--scripts/mod/modpost.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.h b/scripts/mod/modpost.h
index 3dc9e8fa5d1f..254c75378583 100644
--- a/scripts/mod/modpost.h
+++ b/scripts/mod/modpost.h
@@ -116,7 +116,6 @@ struct namespace_list {
struct module {
struct module *next;
- const char *name;
int gpl_compatible;
struct symbol *unres;
int from_dump; /* 1 if module was loaded from *.symvers */
@@ -130,6 +129,7 @@ struct module {
struct namespace_list *missing_namespaces;
// Actual imported namespaces
struct namespace_list *imported_namespaces;
+ char name[];
};
struct elf_info {