Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2107345lqt; Mon, 22 Apr 2024 01:20:00 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW6F0xksKuGylnzDVbdkGyhBDf2JJU7FTWQ9QaAMMvXawNaot1jzi6u/GHV7Mr4ximZP0oKRTbuOojw2vVW2ftnKP1emiZ1d3SK1sxVpw== X-Google-Smtp-Source: AGHT+IEQ92ROpAXxPrBRrtsCKrxTrrz3hB6WHxIhZur+xJXnTsw2bochbcTHbw9ZXz4e6P/CSPPB X-Received: by 2002:a05:622a:202:b0:439:9ac8:a85b with SMTP id b2-20020a05622a020200b004399ac8a85bmr3567656qtx.44.1713774000261; Mon, 22 Apr 2024 01:20:00 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b15-20020ac87fcf000000b00439a26bf37esi2441396qtk.271.2024.04.22.01.20.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 01:20:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-3761-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=fail (signature failed); spf=pass (google.com: domain of linux-crypto+bounces-3761-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3761-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 028BF1C20D6E for ; Mon, 22 Apr 2024 08:20:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6766453E06; Mon, 22 Apr 2024 08:18:50 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D7E8502B6; Mon, 22 Apr 2024 08:18:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713773930; cv=none; b=KTm7pF/s+L1x4s93exkltT3gtWTwvsrb5ODXQhDqV1rnnAEQ3cC/R1o07e8mV5kWKUt9/m0P52Y/SpCWQmj49+zfMhBkfvGYS8rXuoFDEqNLwia2T6OS19rsiHEZugkH98ZHKaimpuWC36p45qdtEJ9VWGvZGdRVj/5IXH1HAes= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713773930; c=relaxed/simple; bh=1R0QdiqBkh2lDI1KZWlD4yhHxXvFKtuxtuwBOw/ITOE=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=a+EoWro1vSYv/ZNn5sKp0LrXGEJL9PtjzaARAm/t9y97X+8es7AW8AXSONV2Xlw2Idw0f5RRs3eFRU0usNcj/3jgG7LtGO7qZ0wpNGQ6XH/onCZ8zFLmgWDArikSSFqCwco1GtxsJ9hEpRRlWDQsvNe7S4QvMQlAie6SNuX1T30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4VNJ6g0Nzdz4x1R; Mon, 22 Apr 2024 18:18:35 +1000 (AEST) From: Michael Ellerman To: linux-kernel@vger.kernel.org, Arnd Bergmann Cc: Arnd Bergmann , Michael Ellerman , Christophe Leroy , Damien Le Moal , Jiri Kosina , Greg Kroah-Hartman , Corey Minyard , Peter Huewe , Jarkko Sakkinen , Tero Kristo , Stephen Boyd , Ian Abbott , H Hartley Sweeten , Srinivas Pandruvada , Len Brown , "Rafael J. Wysocki" , John Allen , Herbert Xu , Vinod Koul , Ard Biesheuvel , Bjorn Andersson , Moritz Fischer , Liviu Dudau , Benjamin Tissoires , Andi Shyti , Michael Hennerich , Peter Rosin , Lars-Peter Clausen , Jonathan Cameron , Dmitry Torokhov , Markuss Broks , Alexandre Torgue , Lee Jones , Jakub Kicinski , Shyam Sundar S K , Iyappan Subramanian , Yisen Zhuang , Stanislaw Gruszka , Kalle Valo , Sebastian Reichel , Tony Lindgren , Mark Brown , Alexandre Belloni , Xiang Chen , "Martin K. Petersen" , Neil Armstrong , Heiko Stuebner , Krzysztof Kozlowski , Vaibhav Hiremath , Alex Elder , Jiri Slaby , Jacky Huang , Helge Deller , Christoph Hellwig , Robin Murphy , Steven Rostedt , Masami Hiramatsu , Andrew Morton , Kees Cook , Trond Myklebust , Anna Schumaker , Masahiro Yamada , Nathan Chancellor , Takashi Iwai , linuxppc-dev@lists.ozlabs.org, linux-ide@vger.kernel.org, openipmi-developer@lists.sourceforge.net, linux-integrity@vger.kernel.org, linux-omap@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org, linux-efi@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-fpga@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-input@vger.kernel.org, linux-i2c@vger.kernel.org, linux-iio@vger.kernel.org, linux-stm32@st-md-mailman.stormr, eply.com@web.codeaurora.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-leds@vger.kernel.org, linux-wireless@vger.kernel.org, linux-rtc@vger.kernel.org, linux-scsi@vger.kernel.org, linux-spi@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-serial@vger.kernel.org, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, iommu@lists.linux.dev, linux-trace-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-hardening@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kbuild@vger.kernel.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <20240403080702.3509288-1-arnd@kernel.org> References: <20240403080702.3509288-1-arnd@kernel.org> Subject: Re: (subset) [PATCH 00/34] address all -Wunused-const warnings Message-Id: <171377378377.1025456.1313405994816400451.b4-ty@ellerman.id.au> Date: Mon, 22 Apr 2024 18:16:23 +1000 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Wed, 03 Apr 2024 10:06:18 +0200, Arnd Bergmann wrote: > Compilers traditionally warn for unused 'static' variables, but not > if they are constant. The reason here is a custom for C++ programmers > to define named constants as 'static const' variables in header files > instead of using macros or enums. > > In W=1 builds, we get warnings only static const variables in C > files, but not in headers, which is a good compromise, but this still > produces warning output in at least 30 files. These warnings are > almost all harmless, but also trivial to fix, and there is no > good reason to warn only about the non-const variables being unused. > > [...] Applied to powerpc/next. [01/34] powerpc/fsl-soc: hide unused const variable https://git.kernel.org/powerpc/c/01acaf3aa75e1641442cc23d8fe0a7bb4226efb1 cheers