projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dc6d9c
)
[MODULES]: Don't allow statically declared exports
author
Patrick McHardy
<kaber@trash.net>
Fri, 24 Mar 2006 06:07:34 +0000
(22:07 -0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Fri, 24 Mar 2006 23:44:58 +0000
(15:44 -0800)
Add an extern declaration for exported symbols to make the compiler warn
on symbols declared statically.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/module.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/module.h
b/include/linux/module.h
index 70bd843c71cb83872e7a9190365ed3a870fd5d1d..d9569151c18241f2dbacca1d35d5f8f01b8809c1 100644
(file)
--- a/
include/linux/module.h
+++ b/
include/linux/module.h
@@
-183,6
+183,7
@@
void *__symbol_get_gpl(const char *symbol);
/* For every exported symbol, place a struct in the __ksymtab section */
#define __EXPORT_SYMBOL(sym, sec) \
+ extern typeof(sym) sym; \
__CRC_SYMBOL(sym, sec) \
static const char __kstrtab_##sym[] \
__attribute__((section("__ksymtab_strings"))) \