Skip to contentSkip to conversation

x86/vdso: use NULL instead of zero

PATCH In review Michele Curti 2 participants 2 messages Sep 16, 2014 2 messages not in the archive x86

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

PATCH 1/1 x86/vdso: use NULL instead of zero

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

arch/x86/vdso/vma.c +1 -1
index 1ad1026..a4647bc 100644
@@ -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;
Signature · 4 lines
2.1.0

Regards,
Michele
#3 lore raw
Quoted 10 lines · Michele Curti

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

arch/x86/vdso/vma.c +0 -0
index 1ad1026..a4647bc 100644

arch/x86/vdso/vma.c static unsigned vdsox32_size; · line 40

Quoted 8 lines
arch/x86/vdso/vma.c +1 -1
@@ -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