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>
return NULL;
}
+struct namespace_list {
+ struct namespace_list *next;
+ char namespace[];
+};
+
static bool contains_namespace(struct namespace_list *list,
const char *namespace)
{
void
buf_write(struct buffer *buf, const char *s, int len);
-struct namespace_list {
- struct namespace_list *next;
- char namespace[];
-};
-
struct module {
struct module *next;
int gpl_compatible;