From patchwork Mon Jan 22 09:58:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xu, Haibo1" X-Patchwork-Id: 13525072 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 42F32C4725D for ; Mon, 22 Jan 2024 09:46:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EGBKoUY9cQbEjFNBoGu6y7FqaaxkZn2Cv0vOQyYwXAo=; b=2K+5wi5FdUN9he BzeKJhHLI7tS5cV2zoGBtOmoLHvp7LfuDNjKW2m1huZVUEz9elFDPTU9zsfwGnl4ExbuDM3DnMqY+ k8cqjN5J2CGE2Hzthi0j8qIXAaIBMLq+QF3Ttwr1e9ZDlzKW9r24fLlej+bgwUyh7eTmwxyb+UzrS YenfqJ0QN6rRJEKgRHaFi1dj2HfBRtTPxlYTELGihA01lLhUXpLpwVqSWc2FDb3ELJsYRJDxZUazR wiVLFkfSeJ6hDwuYzQ75KN027VPyr7vP9HcQDRMk1LD6s91CGsSz3iH3uXCHwQ45fFi/vcBl4Um1V pMDpf/Km8WDEY8b1al0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRqsx-00BLdY-2g; Mon, 22 Jan 2024 09:46:31 +0000 Received: from mgamail.intel.com ([192.198.163.7]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rRqst-00BLZw-0L; Mon, 22 Jan 2024 09:46:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705916787; x=1737452787; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kFoL+9zp/dTTX50pqYzX7T84zq2k78C/Ufd09UECOX0=; b=f5AiVmnofr6gAApWtU4MsMePp/R3hasQMWmXpJ6Xr3AxA80V1rxCYDPS hD7xwxQMKDlhaLzBm7EvZ2mW4RIjGnrtYWGZ1zY85G2xhdndTM7iuZWWI zXiqq+kVxuT+kFMoVKB8m5/OOf5rI0JLSWub6FXRzI/n8QU4KW84A2uyS Qb+bDMbB2PWnwwnByvR8pKL3b1NgZ6tnJu6Q9F8VOSW04oBaXmXJnPGHo ZFhLVvu/FvrhgXDisQg3cNP6+RfRLPlgVG9qBceay9jX761s71y+u271Z Wc7zEb0vFkzuBR+vCTH9fxyohhnNdLpBdW9Zp4yDWRI299mugIo/7SXH5 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="22641762" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="22641762" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 01:46:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="778535411" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="778535411" Received: from haibo-optiplex-7090.sh.intel.com ([10.239.159.132]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 01:46:17 -0800 From: Haibo Xu To: Cc: xiaobo55x@gmail.com, ajones@ventanamicro.com, Haibo Xu , Paul Walmsley , Palmer Dabbelt , Albert Ou , Paolo Bonzini , Shuah Khan , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Anup Patel , Atish Patra , Guo Ren , Mayuresh Chitale , Conor Dooley , Minda Chen , Samuel Holland , Jisheng Zhang , Sean Christopherson , Like Xu , Peter Xu , Vipin Sharma , Aaron Lewis , Maciej Wieczor-Retman , Thomas Huth , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org Subject: [PATCH v5 05/12] KVM: selftests: Add CONFIG_64BIT definition for the build Date: Mon, 22 Jan 2024 17:58:35 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240122_014627_191512_565B1EF3 X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Since only 64bit KVM selftests were supported on all architectures, add the CONFIG_64BIT definition in kvm/Makefile to ensure only 64bit definitions were available in the corresponding included files. Suggested-by: Andrew Jones Signed-off-by: Haibo Xu Reviewed-by: Andrew Jones --- tools/testing/selftests/kvm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile index 87f0f76ea639..a18d18994fe8 100644 --- a/tools/testing/selftests/kvm/Makefile +++ b/tools/testing/selftests/kvm/Makefile @@ -215,7 +215,7 @@ else LINUX_TOOL_ARCH_INCLUDE = $(top_srcdir)/tools/arch/$(ARCH)/include endif CFLAGS += -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 \ - -Wno-gnu-variable-sized-type-not-at-end -MD -MP \ + -Wno-gnu-variable-sized-type-not-at-end -MD -MP -DCONFIG_64BIT \ -fno-builtin-memcmp -fno-builtin-memcpy -fno-builtin-memset \ -fno-builtin-strnlen \ -fno-stack-protector -fno-PIE -I$(LINUX_TOOL_INCLUDE) \