lkml.org 
[lkml]   [2015]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v11 01/19] compiler: introduce __alias(symbol) shortcut
    Date
    To be consistent with other compiler attributes
    introduce __alias(symbol) macro expanding into
    __attribute__((alias(#symbol)))

    Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
    ---
    include/linux/compiler-gcc.h | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h
    index 02ae99e..cdf13ca 100644
    --- a/include/linux/compiler-gcc.h
    +++ b/include/linux/compiler-gcc.h
    @@ -66,6 +66,7 @@
    #define __deprecated __attribute__((deprecated))
    #define __packed __attribute__((packed))
    #define __weak __attribute__((weak))
    +#define __alias(symbol) __attribute__((alias(#symbol)))

    /*
    * it doesn't make sense on ARM (currently the only user of __naked) to trace
    --
    2.2.2


    \
     
     \ /
      Last update: 2015-02-03 19:01    [W:2.256 / U:0.732 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site