From mboxrd@z Thu Jan 1 00:00:00 1970 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 753DDC87FCE for ; Fri, 25 Jul 2025 16:56:02 +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:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bk85ezU2+I9SbNqow+5fjuDgO63huxKKvzmRFpUkY+A=; b=UNDL9Gw0/g4j787eAJ/IeLCBtq apRVv/kktWS5cPGDPc3wPcR/cgEJKHMKQFA9/GA+1eO3Efqkld+s0bPZh2hEr4n/t9ua6bRgeJ4+b rdr+gkojHJxXCqUZNlyv+eLouSZVw0CqYKAOYWpQyHJko386m6a6hprZ5mXqjv4+8q16QW54SOWyi nVzO4Dagf6aKH8IV6XC8Glg0hhgsDZnQv8sssreFNG2NMJaMPJVtnX15JwygcrTbrJZH0DBnQrtKh MjV/BfiEk7c1BoDf/DQ9+JHdgaByg+7K8wPAO7eDBUDs1+UboOePL/J1d6j12n2oGXg/JwmYqf9SH x0unUZLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1ufLi8-0000000AGPI-1e8s; Fri, 25 Jul 2025 16:55:56 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1ufLfe-0000000AGAa-3YGv for linux-arm-kernel@lists.infradead.org; Fri, 25 Jul 2025 16:53:22 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 3B0AF60052; Fri, 25 Jul 2025 16:53:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C359EC4CEE7; Fri, 25 Jul 2025 16:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753462401; bh=fdkIHtrgkFLcz98GalrIHm8UhzdxtNxljZswxai38T4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ucu8QzGpXFqBNMVE65B7Upbb998yCXv5vjEfuLcdjj/vxHkEoCrpHzHR/QzlzBVZ0 ZeZAlW29TdMLXlCMxpw+D7qvN8Y23kQXNyTQWk3RKO9X70AA4pIYZQGrgztpQSNH2t rB9YYmwXd5VtW2mh40fjJjBicjDGdknOdOdejL4yGRSEXd8+msY+cRoB4nw9FP4c9l iSNDDraIUDKisF1HAM+a8IFjFJHxhVzA4OkbJlbVPzgJ5OLRifQE9Rar9/wSE8Pqz3 yHijA7s+/4Ft8Q7DcmrVvyS8N9ti6lXnpVROzxaAxcrm1V69/tCjX+n19X2rrEhiAW MbmIYYVRs1MpQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1ufLfb-001Oie-MY; Fri, 25 Jul 2025 17:53:19 +0100 Date: Fri, 25 Jul 2025 17:53:19 +0100 Message-ID: <86bjp88b5s.wl-maz@kernel.org> From: Marc Zyngier To: Nathan Chancellor Cc: Justin Stitt , James Morse , Alexandru Elisei , Suzuki K Poulose , Oliver Upton , Catalin Marinas , Will Deacon , Tom Rix , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, stable@vger.kernel.org Subject: Re: [PATCH 6.1.y] KVM: arm64: silence -Wuninitialized-const-pointer warning In-Reply-To: <20250725162654.GA684490@ax162> References: <20250724-b4-clidr-unint-const-ptr-v1-1-67c4d620b6b6@google.com> <86frek9182.wl-maz@kernel.org> <20250725162654.GA684490@ax162> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: nathan@kernel.org, justinstitt@google.com, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, catalin.marinas@arm.com, will@kernel.org, trix@redhat.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, stable@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false 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 On Fri, 25 Jul 2025 17:26:54 +0100, Nathan Chancellor wrote: > > On Fri, Jul 25, 2025 at 08:30:21AM +0100, Marc Zyngier wrote: > > The correct fix would be to backport the series described in > > e8789ab7047a8, which should be easy enough to apply. it would also > > make 6.1 less of a terrible kernel. > > If doing that is reasonable to clear this up, I think that would be fine > to do. This is the only stable-only instance of that warning that I have > seen in the build logs, I have sent patches to deal with all the other > instances upstream. We would need this in 5.15 to avoid failures from > -Werror as well but if it is too hard to backport that series there, we > could just disable this warning for this file since we know it is a > false positive. 5.15 would be rather challenging, I'm afraid, and I wouldn't want to review such a thing. > The whole reason the warning occurs is due to the constness of the > sys_reg_desc parameter in the function created by FUNCTION_INVARIANT(), > which I am guessing cannot be removed because it is present in > ->access() and it proliferates out from there? Exactly. Which was a rather bad move when it was introduced over a decade ago (in v3.11), and we only got 'round to killing it entirely in v6.15. Thanks, M. -- Without deviation from the norm, progress is not possible.