summaryrefslogtreecommitdiffstats
path: root/include/linux/linkage.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2007-10-22 01:41:34 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-22 17:13:17 +0200
commit214541d1f30429922727040db3e2e4932ff24f46 (patch)
tree717b6e15dd20aae9fdf4cd0fc1dbb15b542a40f4 /include/linux/linkage.h
parentupdate boot spec to 2.07 (diff)
downloadlinux-214541d1f30429922727040db3e2e4932ff24f46.tar.xz
linux-214541d1f30429922727040db3e2e4932ff24f46.zip
add WEAK() for creating weak asm labels
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-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)