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://pilppa.com/gitweb/?a=commitdiff_plain;h=214541d1f30429922727040db3e2e4932ff24f46;p=linux-2.6-omap-h63xx.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 6c9873f8828..ff203dd0291 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)