Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5059118rdb; Sat, 16 Sep 2023 00:49:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEg9LrTxJhfZV2NwVYv1wXmCOVrNgWqvY0W5OWB3Inh6EXQUjgJSX4tCnyd+sW+08+YKIhU X-Received: by 2002:a05:6a00:b50:b0:68f:c078:b0c9 with SMTP id p16-20020a056a000b5000b0068fc078b0c9mr4786854pfo.11.1694850593143; Sat, 16 Sep 2023 00:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694850593; cv=none; d=google.com; s=arc-20160816; b=GHkg5L+R78jIJIS3nwjKBjZG0cI48NDOAV3oLWAXlHIh1UUuXxUI3I4xPGN+Fsn4LB gMbDR37vS1MuzVwr+lWCTvRwoM7S1kLRR7Pd2C7PI88244cD18wdnoOmkNF3Psaetx/6 uzAsRg01b3MqoPRMdoQlr6TMJRZtMqbWv1aW2DS6UUCYXCw1CNMs6Aj38/sBjhDJW6Bx ZdQTrkScfOykQyyuAGC70qyH2tU4Xc4UIcLkwtj0PIqoZ+EQ966/kNDzxvUBaRckOIo0 3GazMAb5hftg3zKhKVjoLczdoGComTQ63WlDJSKqQ7YX5HrWlIkjwj9d1DY0+0wrFclU Snqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:reply-to:dkim-signature; bh=HQNUEYOJ/ozgdrFnqx+YRCy2I1exOHPHuH58RF8SFNA=; fh=kXSkXFacTVTlVHq0XnHvR0iN61knZqi7sPJIGv3JAWo=; b=J9kIah8mMHImmtfu4iZ8WE8Ll28B2S6/kQwVHq1G+K9OCScVYRymBBp9WiLjaEsuZZ uAmlvd001iYx0H3NfYgnxwnCuPM/QtkIiZU1j0vUIn1/p8PUqNI3GsMMua9nlICCrz/J re17aEzqZMR+Pm1aWL/pKGeuprNEc4PTkgcA3wimEkT2osTQKSNjTdYf18Q70jVAB86b 9NHizUwgP2NyhmF03VOR+ph3p694/l4fvadajxfrJuMEriJLfNHIJl9OxtjdWD//4gNy 5V4KQIzsQi41uwEUQpvhGVPpIROk1KoGy4sXIPz5tAN+LCjYg1/hT9AOhLCKPOUFONGB 51mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=M0gIO6eC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id l20-20020a635714000000b00577d99bd045si4425398pgb.843.2023.09.16.00.49.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 00:49:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=M0gIO6eC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 93D46807FD77; Fri, 15 Sep 2023 17:34:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238870AbjIPAeC (ORCPT + 99 others); Fri, 15 Sep 2023 20:34:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238885AbjIPAdg (ORCPT ); Fri, 15 Sep 2023 20:33:36 -0400 Received: from mail-pl1-x649.google.com (mail-pl1-x649.google.com [IPv6:2607:f8b0:4864:20::649]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE5652D5F for ; Fri, 15 Sep 2023 17:31:46 -0700 (PDT) Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-1c40ac5b6e7so24343095ad.0 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=vger.kernel.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=M0gIO6eCoTEr3GyvSoSXqbffxgpKcvL2iExYuoC1k1A0QMa49lgLHRLuf83fPt2EER p0/XkGy+aPVxOCMzm4qhlUVO/7ZRz0RX4ZihqJ7KPu43EhRaqjry7XDN6ggrYCUt1c6b tNceeQyuPYGXl4IN20FmDkP3TIvgnbd0ghe2QEmzk2zQrTObxyL31Qo9CebNV3oLQKZb kIih2H1Er1Y0nc45248g1TcaTDnKgzorYoWeRLQ5BxFSK6YQE/mY03l0aSYr+g4n556e tHJg3zYqqP9MZgotM5PRIhgFbRicKza8GjnFEYqjmqSe8gktBCVv50aAB1P1pWIB4r3Q +TmA== 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=C/QaxAOHcLCldlHTsjj3u9fQdTUO1ebkG8D97p/953tTYEtLjhCh1ZRcHDbQhPKyAq laIxtS0MJ6qN4xe8gTm4sas3NtTZLkl0ZaFc3P0vhkiS5KzT9BAn6YFSnFcvI1M+ZOiy 3Ef0ifWdS3LttdJ1BI3pyTuwp+BsrIAbehbAN6cEvBIn2k8sXcnNN82nDJiVBTJx3he9 /Te6YFzKjoZW5Oar66a97g7VEFFgUY0TlIiK6OnNs+Al9Vn8kgrQBSKK+irklXwEZaxx 9ECJ5zfFvKmSVikS+LxI1/Qyby3zsp2xmWggto/wesDcx1e9eNtYYrEHX5VFhsUTJ2IJ VJYQ== X-Gm-Message-State: AOJu0YyEJ463bMl0jfJk2heMlsLAGCrhlVGgkvEB+QAyn5YUoEQF2AiG O/8+j734G2mgORARGoWJV2/ajg/+vhM= 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) Reply-To: Sean Christopherson 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 15 Sep 2023 17:34:44 -0700 (PDT) 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 -- 2.42.0.459.ge4e396fd5e-goog