module: include other structures in module version check
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 31 Mar 2009 19:05:34 +0000 (13:05 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 31 Mar 2009 02:35:34 +0000 (13:05 +1030)
commit8c8ef42aee8fcfb4128bb94c50d55c9f80ade525
tree58141fdd1afc0887dcc3cb91ab4c7609df0963e7
parent9cb610d8e35fe3ec95a2fe2030b02f85aeea83c1
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>
kernel/module.c
scripts/mod/modpost.c