All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/vdso: use NULL instead of zero
       [not found] ` <20140916065732.GA19849@gmail.com>
@ 2014-09-16  8:31   ` Michele Curti
  2014-09-16  8:36     ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Michele Curti @ 2014-09-16  8:31 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: x86, tglx, mingo, hpa, linux-kernel


x86/vdso: use NULL instead of zero in patch_vdso32()

Signed-off-by: Michele Curti <michele.curti@gmail.com>

diff --git a/arch/x86/vdso/vma.c b/arch/x86/vdso/vma.c
index 1ad1026..a4647bc 100644
--- a/arch/x86/vdso/vma.c
+++ b/arch/x86/vdso/vma.c
@@ -34,7 +34,7 @@ static unsigned vdsox32_size;
 void __init patch_vdso32(void *vdso, size_t len)
 {
 	Elf32_Ehdr *hdr = vdso;
-	Elf32_Shdr *sechdrs, *alt_sec = 0;
+	Elf32_Shdr *sechdrs, *alt_sec = NULL;
 	char *secstrings;
 	void *alt_data;
 	int i;
-- 
2.1.0

Regards,
Michele


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] x86/vdso: use NULL instead of zero
  2014-09-16  8:31   ` [PATCH] x86/vdso: use NULL instead of zero Michele Curti
@ 2014-09-16  8:36     ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2014-09-16  8:36 UTC (permalink / raw)
  To: Michele Curti; +Cc: x86, tglx, mingo, hpa, linux-kernel


* Michele Curti <michele.curti@gmail.com> wrote:

> 
> x86/vdso: use NULL instead of zero in patch_vdso32()
> 
> Signed-off-by: Michele Curti <michele.curti@gmail.com>
> 
> diff --git a/arch/x86/vdso/vma.c b/arch/x86/vdso/vma.c
> index 1ad1026..a4647bc 100644
> --- a/arch/x86/vdso/vma.c
> +++ b/arch/x86/vdso/vma.c
> @@ -34,7 +34,7 @@ static unsigned vdsox32_size;
>  void __init patch_vdso32(void *vdso, size_t len)
>  {
>  	Elf32_Ehdr *hdr = vdso;
> -	Elf32_Shdr *sechdrs, *alt_sec = 0;
> +	Elf32_Shdr *sechdrs, *alt_sec = NULL;
>  	char *secstrings;
>  	void *alt_data;
>  	int i;

Your patch does not apply, this code got significantly reworked 
in the following commit, earlier this year:

  6f121e548f83 x86, vdso: Reimplement vdso.so preparation in build-time C

Thanks,

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-16  8:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20140915143939.GA1953@powerline.azcom-win.it>
     [not found] ` <20140916065732.GA19849@gmail.com>
2014-09-16  8:31   ` [PATCH] x86/vdso: use NULL instead of zero Michele Curti
2014-09-16  8:36     ` Ingo Molnar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.