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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0E74C0015E for ; Wed, 9 Aug 2023 13:36:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229615AbjHINgc (ORCPT ); Wed, 9 Aug 2023 09:36:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjHINgb (ORCPT ); Wed, 9 Aug 2023 09:36:31 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1C861986 for ; Wed, 9 Aug 2023 06:36:30 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 9124B5C0135; Wed, 9 Aug 2023 09:36:27 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Wed, 09 Aug 2023 09:36:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1691588187; x=1691674587; bh=3msJaR5UXBLEoKC1HXIH2RtyP/pUMBgvaBb jwAf59DQ=; b=tXn5xruIL2ZWBIL+b/oduuBk+e8qnkdtDb4USof3cljLWqAcPfQ ML0TZbP9FLtBiOlaBdEruMwN7SRE/ot5fj7w9Eer0HyDE4QFAFyaruLNRsr1B2RQ cUqAYz7MNIVy1VTacX82SyQ97DVW4ELs/yT3+ttAyF0499IIBEPO+LGxWSGMz9my BV8Ec/wqBuED3TkSLK/5Fp2K8SnI5VktbbDtI74Ey654us5o4wh5OkeLEdMy/YjN 7fTniGBLzqSpHhUKhuuHv5iGRfLlgH0f8dCPMsVH1D9rz1HNUbpf7wnGM/O/Xd3Y IsRDYRUa817ub1msfWZOxnyJZgIBfoJoAIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1691588187; x=1691674587; bh=3msJaR5UXBLEoKC1HXIH2RtyP/pUMBgvaBb jwAf59DQ=; b=B8Y1wPkIrwz9wCwtgZC8ks1X8dcR//B5L4dPMtbSxacmki1+5lt FkMUZzIu6i3zuXuwdIWMtpVgx/P70TvCY14lr0Zw8DU28p95F+a/YaJ8j3NY4yQR dYZQYre++R7JTvXb3k8oRM48cAm7GbsDLMjXnlK8Uz7Reo0skA5hwgfFqMYXQqXv SjX1qmwGyxNzNMUgqQxTyVXyp17jZomWD1iQYgxSwN+EyheEZuDqEP317MagtXi2 N/dm+HTu23ZDECKdTomeRHLfIUczfdd1/Yix+3eI1wk2KkUtvVpvkLVqngcfX6J4 2C06ot7BCz+wv+XuHVWW6dXJFJ+/QCmlyLw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrleeggdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepgfekueelgeeigefhudduledtkeefffejueelheelfedutedttdfgveeufeef ieegnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id CD8E1B60089; Wed, 9 Aug 2023 09:36:26 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-624-g7714e4406d-fm-20230801.001-g7714e440 Mime-Version: 1.0 Message-Id: In-Reply-To: <66ca8677-6a8d-c2f6-f215-a49ae7248458@csgroup.eu> References: <20230809131024.2039647-1-arnd@kernel.org> <66ca8677-6a8d-c2f6-f215-a49ae7248458@csgroup.eu> Date: Wed, 09 Aug 2023 15:35:46 +0200 From: "Arnd Bergmann" To: "Christophe Leroy" , "Arnd Bergmann" , "Michael Ellerman" Cc: "Nicholas Piggin" , "Andrew Morton" , "Jiri Slaby" , "Maninder Singh" , "Hugh Dickins" , "Gustavo A. R. Silva" , "Nathan Lynch" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/2] powerpc: mark more local variables as volatile Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 9, 2023, at 15:17, Christophe Leroy wrote: > Le 09/08/2023 =C3=A0 15:10, Arnd Bergmann a =C3=A9crit=C2=A0: >> From: Arnd Bergmann >>=20 >> A while ago I created a2305e3de8193 ("powerpc: mark local variables >> around longjmp as volatile") in order to allow building powerpc with >> -Wextra enabled on gcc-11. > > Should this be explained in=20 > https://docs.kernel.org/process/volatile-considered-harmful.html ? > My feeling is that these two files are special enough that we don't have to worry about it in general, there is only one other caller of setjmp in the kernel, and the setjmp() man page explicitly mentions this problem and the workaround. Arnd