summaryrefslogtreecommitdiffstats
path: root/scripts/mod
diff options
context:
space:
mode:
authorRoman Zippel <zippel@linux-m68k.org>2007-05-09 11:35:15 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-09 21:30:56 +0200
commite61a1c1c4f240cec61300c8f27518c3e47570fd4 (patch)
tree479d3b921577eaa642c4b1071acfeb4cb8ecf8ab /scripts/mod
parentclocksource: fix resume logic (diff)
downloadlinux-e61a1c1c4f240cec61300c8f27518c3e47570fd4.tar.xz
linux-e61a1c1c4f240cec61300c8f27518c3e47570fd4.zip
Allow arch to initialize arch field of the module structure
This will later allow an arch to add module specific information via linker generated tables instead of poking directly in the module object structure. Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/mod')
-rw-r--r--scripts/mod/modpost.c1
1 files changed, 1 insertions, 0 deletions
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)
buf_printf(b, "#ifdef CONFIG_MODULE_UNLOAD\n"
" .exit = cleanup_module,\n"
"#endif\n");
+ buf_printf(b, " .arch = MODULE_ARCH_INIT,\n");
buf_printf(b, "};\n");
}