summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/tdx/tdx_guest_test.c
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>2023-01-27 08:57:55 -0500
committerShuah Khan <skhan@linuxfoundation.org>2023-02-13 09:09:46 -0700
commit5adbe55c8ba5c2d03add62386e4722d273e5b893 (patch)
tree1b802a78f28e5e4240f71aea95ac3a87ee0b0729 /tools/testing/selftests/tdx/tdx_guest_test.c
parent4c983a14238d6d4e95c5783b9d93dd4d4aeccdd9 (diff)
selftests: tdx: Use installed kernel headers search path
Use $(KHDR_INCLUDES) as lookup path for installed kernel headers rather than using kernel headers in include/uapi from the source kernel tree kernel headers. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Shuah Khan <shuah@kernel.org> Cc: linux-kselftest@vger.kernel.org Cc: Ingo Molnar <mingo@redhat.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/tdx/tdx_guest_test.c')
-rw-r--r--tools/testing/selftests/tdx/tdx_guest_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/tdx/tdx_guest_test.c b/tools/testing/selftests/tdx/tdx_guest_test.c
index 2a2afd856798..81d8cb88ea1a 100644
--- a/tools/testing/selftests/tdx/tdx_guest_test.c
+++ b/tools/testing/selftests/tdx/tdx_guest_test.c
@@ -12,8 +12,8 @@
#include <errno.h>
#include <fcntl.h>
+#include <linux/tdx-guest.h>
#include "../kselftest_harness.h"
-#include "../../../../include/uapi/linux/tdx-guest.h"
#define TDX_GUEST_DEVNAME "/dev/tdx_guest"
#define HEX_DUMP_SIZE 8