From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B09FC433EF for ; Tue, 28 Sep 2021 06:00:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EE7AB6113E for ; Tue, 28 Sep 2021 06:00:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239440AbhI1GBx (ORCPT ); Tue, 28 Sep 2021 02:01:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:49944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239518AbhI1GAA (ORCPT ); Tue, 28 Sep 2021 02:00:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 19F6B6138F; Tue, 28 Sep 2021 05:57:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632808632; bh=ou2OW1kzAIvfu0JproD4nOzVQJ6oIX7/QxecRwcAUt8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tPNrghbGA6BCTlGq9Fo/f41yN4ypVxJOJcf5U4ieIv/g/vKK7Fw87HunTE2l+lU0l KoVMWBNGaMTK2w1M2dMBUnSi+GzJPsX260cHyVEke3jlWFW25/UU2ecFBGyL3QoZ3P ZWnfvTsQD0Lm+lafPyVCxDehA+XNOO/vJq6EvvE8KoFjBMwmo0EvW81dZjwjmDlZaH FcxaPyjqeg+r0IpnlIRFE/4A7Q037OY/1YvBeXzXIGUZj2D6bsl6CZE6JA09mUi1uw /Ct4KhDUMyg/BT4Wu9Dw2kdEQ0zIELQC/+eNEefd0IDD6OETT4enQr+Wzq8UcMovUU 9yj/YYxU7xScw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Li Zhijian , Philip Li , kernel test robot , Shuah Khan , Sasha Levin , shuah@kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 08/11] selftests: be sure to make khdr before other targets Date: Tue, 28 Sep 2021 01:57:01 -0400 Message-Id: <20210928055704.172814-8-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210928055704.172814-1-sashal@kernel.org> References: <20210928055704.172814-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Li Zhijian [ Upstream commit 8914a7a247e065438a0ec86a58c1c359223d2c9e ] 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 Reported-by: kernel test robot Signed-off-by: Li Zhijian Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/selftests/lib.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index 67386aa3f31d..8794ce382bf5 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -48,6 +48,7 @@ ARCH ?= $(SUBARCH) # When local build is done, headers are installed in the default # INSTALL_HDR_PATH usr/include. .PHONY: khdr +.NOTPARALLEL: khdr: ifndef KSFT_KHDR_INSTALL_DONE ifeq (1,$(DEFAULT_INSTALL_HDR_PATH)) -- 2.33.0