]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
add WEAK() for creating weak asm labels
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 21 Oct 2007 23:41:34 +0000 (16:41 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 22 Oct 2007 15:13:17 +0000 (08:13 -0700)
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>
include/linux/linkage.h

index 6c9873f8828751d9c48c3c2a5b0eeef793855233..ff203dd029191d5b578707ce184655bcc02967da 100644 (file)
   name:
 #endif
 
+#ifndef WEAK
+#define WEAK(name)        \
+       .weak name;        \
+       name:
+#endif
+
 #define KPROBE_ENTRY(name) \
   .pushsection .kprobes.text, "ax"; \
   ENTRY(name)