mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
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>
This commit is contained in:
parent
e5371ac566
commit
214541d1f3
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user