Patchwork [U-Boot,v13,6/6] add weak entry definition

login
register
mail settings
Submitter fenghua@phytium.com.cn
Date Sept. 26, 2013, 1:35 p.m.
Message ID <1380202529-52241-7-git-send-email-fenghua@phytium.com.cn>
Download mbox | patch
Permalink /patch/278192/
State Superseded
Delegated to: Albert ARIBAUD
Headers show

Comments

fenghua@phytium.com.cn - Sept. 26, 2013, 1:35 p.m.
From: David Feng <fenghua@phytium.com.cn>

Signed-off-by: David Feng <fenghua@phytium.com.cn>
---
 include/linux/linkage.h |    4 ++++
 1 file changed, 4 insertions(+)
Rob Herring - Oct. 3, 2013, 10:37 p.m.
On 09/26/2013 08:35 AM, fenghua@phytium.com.cn wrote:
> From: David Feng <fenghua@phytium.com.cn>
> 
> Signed-off-by: David Feng <fenghua@phytium.com.cn>
> ---
>  include/linux/linkage.h |    4 ++++
>  1 file changed, 4 insertions(+)

This patch should come before adding core v8 support.

Rob

> 
> diff --git a/include/linux/linkage.h b/include/linux/linkage.h
> index 9ddf830..2a2848a 100644
> --- a/include/linux/linkage.h
> +++ b/include/linux/linkage.h
> @@ -49,6 +49,10 @@
>  	.globl SYMBOL_NAME(name); \
>  	LENTRY(name)
>  
> +#define WEAK(name) \
> +	.weak SYMBOL_NAME(name); \
> +	LENTRY(name)
> +
>  #ifndef END
>  #define END(name) \
>  	.size name, .-name
>

Patch

diff --git a/include/linux/linkage.h b/include/linux/linkage.h
index 9ddf830..2a2848a 100644
--- a/include/linux/linkage.h
+++ b/include/linux/linkage.h
@@ -49,6 +49,10 @@ 
 	.globl SYMBOL_NAME(name); \
 	LENTRY(name)
 
+#define WEAK(name) \
+	.weak SYMBOL_NAME(name); \
+	LENTRY(name)
+
 #ifndef END
 #define END(name) \
 	.size name, .-name