selftests: vdso: Use a header file to prototype parse_vdso API
authorMark Brown <broonie@kernel.org>
Fri, 22 May 2020 16:21:38 +0000 (17:21 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 22 May 2020 17:04:10 +0000 (11:04 -0600)
commitcd76ca4dd63768385fb81927fdc3087ad3bfeefb
tree334c5301ce1734c8e8cad09c3a4d9d07c31543c0
parentbabf8a978d497af2fe4111cc80866b9e436bf785
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>
tools/testing/selftests/vDSO/parse_vdso.c
tools/testing/selftests/vDSO/parse_vdso.h [new file with mode: 0644]
tools/testing/selftests/vDSO/vdso_standalone_test_x86.c
tools/testing/selftests/vDSO/vdso_test_gettimeofday.c