From: Rusty Russell Date: Sun, 21 Oct 2007 23:41:34 +0000 (-0700) Subject: add WEAK() for creating weak asm labels X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=214541d1f30429922727040db3e2e4932ff24f46;p=linux-beck.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 6c9873f88287..ff203dd02919 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)