aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-03-31 15:05:34 -0400
committerRusty Russell <rusty@rustcorp.com.au>2009-03-30 22:35:34 -0400
commit8c8ef42aee8fcfb4128bb94c50d55c9f80ade525 (patch)
tree58141fdd1afc0887dcc3cb91ab4c7609df0963e7 /scripts/mod
parent9cb610d8e35fe3ec95a2fe2030b02f85aeea83c1 (diff)
module: include other structures in module version check
With CONFIG_MODVERSIONS, we version 'struct module' using a dummy export, but other things matter too: 1) 'struct modversion_info' determines the layout of the __versions section, 2) 'struct kernel_param' determines the layout of the __params section, 3) 'struct kernel_symbol' determines __ksymtab*. 4) 'struct marker' determines __markers. 5) 'struct tracepoint' determines __tracepoints. So we rename 'struct_module' to 'module_layout' and include these in the signature. Now it's general we can add others later on without confusion. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'scripts/mod')
-rw-r--r--scripts/mod/modpost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 7e62303133dc..8cc70612984c 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1607,12 +1607,12 @@ static void read_symbols(char *modname)
1607 1607
1608 parse_elf_finish(&info); 1608 parse_elf_finish(&info);
1609 1609
1610 /* Our trick to get versioning for struct_module - it's 1610 /* Our trick to get versioning for module struct etc. - it's
1611 * never passed as an argument to an exported function, so 1611 * never passed as an argument to an exported function, so
1612 * the automatic versioning doesn't pick it up, but it's really 1612 * the automatic versioning doesn't pick it up, but it's really
1613 * important anyhow */ 1613 * important anyhow */
1614 if (modversions) 1614 if (modversions)
1615 mod->unres = alloc_symbol("struct_module", 0, mod->unres); 1615 mod->unres = alloc_symbol("module_layout", 0, mod->unres);
1616} 1616}
1617 1617
1618#define SZ 500 1618#define SZ 500