Commit 214541d1 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

add WEAK() for creating weak asm labels

Signed-off-by: default avatarJeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Acked-by: default avatarH. Peter Anvin <hpa@zytor.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e5371ac5
...@@ -34,6 +34,12 @@ ...@@ -34,6 +34,12 @@
name: name:
#endif #endif
#ifndef WEAK
#define WEAK(name) \
.weak name; \
name:
#endif
#define KPROBE_ENTRY(name) \ #define KPROBE_ENTRY(name) \
.pushsection .kprobes.text, "ax"; \ .pushsection .kprobes.text, "ax"; \
ENTRY(name) ENTRY(name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment