aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-01-19 05:13:24 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-01-19 05:13:24 -0800
commitfd2ac4b289d00952ee14782ed5d282dcb0191a6c (patch)
treea9c0da134100a02463a9f9537fb60860087ec213 /scripts
parentce65cade5848263c483eda1b7ffe9ed5a01a0c8f (diff)
downloadhistory-fd2ac4b289d00952ee14782ed5d282dcb0191a6c.tar.gz
[PATCH] make gcc 3.4 compilation work
From: David Mosberger <davidm@napali.hpl.hp.com> With gcc-3.4 we need "attribute((used))" declarations to get "make modules_install" to work. Otherwise these sections get dropped from the final image (I assume).
Diffstat (limited to 'scripts')
-rw-r--r--scripts/modpost.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/modpost.c b/scripts/modpost.c
index 0b6d7dfffab697..7e6a4bb035a711 100644
--- a/scripts/modpost.c
+++ b/scripts/modpost.c
@@ -446,6 +446,7 @@ add_versions(struct buffer *b, struct module *mod)
buf_printf(b, "\n");
buf_printf(b, "static const struct modversion_info ____versions[]\n");
+ buf_printf(b, "__attribute_used__\n");
buf_printf(b, "__attribute__((section(\"__versions\"))) = {\n");
for (s = mod->unres; s; s = s->next) {