summaryrefslogtreecommitdiff
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-05-09 03:51:22 -0500
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-05-09 03:51:22 -0500
commit8e6b97f5741482c860d062e656ea2bf95be56ca5 (patch)
tree3556364db01841849a7751d49e5aef7a6a3dd24e /include/linux/module.h
parent4ce6b618012e4649b858bf2884f7fa060aee692b (diff)
Don't implicitly export all symbols
In the old days, we used to export all symbols from a module by default. We still do so, unless o either exported symbols are explicitly listed in EXPORT_SYMBOL() o or EXPORT_NO_SYMBOLS is given. This patches changes the default of 'export all symbols' to 'export no symbols' for all files which are not listed in $(export-objs) in the relevant Makefile.
Diffstat (limited to 'include/linux/module.h')
-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 f3a8370db10a..1021d58d1742 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -370,6 +370,8 @@ extern struct module *module_list;
#define EXPORT_SYMBOL_NOVERS(var) error this_object_must_be_defined_as_export_objs_in_the_Makefile
#define EXPORT_SYMBOL_GPL(var) error this_object_must_be_defined_as_export_objs_in_the_Makefile
+__asm__(".section __ksymtab,\"a\"\n.previous");
+
#else
#define __EXPORT_SYMBOL(sym, str) \