Re: [PATCH] x86/vdso: use NULL instead of zero

From: Ingo Molnar
Date: Tue Sep 16 2014 - 04:36:29 EST



* Michele Curti <michele.curti@xxxxxxxxx> wrote:

>
> x86/vdso: use NULL instead of zero in patch_vdso32()
>
> Signed-off-by: Michele Curti <michele.curti@xxxxxxxxx>
>
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/