From: Rusty Russell Date: Sun, 21 Oct 2007 23:41:34 +0000 (-0700) Subject: add WEAK() for creating weak asm labels X-Git-Tag: v2.6.24-rc1~111 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=214541d1f30429922727040db3e2e4932ff24f46;p=platform%2Fkernel%2Flinux-exynos.git add WEAK() for creating weak asm labels Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Rusty Russell Acked-by: H. Peter Anvin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/linkage.h b/include/linux/linkage.h index 6c9873f..ff203dd 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)