hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/tools/testing/selftests/vDSO/vdso_standalone_test_x86.c
....@@ -1,7 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * vdso_test.c: Sample code to test parse_vdso.c on x86
34 * Copyright (c) 2011-2014 Andy Lutomirski
4
- * Subject to the GNU General Public License, version 2
55 *
66 * You can amuse yourself by compiling with:
77 * gcc -std=gnu99 -nostdlib
....@@ -16,9 +16,7 @@
1616 #include <unistd.h>
1717 #include <stdint.h>
1818
19
-extern void *vdso_sym(const char *version, const char *name);
20
-extern void vdso_init_from_sysinfo_ehdr(uintptr_t base);
21
-extern void vdso_init_from_auxv(void *auxv);
19
+#include "parse_vdso.h"
2220
2321 /* We need a libc functions... */
2422 int strcmp(const char *a, const char *b)