aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/modpost.h
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2022-05-01 17:40:12 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2022-05-08 03:17:00 +0900
commit8a69152be9a8c1f7a02c6b8410b35c68cb200f6d (patch)
treedb2e260b405d9f375efb06ba993a686f2e8be333 /scripts/mod/modpost.h
parentmodpost: add sym_add_unresolved() helper (diff)
downloadlinux-dev-8a69152be9a8c1f7a02c6b8410b35c68cb200f6d.tar.xz
linux-dev-8a69152be9a8c1f7a02c6b8410b35c68cb200f6d.zip
modpost: traverse unresolved symbols in order
Currently, modpost manages unresolved in a singly linked list; it adds a new node to the head, and traverses the list from new to old. Use a doubly linked list to keep the order in the symbol table in the ELF file. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to '')
-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 69601f36d080..f06bbd0ba93c 100644
--- a/scripts/mod/modpost.h
+++ b/scripts/mod/modpost.h
@@ -113,8 +113,8 @@ buf_write(struct buffer *buf, const char *s, int len);
struct module {
struct list_head list;
+ struct list_head unresolved_symbols;
bool is_gpl_compatible;
- struct symbol *unres;
bool from_dump; /* true if module was loaded from *.symvers */
bool is_vmlinux;
bool seen;