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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 EB59EC88E75 for ; Tue, 15 Sep 2026 06:14:27 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4hkWv60LS5z2yFW; Tue, 15 Sep 2026 16:14:26 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.105.4.254 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1789452865; cv=none; b=U/QdLYSQCr7fg+C09dkKmv5hNRV/w2D1udUgBirePRSxXUYnDF5asN1rftE8FL5SmDhvu6Phw6ZqqJ6nh00/WrKO1Ph/gBC7GYwDLSMNbgjK0Mq2we979eZW14AR9jnitH3Eic8afzlLUqLZY84rFvOrsEOGlRvtXnyyeDzt41FA0x+8KrH7PrdxI1EUoP900DfuQ29Gjzi69dFEZeZKWRbEThHMhSzIKvOOGFbrv7nighZo26L4nToWz0VDlUVfpj26Hu80RpqEJP0JmtTcqSSk2OWOO2D9kNcctJ50+XS7v12KTShL0oSbrMGA1VI3IAXPoqpHm8pjUYkxOQguUg== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1789452865; c=relaxed/relaxed; bh=/xezU87Zq2Y1vT/o2bvpMtCWCufr1oupAxWYAhAbPVE=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=TewTfd1pfgyPtjCWFyHix+sHVJwLp4YvbGHp9FNXGMC2QOHM9NI4waCXCaDSpBQGaYfm2PQ5gEF25KB0o8RJah7nhh2zz4gmZUrQtlVA8mVx0jP8f7VHyaHYPdeJUQfxubP28AmIg7f6BVhQmfrVSAgp3Uc9wCL8Eu/IH913MiMon9vQfrHGH2s66IRKnd+JhRtSaLa6R6UNddPXPm3jXvV0y6o0NBtwXeISvhTG8pOj5Ey5wlZNtj16CBZ417hjeSDqk3A9Cxvvny6zJfdAfxlEpbwSVfAKZqIFFtmMA/0uFttRcDvQvW6Wvhgyda7XWcLyK+089OEdkIaKXfrUyw== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; dkim=pass (1024-bit key; unprotected) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=Cwwjt4nJ; dkim-atps=neutral; spf=pass (client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=akpm@linux-foundation.org; receiver=lists.ozlabs.org) smtp.mailfrom=linux-foundation.org Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=Cwwjt4nJ; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux-foundation.org (client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=akpm@linux-foundation.org; receiver=lists.ozlabs.org) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4hkWv44cGxz2y2B for ; Tue, 15 Sep 2026 16:14:24 +1000 (AEST) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 6A6A8600D1; Tue, 15 Sep 2026 06:14:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3910C1F000FF; Tue, 15 Sep 2026 06:14:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1789452861; bh=/xezU87Zq2Y1vT/o2bvpMtCWCufr1oupAxWYAhAbPVE=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=Cwwjt4nJYsaMpOAFBS96BKI8N+2+sK8qyZMEoJg8kDgjYtNT2BKKpZlwOV4sgpN7S 855KBpJ5y+VTkRCRPDpDh2agL14R3mMuAGVEDtM5DfVAxwgvZ+edoZhOW3rum1Pzlo n7aEuG9bgOKttiqPyGo3uJh5NElBpjAtfEeOQXnI= Date: Mon, 14 Sep 2026 23:14:18 -0700 From: Andrew Morton To: Yury Norov Cc: "Jason A. Donenfeld" , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthew Wilcox , Peter Zijlstra , Ingo Molnar , Will Deacon , Boqun Feng , Waiman Long , Dennis Zhou , Tejun Heo , Christoph Lameter , "Paul E. McKenney" , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Uladzislau Rezki , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Onur =?ISO-8859-1?Q?=D6zkan?= , Kees Cook , Joel Granados , Anna-Maria Behnsen , Thomas Gleixner , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , Mike Rapoport , "Liam R. Howlett" , Lorenzo Stoakes , Vlastimil Babka , Jann Horn , Pedro Falcato , "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , Eugenio =?ISO-8859-1?Q?P=E9rez?= , Sebastian Andrzej Siewior , Clark Williams , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, wireguard@lists.zx2c4.com, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, rcu@vger.kernel.org, virtualization@lists.linux.dev, linux-rt-devel@lists.linux.dev, llvm@lists.linux.dev, Yury Norov Subject: Re: [PATCH 00/17] Treewide: enforce static storage for object initializers Message-Id: <20260914231418.b15ec01f7225cf460f6e515a@linux-foundation.org> In-Reply-To: <20260915030336.1192299-1-ynorov@nvidia.com> References: <20260915030336.1192299-1-ynorov@nvidia.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 14 Sep 2026 23:03:18 -0400 Yury Norov wrote: > Declaration macros that statically initialize embedded locks require static > storage when lockdep is enabled. Automatic objects must use runtime > initialization so lockdep receives a persistent class key. > > For automatic local objects, lockdep cannot use the lock address as a persistent > class key and reports "INFO: trying to register non-static key" before disabling > itself. So why haven't we been buried in reports about this warning coming out?