diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-04-24 22:07:56 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-05-07 21:17:00 +0300 |
commit | 70ddb48db4aaddd3c2a7d8802463e15b21ce8525 (patch) | |
tree | 5cf3afca1326c04ad1922a1f07b22bbc57fe7c53 /scripts/mod/modpost.c | |
parent | 4cae77ac582b430d6ad6fbf0e1b23248997ceac8 (diff) |
modpost: move struct namespace_list to modpost.c
There is no good reason to define struct namespace_list in modpost.h
struct module has pointers to struct namespace_list, but that does
not require the definition of struct namespace_list.
Move it to modpost.c.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'scripts/mod/modpost.c')
-rw-r--r-- | scripts/mod/modpost.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index f9cbb6b6b7a5..689a34229809 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -270,6 +270,11 @@ static struct symbol *find_symbol(const char *name) return NULL; } +struct namespace_list { + struct namespace_list *next; + char namespace[]; +}; + static bool contains_namespace(struct namespace_list *list, const char *namespace) { |