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:
e5371ac
)
add WEAK() for creating weak asm labels
author
Rusty Russell
<
[email protected]
>
Sun, 21 Oct 2007 23:41:34 +0000
(16:41 -0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 22 Oct 2007 15:13:17 +0000
(08:13 -0700)
Signed-off-by: Jeremy Fitzhardinge <
[email protected]
>
Signed-off-by: Rusty Russell <
[email protected]
>
Acked-by: H. Peter Anvin <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/linkage.h
patch
|
blob
|
history
diff --git
a/include/linux/linkage.h
b/include/linux/linkage.h
index 6c9873f8828751d9c48c3c2a5b0eeef793855233..ff203dd029191d5b578707ce184655bcc02967da 100644
(file)
--- a/
include/linux/linkage.h
+++ b/
include/linux/linkage.h
@@
-34,6
+34,12
@@
name:
#endif
+#ifndef WEAK
+#define WEAK(name) \
+ .weak name; \
+ name:
+#endif
+
#define KPROBE_ENTRY(name) \
.pushsection .kprobes.text, "ax"; \
ENTRY(name)