projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f989f7
)
compiler: introduce __alias(symbol) shortcut
author
Andrey Ryabinin
<
[email protected]
>
Fri, 13 Feb 2015 22:39:14 +0000
(14:39 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 14 Feb 2015 05:21:40 +0000
(21:21 -0800)
To be consistent with other compiler attributes introduce __alias(symbol)
macro expanding into __attribute__((alias(#symbol)))
Signed-off-by: Andrey Ryabinin <
[email protected]
>
Cc: Dmitry Vyukov <
[email protected]
>
Cc: Konstantin Serebryany <
[email protected]
>
Cc: Dmitry Chernenkov <
[email protected]
>
Signed-off-by: Andrey Konovalov <
[email protected]
>
Cc: Yuri Gribov <
[email protected]
>
Cc: Konstantin Khlebnikov <
[email protected]
>
Cc: Sasha Levin <
[email protected]
>
Cc: Christoph Lameter <
[email protected]
>
Cc: Joonsoo Kim <
[email protected]
>
Cc: Dave Hansen <
[email protected]
>
Cc: Andi Kleen <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc: "H. Peter Anvin" <
[email protected]
>
Cc: Christoph Lameter <
[email protected]
>
Cc: Pekka Enberg <
[email protected]
>
Cc: David Rientjes <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/compiler-gcc.h
patch
|
blob
|
history
diff --git
a/include/linux/compiler-gcc.h
b/include/linux/compiler-gcc.h
index 02ae99e8e6d38a49ba59e76ecb722fce64376a51..cdf13ca7cac32b61e07dcdbc9f9a79c68dd9ee3e 100644
(file)
--- 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