From patchwork Fri Jul 12 11:03:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Ott X-Patchwork-Id: 13731611 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 27180C3DA4A for ; Fri, 12 Jul 2024 11:04:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=1qQ7l0GWU5+sbaI9jPARmVRN2+U8L5NQD4xZcBL2aSc=; b=R2hIaGdfPvOTgmPUYmvbJ8X1Ls cJu+smBGCDnHgAIghZfMjHv1yyPwOn/BGejq61RaEFdJTYv8VWr2uUfmbyfzGwsB6Ofs3BsX0Urng sBSyz3kweuoyjqx2tBkyZRmvVRu9JiOAe25D73GTeGJy7nsKG/3GexoHBAgfCQwkud9u3ZoSAR4YA USXuuASuUuTg704YBBBoNNPghgksGPHDJrm2/qk0Pu1j5mtnHJlSB1/ZFCdA/kb0clt2hVErjmFGJ IAtn6zPuCaVm/OuVMQoGnko+1CBfMk6Yq2gHmbxEL3xMbCpHgBeZMz1LvgxU3qjMQnDhz6X82D1oc Oqctf/xw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSE4H-0000000HNjh-0BZ0; Fri, 12 Jul 2024 11:04:01 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSE3z-0000000HNey-2YbC for linux-arm-kernel@lists.infradead.org; Fri, 12 Jul 2024 11:03:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1720782221; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1qQ7l0GWU5+sbaI9jPARmVRN2+U8L5NQD4xZcBL2aSc=; b=BsBujVUqPOr1y9Fr/Vq4FnFZssCRUdPUowt8+Qib5E2OJQWFRXec0vjYc44jVz72zMQmuX rHGFS7MN4DrcEcye7irGC/ZW9pZuAUmCWo/u/R6FKKh9jv6zpAr0epYVu4qLJgFnMJk4nj vGv7HFgEqmrHD6kij061Zbk8iCcYCUM= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-76-FvTZpTCAPN684vld94criw-1; Fri, 12 Jul 2024 07:03:40 -0400 X-MC-Unique: FvTZpTCAPN684vld94criw-1 Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-79f0da8e890so192102585a.0 for ; Fri, 12 Jul 2024 04:03:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720782219; x=1721387019; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1qQ7l0GWU5+sbaI9jPARmVRN2+U8L5NQD4xZcBL2aSc=; b=jM2z2eot+QG04Au8DOhsof4DZZn2a0mmYIAwttPgItlbFIy6dnzKqHiATGfXseTfha aMR2y4hHGaOzuj1rzu1hy2m/WyddbZo20Tzb4LENEa6helXcY3s/ff2QN2mUHMPtqStp rkmJoUztMmJ+IX/LdzseW+fCQgmiONoYbihew2EAC5iSCAm8VxH2nCIgLa9MSKKEj9MN cxBvurysYmWcNFKAToMKWanK5NoPZywlgGZoC33L9wJN7iCL1JKMemufjVsx2WW3rBwQ HeyeCKpYT08X2i5a7l+VBCL+SBprfuqKQ+d5H9+THcVpYFV5VYrnLUx19TLUNDfyJhy1 YeDA== X-Gm-Message-State: AOJu0Yw6yfjIeql3uer7Uyn3CSeicGD9kqJUmR08PTC++Z9Y7w7W0oQz qnmqg0OCEXbvu5Je0hd8avY4qviFO7G8Q1N8CVLzMs7CXrfEqZj8biSlQjB0K5+SH6w3rjl1mE1 UeYJ26lnkm5LHw3opF151kE3Prqdx6gQ5tmtYIYz4L+pIxIkPgw2s+ySuUJDZoF1x2RqgXmQkLh 3fQhnZJfrM2J9vcTARiVzXwA/NutN0tbn7cwbzA7iV/fgJRz1ghq/0mw== X-Received: by 2002:ae9:e702:0:b0:79d:5a5a:61f0 with SMTP id af79cd13be357-79f19a7fba1mr1120362285a.34.1720782219603; Fri, 12 Jul 2024 04:03:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF49CeTtgwI6pw84NFDsgZPcLaXJC9eRYBAhVwf5iFp0zhdiGyDc2Go8V8cwq39LwXuNxN/xw== X-Received: by 2002:ae9:e702:0:b0:79d:5a5a:61f0 with SMTP id af79cd13be357-79f19a7fba1mr1120357785a.34.1720782219139; Fri, 12 Jul 2024 04:03:39 -0700 (PDT) Received: from rh.redhat.com (p200300c93f45e50062e5f8c654844c9a.dip0.t-ipconnect.de. [2003:c9:3f45:e500:62e5:f8c6:5484:4c9a]) by smtp.gmail.com with ESMTPSA id af79cd13be357-79f18ff834csm390498685a.5.2024.07.12.04.03.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jul 2024 04:03:38 -0700 (PDT) From: Sebastian Ott To: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Catalin Marinas , Will Deacon , Zenghui Yu Subject: [PATCH 0/3] KVM: arm64: fix warnings in W=1 build Date: Fri, 12 Jul 2024 13:03:29 +0200 Message-ID: <20240712110332.10970-1-sebott@redhat.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240712_040343_743766_C4FDE584 X-CRM114-Status: GOOD ( 10.92 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Building arch/arm64/kvm/ with W=1 spills out a lot of warnings. When changing stuff I try to use as much tooling as possible to make sure that I don't screw up - having a clean baseline imho helps with that. With the first 2 patches applied make W=1 arch/arm64/kvm/ runs without warnings for me (fedora userspace, kvm-arm/next). Patch 3 gets rid of sparse lock warnings in arch/arm64/kvm/vgic/. Sebastian Ott (3): KVM: arm64: fix override-init warnings in W=1 builds KVM: arm64: fix kdoc warnings in W=1 builds KVM: arm64: vgic: fix unexpected unlock sparse warnings arch/arm64/kvm/arm.c | 1 + arch/arm64/kvm/handle_exit.c | 5 +++++ arch/arm64/kvm/hyp/nvhe/switch.c | 6 ++---- arch/arm64/kvm/hyp/vhe/switch.c | 3 +-- arch/arm64/kvm/sys_regs.c | 5 +++++ arch/arm64/kvm/vgic/vgic-irqfd.c | 7 ++++--- arch/arm64/kvm/vgic/vgic-its.c | 18 +++++++++++------- arch/arm64/kvm/vgic/vgic-v3.c | 2 +- arch/arm64/kvm/vgic/vgic.c | 2 +- arch/arm64/kvm/vgic/vgic.h | 2 +- 10 files changed, 32 insertions(+), 19 deletions(-)