aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/module.h3
-rw-r--r--scripts/mod/modpost.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 6d3dc9c4ff96..792d483c9af7 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -356,6 +356,9 @@ struct module
356 keeping pointers to this stuff */ 356 keeping pointers to this stuff */
357 char *args; 357 char *args;
358}; 358};
359#ifndef MODULE_ARCH_INIT
360#define MODULE_ARCH_INIT {}
361#endif
359 362
360/* FIXME: It'd be nice to isolate modules during init, too, so they 363/* FIXME: It'd be nice to isolate modules during init, too, so they
361 aren't used before they (may) fail. But presently too much code 364 aren't used before they (may) fail. But presently too much code
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 480e18b00aa6..113dc77b9f60 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1343,6 +1343,7 @@ static void add_header(struct buffer *b, struct module *mod)
1343 buf_printf(b, "#ifdef CONFIG_MODULE_UNLOAD\n" 1343 buf_printf(b, "#ifdef CONFIG_MODULE_UNLOAD\n"
1344 " .exit = cleanup_module,\n" 1344 " .exit = cleanup_module,\n"
1345 "#endif\n"); 1345 "#endif\n");
1346 buf_printf(b, " .arch = MODULE_ARCH_INIT,\n");
1346 buf_printf(b, "};\n"); 1347 buf_printf(b, "};\n");
1347} 1348}
1348 1349