Skip to content

Commit 8914a7a

Browse files
zhijianli88shuahkh
authored andcommitted
selftests: be sure to make khdr before other targets
LKP/0Day reported some building errors about kvm, and errors message are not always same: - lib/x86_64/processor.c:1083:31: error: ‘KVM_CAP_NESTED_STATE’ undeclared (first use in this function); did you mean ‘KVM_CAP_PIT_STATE2’? - lib/test_util.c:189:30: error: ‘MAP_HUGE_16KB’ undeclared (first use in this function); did you mean ‘MAP_HUGE_16GB’? Although kvm relies on the khdr, they still be built in parallel when -j is specified. In this case, it will cause compiling errors. Here we mark target khdr as NOTPARALLEL to make it be always built first. CC: Philip Li <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: Li Zhijian <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 6880fa6 commit 8914a7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/lib.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ ARCH ?= $(SUBARCH)
4848
# When local build is done, headers are installed in the default
4949
# INSTALL_HDR_PATH usr/include.
5050
.PHONY: khdr
51+
.NOTPARALLEL:
5152
khdr:
5253
ifndef KSFT_KHDR_INSTALL_DONE
5354
ifeq (1,$(DEFAULT_INSTALL_HDR_PATH))

0 commit comments

Comments
 (0)