diff options
author | Mark Brown <broonie@kernel.org> | 2020-05-22 17:21:38 +0100 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2020-05-22 11:04:10 -0600 |
commit | cd76ca4dd63768385fb81927fdc3087ad3bfeefb (patch) | |
tree | 334c5301ce1734c8e8cad09c3a4d9d07c31543c0 /tools/testing/selftests/vDSO/vdso_test_gettimeofday.c | |
parent | selftests: vdso: Rename vdso_test to vdso_test_gettimeofday (diff) | |
download | wireguard-linux-cd76ca4dd63768385fb81927fdc3087ad3bfeefb.tar.xz wireguard-linux-cd76ca4dd63768385fb81927fdc3087ad3bfeefb.zip |
selftests: vdso: Use a header file to prototype parse_vdso API
Both vdso_test_gettimeofday and vdso_standalone_test_x86 use the library in
parse_vdso.c but each separately declares the API it offers which is not
ideal. Create a header file with prototypes of the functions and use it in
both the library and the tests to ensure that the same prototypes are used
throughout.
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/vDSO/vdso_test_gettimeofday.c')
-rw-r--r-- | tools/testing/selftests/vDSO/vdso_test_gettimeofday.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/testing/selftests/vDSO/vdso_test_gettimeofday.c b/tools/testing/selftests/vDSO/vdso_test_gettimeofday.c index 511c0dc5e47e..8ccc73ed8240 100644 --- a/tools/testing/selftests/vDSO/vdso_test_gettimeofday.c +++ b/tools/testing/selftests/vDSO/vdso_test_gettimeofday.c @@ -17,10 +17,7 @@ #include <sys/time.h> #include "../kselftest.h" - -extern void *vdso_sym(const char *version, const char *name); -extern void vdso_init_from_sysinfo_ehdr(uintptr_t base); -extern void vdso_init_from_auxv(void *auxv); +#include "parse_vdso.h" /* * ARM64's vDSO exports its gettimeofday() implementation with a different |