From 214541d1f30429922727040db3e2e4932ff24f46 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 21 Oct 2007 16:41:34 -0700 Subject: 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 --- include/linux/linkage.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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) -- cgit v1.1