Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp369184lqp; Mon, 10 Jun 2024 06:45:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0T8zZ+j2rHvDI+niTG4N2C548DEZjaiWvddoErSKtzhZWeEWp3fRYNo5O6Q+0E1Am6UFBVhbv0cZgnYqev4Fb6DRs+ayR9t4Gw+ucAg== X-Google-Smtp-Source: AGHT+IEq3HkrzR724ghMxHdz7vQMPnrKxG1gqFMSTiupCg6joAd/xmMVocgGO7BumDTbXZwCJ+BD X-Received: by 2002:a05:6a20:9f8d:b0:1b7:ad9:19fc with SMTP id adf61e73a8af0-1b70ad91b2amr3265708637.24.1718027115332; Mon, 10 Jun 2024 06:45:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718027115; cv=pass; d=google.com; s=arc-20160816; b=IKD2FjHZi/1BIgVhSAQ8uqoq0gS8ZA2ffv8yLu8ybmWrlNnxPyd9DcvqHW6++rL8uR nPfb4AtRLE2S8axbyp27Lqk5L9v1KJunNOKBA2QOuG4TyA/0KxDMMq0CPZ/AAYUO+FC4 WyYXBQe5QQWJfcJDOjI16axpvisDKjn2T74Spzjs5Yp3LLRNxcti+U5e6mzeEWn5ORGi T7GqV0XFGaNQSi2jYcK2piGS0rD5lF3bwORvFppsVvNCjf1JHMwOneV5wvKXE4wVMj59 gtqkWxqhu+vFFVtoDMFgwgGGIpuNLPY/xMUaXo1LOo6YeAjhU88AAxbsJdCxsZZ4jzcO 36zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=YNMhlAHX3hrWMN4w4RhWlWmF3om0L49HL0RKczSDK0g=; fh=mU6xl5FN63PgqIKyLHx/u5uRervM0V89cYoVjXl22Bs=; b=XPL0+4d/YJjsyLEobaCVntfLLOFm4qkpSzo7PndsoPrZZAeaMsvJO4d23vf2/wJp6e 01deAiBSAR9Rw11PL1d8H6/8sTvFzlxi4OFE4xypNGtCUHqyABimv0VYwDwzF3QfHDbG F/CHPRxkRRoBn4teDF9xm+yUFL70JGfHIpi3Cqhbwb2CioeMocZYByoeqD2lTghLbhIf Fc62PNIcl8McVT6MFShNpSApAg945GTNENPD4xxzF27kUpcaFRFOPCdxNPO1JrUOyqsH J4UauDD2dHFRDmP/86eZ4rJtYEyPHYm9KsVMOxTXdm5DaJDY+lbNSfJnHoDFoGUbKOtN diCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-208250-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208250-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e48fef398dsi5165297a12.638.2024.06.10.06.45.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 06:45:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208250-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-208250-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208250-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 8F3B3B239D6 for ; Mon, 10 Jun 2024 13:43:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CFDA137747; Mon, 10 Jun 2024 13:42:31 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 892357CF18; Mon, 10 Jun 2024 13:42:29 +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=1718026950; cv=none; b=bcSSef/MEONVq4FTp7LEqT3ako/XiuRBBkFpp8DXCstCUp1a77ZBVlKsWF3hEDJ6/nMxJ56LXgVhx/UFKEwz5xIXQy0zjm8jDwhYGdpHh+2FDg90flN1hpuRHqKtRfYik7+fxjsYXh2LcyjGxxwXk/b1C4tw60z2quAekO7jmhI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718026950; c=relaxed/simple; bh=cg3f+qLRqzZnWq6A7OzNru3OJ88gEyjz9P78r775Y/A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=bvhHctLLaaD0pbj84KDYaVM0QQMRkCIUkRxOdUffKtiyf2oSwCWwRGF5QCzclIy7h/wsNxKWvx+lTZsAcqmcMF1s8ZKZAIilQ9+u9/aiAr6W5ZzQGbaVmyFWSjGWNfbG9YwXZuA9vEKYvEogHoeWt3wCl7OP89GZfxI4Ow/PgYI= 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 6B4F71692; Mon, 10 Jun 2024 06:42:53 -0700 (PDT) Received: from e122027.cambridge.arm.com (e122027.cambridge.arm.com [10.1.35.41]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 14B9D3F58B; Mon, 10 Jun 2024 06:42:25 -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 v3 03/43] kvm: arm64: Include kvm_emulate.h in kvm/arm_psci.h Date: Mon, 10 Jun 2024 14:41:22 +0100 Message-Id: <20240610134202.54893-4-steven.price@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240610134202.54893-1-steven.price@arm.com> References: <20240610134202.54893-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