EXPORT_SYMBOL_NOVERS question
Subsystems (3)
Hi,
I was looking over the /include/linux/module.h file, and the EXPORT_SYMBOL_NOVERS macro caught my eye. To quote the source:
/* We don't mangle the actual symbol anymore, so no need for
* special casing EXPORT_SYMBOL_NOVERS. FIXME: Deprecated */
#define EXPORT_SYMBOL_NOVERS(sym) EXPORT_SYMBOL(sym)
A quick grep through the tree brought up no usage cases for this macro. Is there any reason to keep it around, instead of cutting it out, as the FIXME comment seems to suggest?
-Vadim Lobanov
Quoted 5 lines · vlobanov
Hi,
I was looking over the /include/linux/module.h file, and the
EXPORT_SYMBOL_NOVERSmacro caught my eye. To quote the source:
Quoted 7 lines
/* We don't mangle the actual symbol anymore, so no need for
* special casingEXPORT_SYMBOL_NOVERS. FIXME: Deprecated */
#defineEXPORT_SYMBOL_NOVERS(sym)EXPORT_SYMBOL(sym)A quick grep through the tree brought up no usage cases for this macro. Is there any reason to keep it around, instead of cutting it out, as the FIXME comment seems to suggest?
Yep, it's time.
Rusty.
Name: Remove EXPORT_SYMBOL_NOVERS
Status: Trivial
Vadim Lobanov points out that EXPORT_SYMBOL_NOVERS is no longer used; in fact, SH still uses it, but once we fix that, the kernel is clean. Remove it.
arch/sh/kernel/sh_ksyms.c +2 -2
@@ -89,7 +89,7 @@EXPORT_SYMBOL (__div64_32); -#define DECLARE_EXPORT (name) extern void name(void);EXPORT_SYMBOL_NOVERS(name) +#define DECLARE_EXPORT (name) extern void name(void);EXPORT_SYMBOL(name)/* These symbols are generated by the compiler itself */ DECLARE_EXPORT (__udivsi3);
@@ -100,7 +100,7 @@DECLARE_EXPORT (__lshrdi3);DECLARE_EXPORT (__movstr); -EXPORT_SYMBOL_NOVERS (strcpy); +EXPORT_SYMBOL (strcpy);#ifdef CONFIG_CPU_SH4 DECLARE_EXPORT (__movstr_i4_even);
Makefile +1 -1
@@ -1166,7 +1166,7 @@ quiet_cmd_tags = MAKE $@ define cmd_tags rm -f $@; \ - CTAGSF=`ctags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_NOVERS"`; \ + CTAGSF=`ctags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_GPL"`; \ $(all-sources) | xargs ctags $$CTAGSF -a endef
include/linux/module.h +0 -5
@@ -206,10 +206,6 @@#endif -/* We don't mangle the actual symbol anymore, so no need for -* special casing EXPORT_SYMBOL_NOVERS. FIXME: Deprecated */ -#define EXPORT_SYMBOL_NOVERS (sym) EXPORT_SYMBOL(sym) -struct module_ref {local_t count;
@@ -449,7 +445,6 @@#else /* !CONFIG_MODULES... */ #define EXPORT_SYMBOL (sym)#define EXPORT_SYMBOL_GPL (sym) -#define EXPORT_SYMBOL_NOVERS (sym)/* Given an address, look for it in the exception tables. */ static inline const struct exception_table_entry *
Signature · 1 line
A bad analogy is like a leaky screwdriver -- Richard Braakman
Quoted 18 lines · Rusty Russell
Quoted 5 lines · vlobanov
Hi,
I was looking over the /include/linux/module.h file, and the
EXPORT_SYMBOL_NOVERSmacro caught my eye. To quote the source:Quoted 7 lines
/* We don't mangle the actual symbol anymore, so no need for
* special casingEXPORT_SYMBOL_NOVERS. FIXME: Deprecated */
#defineEXPORT_SYMBOL_NOVERS(sym)EXPORT_SYMBOL(sym)A quick grep through the tree brought up no usage cases for this macro. Is there any reason to keep it around, instead of cutting it out, as the FIXME comment seems to suggest?
Yep, it's time.
Rusty.
Quoted 8 lines
Name: Remove
EXPORT_SYMBOL_NOVERS
Status: TrivialSigned-off-by Rusty Russell <[email protected]>Vadim Lobanov points out that
EXPORT_SYMBOL_NOVERSis no longer used; in fact, SH still uses it, but once we fix that, the kernel is clean. Remove it.
...
Thaat's true for Linus' tree, but not for -mm.
@David:arch/frv/kernel/frv_ksyms.c has to be changed.
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 2 lines
arch/frv/kernel/frv_ksyms.chas to be changed.
Okay.
David
Quoted 4 lines · Rusty Russell
Vadim Lobanov points out that
EXPORT_SYMBOL_NOVERSis no longer used; in fact, SH still uses it, but once we fix that, the kernel is clean. Remove it.
Looks good to me..