[lkml]   [2004]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread

    I notice that module.h contains stuff like:

    #define MODULE_GENERIC_TABLE(gtype,name) \
    extern const struct gtype##_id __mod_##gtype##_table \
    __attribute__ ((unused, alias(__stringify(name))))

    and even:

    #define __MODULE_INFO(tag, name, info) \
    static const char __module_cat(name,__LINE__)[] \
    __attribute_used__ \
    __attribute__((section(".modinfo"),unused)) = __stringify(tag) "=" info

    My understanding is that we shouldn't be using __attribute__((unused))
    in either of these - can someone confirm.

    The second one looks fairly dodgy since we're telling a compiler that
    it's both used and unused. That sounds a bit like a HHGTTG puzzle (you
    have tea and no tea.)

    Russell King
    Linux kernel 2.6 ARM Linux -
    maintainer of: 2.6 PCMCIA -
    2.6 Serial core
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:07    [W:0.024 / U:0.692 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site