diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-03-11 17:08:58 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-03-11 17:08:58 -0800 |
| commit | dede844ed7e954af6953176d27d971d5dc9b82b5 (patch) | |
| tree | bf17156d7ba6ef31ca9321c8dee7713fbb87f75c /include/linux | |
| parent | 29d18b52045677dc961329bcbff05c6bc90c998b (diff) | |
Revert attribute_used changes in module.h. They were wrong.
Cset exclude: akpm@osdl.org|ChangeSet|20040312161945|47751
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/module.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 25c325a0f07f..4c9b53d5d51c 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -64,12 +64,11 @@ void sort_main_extable(void); #define __MODULE_INFO(tag, name, info) \ static const char __module_cat(name,__LINE__)[] \ __attribute_used__ \ - __attribute__((section(".modinfo"))) = __stringify(tag) "=" info + __attribute__((section(".modinfo"),unused)) = __stringify(tag) "=" info #define MODULE_GENERIC_TABLE(gtype,name) \ extern const struct gtype##_id __mod_##gtype##_table \ - __attribute_used__ \ - __attribute__ ((alias(__stringify(name)))) + __attribute__ ((unused, alias(__stringify(name)))) #define THIS_MODULE (&__this_module) @@ -166,7 +165,7 @@ void *__symbol_get_gpl(const char *symbol); extern void *__crc_##sym __attribute__((weak)); \ static const unsigned long __kcrctab_##sym \ __attribute_used__ \ - __attribute__((section("__kcrctab" sec))) \ + __attribute__((section("__kcrctab" sec), unused)) \ = (unsigned long) &__crc_##sym; #else #define __CRC_SYMBOL(sym, sec) @@ -180,7 +179,7 @@ void *__symbol_get_gpl(const char *symbol); = MODULE_SYMBOL_PREFIX #sym; \ static const struct kernel_symbol __ksymtab_##sym \ __attribute_used__ \ - __attribute__((section("__ksymtab" sec))) \ + __attribute__((section("__ksymtab" sec), unused)) \ = { (unsigned long)&sym, __kstrtab_##sym } #define EXPORT_SYMBOL(sym) \ |
