Skip to content

Commit 09dcec6

Browse files
t-8chKAGA-KOKO
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Vincenzo Frascino <[email protected]> Acked-by: Shuah Khan <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 05c204a commit 09dcec6

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

tools/testing/selftests/vDSO/parse_vdso.c

-14
Original file line numberDiff line numberDiff line change
@@ -297,17 +297,3 @@ void *vdso_sym(const char *version, const char *name)
297297

298298
return 0;
299299
}
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-
}

tools/testing/selftests/vDSO/parse_vdso.h

-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,5 @@
2626
*/
2727
void *vdso_sym(const char *version, const char *name);
2828
void vdso_init_from_sysinfo_ehdr(uintptr_t base);
29-
void vdso_init_from_auxv(void *auxv);
3029

3130
#endif

0 commit comments

Comments
 (0)