aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRusty Russell <[email protected]>2007-10-21 16:41:34 -0700
committerLinus Torvalds <[email protected]>2007-10-22 08:13:17 -0700
commit214541d1f30429922727040db3e2e4932ff24f46 (patch)
tree717b6e15dd20aae9fdf4cd0fc1dbb15b542a40f4 /include/linux
parente5371ac566b6794f2125393b6850909de9e16f58 (diff)
add WEAK() for creating weak asm labels
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]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/linkage.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/linkage.h b/include/linux/linkage.h
index 6c9873f88287..ff203dd02919 100644
--- 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)