[PATCH 2/5] add WEAK() for creating weak asm labels

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: lkml - Kernel Mailing List <linux-kernel@...>
Cc: Jeremy Fitzhardinge <jeremy@...>, H. Peter Anvin <hpa@...>, Vivek Goyal <vgoyal@...>, lguest <lguest@...>, Eric W. Biederman <ebiederm@...>
Date: Tuesday, October 2, 2007 - 7:35 pm

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

---
 include/linux/linkage.h |    6 ++++++
 1 file changed, 6 insertions(+)

===================================================================
--- 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)


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5] Boot protocol changes, Rusty Russell, (Tue Oct 2, 7:34 pm)
Re: [PATCH 0/5] Boot protocol changes, Jeremy Fitzhardinge, (Tue Oct 2, 7:46 pm)
Re: [PATCH 0/5] Boot protocol changes, H. Peter Anvin, (Tue Oct 2, 7:53 pm)
Re: [PATCH 0/5] Boot protocol changes, Jeremy Fitzhardinge, (Tue Oct 2, 7:56 pm)
Re: [PATCH 0/5] Boot protocol changes, H. Peter Anvin, (Tue Oct 2, 8:43 pm)
Re: [PATCH 0/5] Boot protocol changes, Jeremy Fitzhardinge, (Tue Oct 2, 8:58 pm)
Re: [PATCH 0/5] Boot protocol changes, H. Peter Anvin, (Tue Oct 2, 9:03 pm)
Re: [PATCH 0/5] Boot protocol changes, H. Peter Anvin, (Tue Oct 2, 8:46 pm)
Re: [PATCH 0/5] Boot protocol changes, H. Peter Anvin, (Tue Oct 2, 7:44 pm)
[PATCH 1/5] update boot spec to 2.07, Rusty Russell, (Tue Oct 2, 7:35 pm)
Re: [PATCH 1/5] update boot spec to 2.07, rae l, (Tue Oct 30, 2:38 am)
[PATCH 2/5] add WEAK() for creating weak asm labels, Rusty Russell, (Tue Oct 2, 7:35 pm)
[PATCH 3/5] i386: paravirt boot sequence, Rusty Russell, (Tue Oct 2, 7:36 pm)
[PATCH 4/5] Revert lguest magic and use hook in head.S, Rusty Russell, (Tue Oct 2, 7:39 pm)
[PATCH 5/5] lguest: loading bzImage directly, Rusty Russell, (Tue Oct 2, 7:40 pm)
Re: [PATCH 5/5] lguest: loading bzImage directly, Chris Malley, (Wed Oct 3, 5:37 am)
Re: [PATCH 5/5] lguest: loading bzImage directly, Rusty Russell, (Wed Oct 3, 8:02 pm)
Re: [PATCH 5/5] lguest: loading bzImage directly, Kjartan Maraas, (Sat Nov 24, 5:54 pm)
Re: [PATCH 5/5] lguest: loading bzImage directly, H. Peter Anvin, (Sat Nov 24, 6:14 pm)
Re: [PATCH 5/5] lguest: loading bzImage directly, Kjartan Maraas, (Sun Nov 25, 8:32 am)
Re: [PATCH 5/5] lguest: loading bzImage directly, H. Peter Anvin, (Wed Oct 3, 8:26 pm)
Re: [PATCH 5/5] lguest: loading bzImage directly, H. Peter Anvin, (Wed Oct 3, 1:12 pm)