Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: vDSO: parse_vdso: Drop vdso_init_from_auxv()

There are no users left.

This also removes the usage of ElfXX_auxv_t, which is not formally
standardized.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/all/20250226-parse_vdso-nolibc-v2-11-28e14e031ed8@linutronix.de

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
09dcec64 05c204ac

-15
-14
tools/testing/selftests/vDSO/parse_vdso.c
··· 297 297 298 298 return 0; 299 299 } 300 - 301 - void vdso_init_from_auxv(void *auxv) 302 - { 303 - ELF(auxv_t) *elf_auxv = auxv; 304 - for (int i = 0; elf_auxv[i].a_type != AT_NULL; i++) 305 - { 306 - if (elf_auxv[i].a_type == AT_SYSINFO_EHDR) { 307 - vdso_init_from_sysinfo_ehdr(elf_auxv[i].a_un.a_val); 308 - return; 309 - } 310 - } 311 - 312 - vdso_info.valid = false; 313 - }
-1
tools/testing/selftests/vDSO/parse_vdso.h
··· 26 26 */ 27 27 void *vdso_sym(const char *version, const char *name); 28 28 void vdso_init_from_sysinfo_ehdr(uintptr_t base); 29 - void vdso_init_from_auxv(void *auxv); 30 29 31 30 #endif