From: Michael Ellerman <patch-notifications@ellerman.id.au>
To: linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>,
Michael Ellerman <mpe@ellerman.id.au>,
Christophe Leroy <christophe.leroy@csgroup.eu>,
Damien Le Moal <dlemoal@kernel.org>,
Jiri Kosina <jikos@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Corey Minyard <minyard@acm.org>, Peter Huewe <peterhuewe@gmx.de>,
Jarkko Sakkinen <jarkko@kernel.org>,
Tero Kristo <kristo@kernel.org>, Stephen Boyd <sboyd@kernel.org>,
Ian Abbott <abbotti@mev.co.uk>,
H Hartley Sweeten <hsweeten@visionengravers.com>,
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
Len Brown <lenb@kernel.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
John Allen <john.allen@amd.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
Vinod Koul <vkoul@kernel.org>, Ard Biesheuvel <ardb@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Moritz Fischer <mdf@kernel.org>,
Liviu Dudau <liviu.dudau@arm.com>,
Benjamin Tissoires <benjamin.tissoires@redhat.com>,
Andi Shyti <andi.shyti@kernel.org>,
Michael Hennerich <michael.hennerich@analo g.com>,
Peter Rosin <peda@axentia.se>,
Lars-Peter Clausen <lars@metafoo.de>,
Jonathan Cameron <jic23@kernel.org>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Markuss Broks <markuss.broks@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Lee Jones <lee@kernel.org>, Jakub Kicinski <kuba@kernel.org>,
Shyam Sundar S K <Shyam-sundar.S-k@amd.com>,
Iyappan Subramanian <iyappan@os.amperecomputing.com>,
Yisen Zhuang <yisen.zhuang@huawei.com>,
Stanislaw Gruszka <stf_xl@wp.pl>, Kalle Valo <kvalo@kernel.org>,
Sebastian Reichel <sre@kernel.org>,
Tony Lindgren <tony@atomide.com>, Mark Brown <broonie@kernel.org>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Xiang Chen <chenxiang66@hisilicon.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Heiko Stuebner <heiko@sntech.de>,
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Vaibhav Hiremath <hvaibhav.linux@gmail.com>,
Alex Elder <elder@kernel.org>, Jiri Slaby <jirislaby@kernel. org>,
Jacky Huang <ychuang3@nuvoton.com>, Helge Deller <deller@gmx.de>,
Christoph Hellwig <hch@lst.de>,
Robin Murphy <robin.murphy@arm.com>,
Steven Rostedt <rostedt@goodmis.org>,
Masami Hiramatsu <mhiramat@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Kees Cook <keescook@chromium.org>,
Trond Myklebust <trond.myklebust@hammerspace.com>,
Anna Schumaker <anna@kernel.org>,
Masahiro Yamada <masahiroy@kernel.org>,
Nathan Chancellor <nathan@kernel.org>,
Takashi Iwai <tiwai@suse.com>,
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,
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
Subject: Re: (subset) [PATCH 00/34] address all -Wunused-const warnings
Date: Mon, 22 Apr 2024 18:16:23 +1000 [thread overview]
Message-ID: <171377378377.1025456.1313405994816400451.b4-ty@ellerman.id.au> (raw)
In-Reply-To: <20240403080702.3509288-1-arnd@kernel.org>
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
prev parent reply other threads:[~2024-04-22 8:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-03 8:06 [PATCH 00/34] address all -Wunused-const warnings Arnd Bergmann
2024-04-03 8:06 ` [PATCH 25/34] usb: gadget: omap_udc: remove unused variable Arnd Bergmann
2024-04-05 22:51 ` Aaro Koskinen
2024-04-06 5:20 ` [PATCH 00/34] address all -Wunused-const warnings patchwork-bot+netdevbpf
2024-04-10 8:02 ` (subset) " Sebastian Reichel
2024-04-22 8:16 ` Michael Ellerman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=171377378377.1025456.1313405994816400451.b4-ty@ellerman.id.au \
--to=patch-notifications@ellerman.id.au \
--cc=abbotti@mev.co.uk \
--cc=andersson@kernel.org \
--cc=andi.shyti@kernel.org \
--cc=ardb@kernel.org \
--cc=arnd@arndb.de \
--cc=arnd@kernel.org \
--cc=benjamin.tissoires@redhat.com \
--cc=christophe.leroy@csgroup.eu \
--cc=dlemoal@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=herbert@gondor.apana.org.au \
--cc=hsweeten@visionengravers.com \
--cc=jarkko@kernel.org \
--cc=jikos@kernel.org \
--cc=john.allen@amd.com \
--cc=kristo@kernel.org \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liviu.dudau@arm.com \
--cc=mdf@kernel.org \
--cc=michael.hennerich@analo \
--cc=minyard@acm.org \
--cc=mpe@ellerman.id.au \
--cc=peterhuewe@gmx.de \
--cc=rafael@kernel.org \
--cc=sboyd@kernel.org \
--cc=srinivas.pandruvada@linux.intel.com \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).