Question about EXPORT_SYMBOL implementation [try #2]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Here is the implementation of EXPORT_SYMBOL:

#define __EXPORT_SYMBOL(sym, sec)                               \
       extern typeof(sym) sym;                                 \
       __CRC_SYMBOL(sym, sec)                                  \
       static const char __kstrtab_##sym[]                     \
       __attribute__((section("__ksymtab_strings")))           \
       = MODULE_SYMBOL_PREFIX #sym;                            \
       static const struct kernel_symbol __ksymtab_##sym       \
       __attribute_used__                                      \
       __attribute__((section("__ksymtab" sec), unused))       \
       = { (unsigned long)&sym, __kstrtab_##sym }


I'm wondering why it's using '__attribute_used__' _and_
'__attribute__((section("__ksymtab" sec), unused)'. Isn't the unused
attribute redundant with '__attribute_used__' ?

thanks
--
Francis
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux