aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/modpost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 393706b37774..9b873ac6ed7b 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1861,7 +1861,7 @@ static void add_header(struct buffer *b, struct module *mod)
1861 buf_printf(b, "\n"); 1861 buf_printf(b, "\n");
1862 buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n"); 1862 buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n");
1863 buf_printf(b, "\n"); 1863 buf_printf(b, "\n");
1864 buf_printf(b, "struct module __this_module\n"); 1864 buf_printf(b, "__visible struct module __this_module\n");
1865 buf_printf(b, "__attribute__((section(\".gnu.linkonce.this_module\"))) = {\n"); 1865 buf_printf(b, "__attribute__((section(\".gnu.linkonce.this_module\"))) = {\n");
1866 buf_printf(b, "\t.name = KBUILD_MODNAME,\n"); 1866 buf_printf(b, "\t.name = KBUILD_MODNAME,\n");
1867 if (mod->has_init) 1867 if (mod->has_init)