Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp16019lql; Fri, 12 Apr 2024 02:02:59 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUXLuOfpF2QwSKEenwQ0m0KB4rFmM3YXqhS1tL/atbF3Kc70CJ8ffCKvpVm7Kexn921dem7A5h3l0hUxYuh11spzYmSKSS2M9z7qU0k/g== X-Google-Smtp-Source: AGHT+IGvW9SsJZeZeck4eI8btsyMQ+S34UXxtHbiKsqSihjB75oFusg2LixGTokfQvgmOi4wM6Tt X-Received: by 2002:a17:90a:d24d:b0:2a5:c3a7:39d9 with SMTP id o13-20020a17090ad24d00b002a5c3a739d9mr1657574pjw.45.1712912579283; Fri, 12 Apr 2024 02:02:59 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id gn15-20020a17090ac78f00b002a71c749567si288562pjb.78.2024.04.12.02.02.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 02:02:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-142271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142271-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AB419B2762B for ; Fri, 12 Apr 2024 08:48:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D3215D725; Fri, 12 Apr 2024 08:43:27 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EB215CDDB; Fri, 12 Apr 2024 08:43:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712911406; cv=none; b=RE/57V41y6ZoDyE2p7H/UFEQ25nWhifRXtg0Kwhn/14n6BAl3Usaj48KqplNTFr2FQ3SmGd3SwohB24likvvJh/vEs3wN3gv4PujNY3UvaSPeR+FkgbMZLuY8xvxINMIfnDO9FMAKc70fEOzG/U/lss8O68l+73UKUk1XTponoM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712911406; c=relaxed/simple; bh=cg3f+qLRqzZnWq6A7OzNru3OJ88gEyjz9P78r775Y/A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=LQitvLPXqZ2P6zAj6BoTxH4n7sICNHnCI1uTkN0Q9ghUxPYnhzeNJCRVSmD+zBN/aleoK8VVa+/mOnVGtEuFuw92s5HtanttRxUqxaZaZwQNbWAx8wZtxecaNuTn9WzfdRBR5v24NGX+MzO8y2jQFg9IPYP4krpQ34qBprNG/wU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4BFD61576; Fri, 12 Apr 2024 01:43:54 -0700 (PDT) Received: from e112269-lin.cambridge.arm.com (e112269-lin.cambridge.arm.com [10.1.194.51]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E44363F6C4; Fri, 12 Apr 2024 01:43:22 -0700 (PDT) From: Steven Price To: kvm@vger.kernel.org, kvmarm@lists.linux.dev Cc: Suzuki K Poulose , Catalin Marinas , Marc Zyngier , Will Deacon , James Morse , Oliver Upton , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joey Gouly , Alexandru Elisei , Christoffer Dall , Fuad Tabba , linux-coco@lists.linux.dev, Ganapatrao Kulkarni , Steven Price Subject: [PATCH v2 03/43] kvm: arm64: Include kvm_emulate.h in kvm/arm_psci.h Date: Fri, 12 Apr 2024 09:42:29 +0100 Message-Id: <20240412084309.1733783-4-steven.price@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240412084309.1733783-1-steven.price@arm.com> References: <20240412084056.1733704-1-steven.price@arm.com> <20240412084309.1733783-1-steven.price@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Suzuki K Poulose Fix a potential build error (like below, when asm/kvm_emulate.h gets included after the kvm/arm_psci.h) by including the missing header file in kvm/arm_psci.h: /include/kvm/arm_psci.h: In function ‘kvm_psci_version’: /include/kvm/arm_psci.h:29:13: error: implicit declaration of function ‘vcpu_has_feature’; did you mean ‘cpu_have_feature’? [-Werror=implicit-function-declaration] 29 | if (vcpu_has_feature(vcpu, KVM_ARM_VCPU_PSCI_0_2)) { | ^~~~~~~~~~~~~~~~ | cpu_have_feature Signed-off-by: Suzuki K Poulose Signed-off-by: Steven Price --- include/kvm/arm_psci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/kvm/arm_psci.h b/include/kvm/arm_psci.h index e8fb624013d1..1801c6fd3f10 100644 --- a/include/kvm/arm_psci.h +++ b/include/kvm/arm_psci.h @@ -10,6 +10,8 @@ #include #include +#include + #define KVM_ARM_PSCI_0_1 PSCI_VERSION(0, 1) #define KVM_ARM_PSCI_0_2 PSCI_VERSION(0, 2) #define KVM_ARM_PSCI_1_0 PSCI_VERSION(1, 0) -- 2.34.1