modpost: traverse the namespace_list in order

Use the doubly linked list to traverse the list in the added order.
This makes the code more consistent.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
This commit is contained in:
Masahiro Yamada
2022-05-01 17:40:14 +09:00
parent 4484054816
commit ab489d6002
2 changed files with 17 additions and 20 deletions

View File

@@ -123,9 +123,9 @@ struct module {
struct buffer dev_table_buf;
char srcversion[25];
// Missing namespace dependencies
struct namespace_list *missing_namespaces;
struct list_head missing_namespaces;
// Actual imported namespaces
struct namespace_list *imported_namespaces;
struct list_head imported_namespaces;
char name[];
};