From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f74.google.com (mail-ot1-f74.google.com [209.85.210.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CBBA43081D5 for ; Tue, 9 Dec 2025 20:52:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765313552; cv=none; b=oOgfj0ie0LOBKXuqjQNJTTUdpMygK+RnHPQnx8GRZMvVCuRBsuw8hZPGw2BV+3o2dXrY7fbQD7ADu/LwU8plOuo4SuFPkR7a1wQC2Xq+4lW6n4haHqnhyygR8kCyDW+yeHg1KYM2wcykmn8f4Kv2ghbNxI6xU/tbpOCejcW+5n4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765313552; c=relaxed/simple; bh=k/nMGCP44lTyxOTDNhpSpKnt2VfnuuwutQPmX8YXDEM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ukVaEII4xR8aJa+VSJA+f/S+ZaF1Qn75J90V/ltOrLNRMVhwQqTgJkWKy4Aw/QhuQh/q2NmKuk3B5qRETx56wV/lI6Q5KVeML83+3G3jXzmRjzqz92gAwfExm7eMBnuSM8wkAiCGypguIUlCD3AMp+nxcvdrkLo8hrijGfYvsGA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--coltonlewis.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=vvNGip2s; arc=none smtp.client-ip=209.85.210.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--coltonlewis.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="vvNGip2s" Received: by mail-ot1-f74.google.com with SMTP id 46e09a7af769-7c6ce3b9fa0so6819623a34.0 for ; Tue, 09 Dec 2025 12:52:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1765313549; x=1765918349; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=avZ9OXi40r9I3tBhG1OZSSWwPglo/DoIFRIQKLTo7zA=; b=vvNGip2saGXfoamJoPDLRSwEv/vGYfuN/YszvybUf5Tr8DoMKJM7qasWXIaQGlE6BO h21gD+YKR/lVgar3j2jMoL5HKLJGPCqrXFnPLtjIMst3UXBxGTXiRzEHA5nJ0fx2/eEv 0eQqBSI/E7VzJ0nu5ymAdHYoxzbh0PMYR9mWeOAYe1AKzD7+ewAA/nIh81CVqRGfI7pq RmnICWKRepyMktQ7Ph4iM3iRQzPEwhpO37mnoEz2vg0huZDmEdiIOWDciOVLBYE3w1RS OhfqMVyEuqMl6cmaS6j3qaDJ4FT62D4g2BmegvG8QMOa/CTw5GaXk9Y0IBe02rmWmGMs KqAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765313549; x=1765918349; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=avZ9OXi40r9I3tBhG1OZSSWwPglo/DoIFRIQKLTo7zA=; b=CIg7yXJpSs0K7CYx0RARP93XOA4ZjQIvChqr//mpa4dJiWkxbQ3N7Vg+lMLcPpylgB dljURzkYEfw929wOtJBocW1Wy3tJjlA/XUC9G3LX6bL5SEA70fmeTsJYyRGj8TBCLcRn OF1/NyKP9C36w3iAvhgc4NWlJ3yq2+15behBD1JmMX6Kxo2nJl/VgB1KDIQq38mO6eyI Zh5pqS9B9EosVaXwF7NSC91QeQ3WKSE2tRNcDR1d1VVb0dsA8uOtGakvOwS5hsaj07kp lNSSR/67GhZpMKFFmScqPcADJqnDWmJnpOwvj1wcZ0y9FsTOy+hOz/NTp451RXTmhtyo 8a8g== X-Forwarded-Encrypted: i=1; AJvYcCVm4xHEz02sabEtUoeFCOAUZqQDI2i12JF6F2vG1D/24EKqk8ayMI6Nv+1G4XI3Xwq6TcApyn/+Lwb7OBVbLr3a@vger.kernel.org X-Gm-Message-State: AOJu0YwloEOdqwtTZVt1XKVnlpm+TuQratMdhX7Pg99GiscnoM2Mdifx NJl7MaliDRtmfLmcN2w/mcTSwNCK/fuONqJp2o3KT1I+O4XKODJrKpdxB2tvLLCkcrsnqVn5ZjN CVYniFCJBPhPBoLgTWIb4KhDxjQ== X-Google-Smtp-Source: AGHT+IGBJBO46UR3T81/n2L+V0opSJVwtEO5cO1rJLAwUl/wZGtRFy5mrcug0+A8VGtDI6JSlEB8C9Gz2V+VpcB2Qw== X-Received: from otbbq1.prod.google.com ([2002:a05:6830:3881:b0:7c7:583b:2e9]) (user=coltonlewis job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6830:4411:b0:7c7:1e8a:c9e0 with SMTP id 46e09a7af769-7cacec42631mr79191a34.23.1765313548734; Tue, 09 Dec 2025 12:52:28 -0800 (PST) Date: Tue, 9 Dec 2025 20:51:00 +0000 In-Reply-To: <20251209205121.1871534-1-coltonlewis@google.com> Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251209205121.1871534-1-coltonlewis@google.com> X-Mailer: git-send-email 2.52.0.239.gd5f0c6e74e-goog Message-ID: <20251209205121.1871534-4-coltonlewis@google.com> Subject: [PATCH v5 03/24] KVM: arm64: Include KVM headers to get forward declarations From: Colton Lewis To: kvm@vger.kernel.org Cc: Paolo Bonzini , Jonathan Corbet , Russell King , Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , Mingwei Zhang , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Mark Rutland , Shuah Khan , Ganapatrao Kulkarni , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-perf-users@vger.kernel.org, linux-kselftest@vger.kernel.org, Sean Christopherson , kernel test robot Content-Type: text/plain; charset="UTF-8" From: Sean Christopherson Include include/uapi/linux/kvm.h and include/linux/kvm_types.h in ARM's public arm_arch_timer.h and arm_pmu.h headers to get forward declarations of things like "struct kvm_vcpu" and "struct kvm_device_attr", which are referenced but never declared (neither file includes *any* KVM headers). The missing includes don't currently cause problems because of the order of includes in parent files, but that order is largely arbitrary and is subject to change, e.g. a future commit will move the ARM specific headers to arch/arm64/include/asm and reorder parent includes to maintain alphabetic ordering. Reported-by: kernel test robot Signed-off-by: Sean Christopherson Message-ID: <20250611001042.170501-3-seanjc@google.com> Signed-off-by: Paolo Bonzini --- include/kvm/arm_arch_timer.h | 2 ++ include/kvm/arm_pmu.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/kvm/arm_arch_timer.h b/include/kvm/arm_arch_timer.h index 7310841f45121..d55359e67c22c 100644 --- a/include/kvm/arm_arch_timer.h +++ b/include/kvm/arm_arch_timer.h @@ -7,6 +7,8 @@ #ifndef __ASM_ARM_KVM_ARCH_TIMER_H #define __ASM_ARM_KVM_ARCH_TIMER_H +#include +#include #include #include diff --git a/include/kvm/arm_pmu.h b/include/kvm/arm_pmu.h index 96754b51b4116..baf028d19dfc9 100644 --- a/include/kvm/arm_pmu.h +++ b/include/kvm/arm_pmu.h @@ -7,6 +7,8 @@ #ifndef __ASM_ARM_KVM_PMU_H #define __ASM_ARM_KVM_PMU_H +#include +#include #include #include -- 2.52.0.239.gd5f0c6e74e-goog