From patchwork Sat Sep 16 00:31:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Christopherson X-Patchwork-Id: 13387995 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 46125CD37B2 for ; Sat, 16 Sep 2023 00:34:40 +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:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID :References:Mime-Version:In-Reply-To:Date:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mZsJ1Jm8qEaMaHb1Nm219dNd3E0r521EYRwevtnsobo=; b=3QwdDNUS2OVXmy /a+DnuIfdMMwwyM9cEgfxIivcLjFUbKwP0bXwRy1qwy0xjGotX2ZmvzanytFDhpS2bc93eNGop4vO hx5ORMqj23BqXCTM4VBrlv6TH/c8e6If/KzQBkc4WIZZFewNPHHgmQOeileN5k/SUoGZYtUptSK9w kPUodZdSe0KcJFONFEkZiphdw6Y4wnjWef87mbm/yafpFRFdJyS9IBt7ISFxyOAc3eFU2ZoSenn6B oq3DxFRA7GfVE2vN9gLivDi7D7t6IzcTpTOoR8NrUVumKuCRnTVRCrq8Mi11FJhGhVRKoXaLLKT8i S7BaCnERoRxWo4BUI5Wg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qhJG9-00Beqw-2Y; Sat, 16 Sep 2023 00:34:05 +0000 Received: from mail-pl1-x64a.google.com ([2607:f8b0:4864:20::64a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qhJDv-00BckH-2g for linux-arm-kernel@lists.infradead.org; Sat, 16 Sep 2023 00:31:51 +0000 Received: by mail-pl1-x64a.google.com with SMTP id d9443c01a7336-1c08a15fcf4so25899545ad.3 for ; Fri, 15 Sep 2023 17:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1694824306; x=1695429106; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=HQNUEYOJ/ozgdrFnqx+YRCy2I1exOHPHuH58RF8SFNA=; b=xtcTa6R+fjOqPDMK+dMCzbfGnP+mt9FBizhVDXI7GAUuEE3UIJpB90UrBqy7s/cyvk O+lmFh5WFdE2noCr1FPdbSGPPeG+WQl1MiddhCIF59HW9vPm4zIgFqv0athXOQcDPv4r tyFubLUgsD5oMX3M6ooPg/h/Lqr1JrL7dJmi1XwCvFIRWNxDut/Qm8MDpp7YDGL3x+vV +SRGwLTkxxEmADaAaPn1fq9UP5QUJXxtjlKkayxbur6MoVAakp8t8bETjLZiY0JWTWiT 5jnVpewRimnDqFFME+55pckflxO91k9QxYtIy3MajxDt/hWKkbH3UOnihuAV0j460Nxp 8vXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694824306; x=1695429106; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HQNUEYOJ/ozgdrFnqx+YRCy2I1exOHPHuH58RF8SFNA=; b=GdZ/a8FJI5aqer4GPI7JD4Sy3LXqFOIqi0lv76o1spkYssgvgj2nxdeZWHtU4/meJh XVpp399z0H9Egpx3zpG+IEU0pgDaZrJt5Konnf+FtkiNO8T7EGnS3EWtDUXO6cNEpNC2 ZJmJch5d1lM0TneI/svxHEvkwN1PKFnQt3fDHfZ9JSe9rp2fNTDhE4lgJnr6dWHon45Y 53udan2Z/xE0tUm2JhBULCgrzGYyEuTPta5Q8MdkpXJiD+keHW15F5ccPhJOXk8IQ/MZ GWEj4Rrqt9KKXf38yHg7U9WCTeWj+tMcrN6Wpto9nV1RsFP3hj1J0bTZXB5Gv9D2gm0Y DHzg== X-Gm-Message-State: AOJu0YwQoNvDeYzvmlMArPvHk2vdXeUEF40WGx2Hu5if2y3J/UTvxAhg 3Qe5ssZq1b/QJKyCCPaVqB2N799ifsA= X-Google-Smtp-Source: AGHT+IHwZjKrwGdEWszMvnFwhRAkOaZ4ZXt/sllxoteViYwmhz1Ar6ouDJgF8x4FFhszG2C3n1vTw2Lw6BE= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:903:32ca:b0:1b8:8c7:31e6 with SMTP id i10-20020a17090332ca00b001b808c731e6mr93755plr.1.1694824306427; Fri, 15 Sep 2023 17:31:46 -0700 (PDT) Date: Fri, 15 Sep 2023 17:31:05 -0700 In-Reply-To: <20230916003118.2540661-1-seanjc@google.com> Mime-Version: 1.0 References: <20230916003118.2540661-1-seanjc@google.com> X-Mailer: git-send-email 2.42.0.459.ge4e396fd5e-goog Message-ID: <20230916003118.2540661-14-seanjc@google.com> Subject: [PATCH 13/26] KVM: arm64: Include KVM headers to get forward declarations From: Sean Christopherson To: Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Peter Zijlstra , Arnaldo Carvalho de Melo , Sean Christopherson , Paolo Bonzini , Tony Krowiak , Halil Pasic , Jason Herne , Harald Freudenberger , Alex Williamson , Andy Lutomirski Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, kvm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Anish Ghulati , Venkatesh Srinivas , Andrew Thornton X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_173147_893339_5D49A58B X-CRM114-Status: GOOD ( 11.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Sean Christopherson Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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 bb3cb005873e..e22a15c66288 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 31029f4f7be8..e80f1d090579 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