Skip to content

Commit

Permalink
selftests: vDSO: parse_vdso: Drop vdso_init_from_auxv()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Thomas Weißschuh authored and Thomas Gleixner committed Mar 3, 2025
1 parent 05c204a commit 09dcec6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions tools/testing/selftests/vDSO/parse_vdso.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,17 +297,3 @@ void *vdso_sym(const char *version, const char *name)

return 0;
}

void vdso_init_from_auxv(void *auxv)
{
ELF(auxv_t) *elf_auxv = auxv;
for (int i = 0; elf_auxv[i].a_type != AT_NULL; i++)
{
if (elf_auxv[i].a_type == AT_SYSINFO_EHDR) {
vdso_init_from_sysinfo_ehdr(elf_auxv[i].a_un.a_val);
return;
}
}

vdso_info.valid = false;
}
1 change: 0 additions & 1 deletion tools/testing/selftests/vDSO/parse_vdso.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@
*/
void *vdso_sym(const char *version, const char *name);
void vdso_init_from_sysinfo_ehdr(uintptr_t base);
void vdso_init_from_auxv(void *auxv);

#endif

0 comments on commit 09dcec6

Please sign in to comment.