Skip to content

Commit 5adbe55

Browse files
compudjshuahkh
authored andcommitted
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 <[email protected]> Cc: Shuah Khan <[email protected]> Cc: [email protected] Cc: Ingo Molnar <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 4c983a1 commit 5adbe55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/testing/selftests/tdx/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22

3-
CFLAGS += -O3 -Wl,-no-as-needed -Wall -static
3+
CFLAGS += -O3 -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) -static
44

55
TEST_GEN_PROGS := tdx_guest_test
66

tools/testing/selftests/tdx/tdx_guest_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#include <errno.h>
1313
#include <fcntl.h>
1414

15+
#include <linux/tdx-guest.h>
1516
#include "../kselftest_harness.h"
16-
#include "../../../../include/uapi/linux/tdx-guest.h"
1717

1818
#define TDX_GUEST_DEVNAME "/dev/tdx_guest"
1919
#define HEX_DUMP_SIZE 8

0 commit comments

Comments
 (0)