[PATCH 06/10] add WEAK() for creating weak asm labels

Jeremy Fitzhardinge
2007-06-15T14:50:04Z

[-- Attachment #1: weak-linkage.patch --]
[-- Type: text/plain, Size: 468 bytes --]

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>

---
include/linux/linkage.h | 6 ++++++
1 file changed, 6 insertions(+)

===================================================================
--- 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)

--