aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2008-07-22 20:24:26 -0400
committerRusty Russell <rusty@rustcorp.com.au>2008-07-22 05:24:27 -0400
commitf7f5b67557eac1131ba6532522e3c50eced34238 (patch)
tree8547b900f4bc40f69673c78b261ac5b44423fbfb /include/linux
parentaf5406895a05720a879dc33e2f4878fa503e81b3 (diff)
Shrink struct module: CONFIG_UNUSED_SYMBOLS ifdefs
module.c and module.h conatains code for finding exported symbols which are declared with EXPORT_UNUSED_SYMBOL, and this code is compiled in even if CONFIG_UNUSED_SYMBOLS is not set and thus there can be no EXPORT_UNUSED_SYMBOLs in modules anyway (because EXPORT_UNUSED_SYMBOL(x) are compiled out to nothing then). This patch adds required #ifdefs. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/module.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 63f0eb69e214..a860a2c1f379 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -257,6 +257,7 @@ struct module
257 const struct kernel_symbol *gpl_syms; 257 const struct kernel_symbol *gpl_syms;
258 const unsigned long *gpl_crcs; 258 const unsigned long *gpl_crcs;
259 259
260#ifdef CONFIG_UNUSED_SYMBOLS
260 /* unused exported symbols. */ 261 /* unused exported symbols. */
261 const struct kernel_symbol *unused_syms; 262 const struct kernel_symbol *unused_syms;
262 const unsigned long *unused_crcs; 263 const unsigned long *unused_crcs;
@@ -266,6 +267,7 @@ struct module
266 unsigned int num_unused_gpl_syms; 267 unsigned int num_unused_gpl_syms;
267 const struct kernel_symbol *unused_gpl_syms; 268 const struct kernel_symbol *unused_gpl_syms;
268 const unsigned long *unused_gpl_crcs; 269 const unsigned long *unused_gpl_crcs;
270#endif
269 271
270 /* symbols that will be GPL-only in the near future. */ 272 /* symbols that will be GPL-only in the near future. */
271 const struct kernel_symbol *gpl_future_syms; 273 const struct kernel_symbol *gpl_future_syms;