From: Arnd Bergmann <arnd@kernel•org>
To: llvm@lists•linux.dev
Cc: "Hannes Reinecke" <hare@kernel•org>,
"Vladimir Oltean" <vladimir.oltean@nxp•com>,
linux-fbdev@vger•kernel.org, dri-devel@lists•freedesktop.org,
"Jaroslav Kysela" <perex@perex•cz>,
netdev@vger•kernel.org, "Bill Wendling" <morbo@google•com>,
linux-scsi@vger•kernel.org, "Leon Romanovsky" <leon@kernel•org>,
linux-rdma@vger•kernel.org, "Helge Deller" <deller@gmx•de>,
linux-input@vger•kernel.org,
"Ilpo Järvinen" <ilpo.jarvinen@linux•intel.com>,
"Ariel Elior" <aelior@marvell•com>,
"Nicolas Schier" <nicolas@fjasle•eu>,
"Arnd Bergmann" <arnd@arndb•de>,
linux-kbuild@vger•kernel.org, linuxppc-dev@lists•ozlabs.org,
linux-sound@vger•kernel.org,
"Nathan Chancellor" <nathan@kernel•org>,
"Hans de Goede" <hdegoede@redhat•com>,
"Claudiu Manoil" <claudiu.manoil@nxp•com>,
"Jakub Kicinski" <kuba@kernel•org>,
platform-driver-x86@vger•kernel.org,
"Manish Chopra" <manishc@marvell•com>,
"Martin K. Petersen" <martin.petersen@oracle•com>,
"Saeed Mahameed" <saeedm@nvidia•com>,
"Dmitry Torokhov" <dmitry.torokhov@gmail•com>,
"Nick Desaulniers" <ndesaulniers@google•com>,
"Takashi Iwai" <tiwai@suse•com>,
linux-kernel@vger•kernel.org,
"Justin Stitt" <justinstitt@google•com>,
"Johannes Berg" <johannes@sipsolutions•net>,
alsa-devel@alsa-project•org,
"Maximilian Luz" <luzmaximilian@gmail•com>,
"Masahiro Yamada" <masahiroy@kernel•org>
Subject: [PATCH 0/9] enabled -Wformat-truncation for clang
Date: Tue, 26 Mar 2024 23:37:59 +0100 [thread overview]
Message-ID: <20240326223825.4084412-1-arnd@kernel.org> (raw)
From: Arnd Bergmann <arnd@arndb•de>
With randconfig build testing, I found only eight files that produce
warnings with clang when -Wformat-truncation is enabled. This means
we can just turn it on by default rather than only enabling it for
"make W=1".
Unfortunately, gcc produces a lot more warnings when the option
is enabled, so it's not yet possible to turn it on both both
compilers.
I hope that the patches can get picked up by platform maintainers
directly, so the final patch can go in later on.
Arnd
Arnd Bergmann (9):
fbdev: shmobile: fix snprintf truncation
enetc: avoid truncating error message
qed: avoid truncating work queue length
mlx5: avoid truncating error message
surface3_power: avoid format string truncation warning
Input: IMS: fix printf string overflow
scsi: mylex: fix sysfs buffer lengths
ALSA: aoa: avoid false-positive format truncation warning
kbuild: enable -Wformat-truncation on clang
drivers/input/misc/ims-pcu.c | 4 ++--
drivers/net/ethernet/freescale/enetc/enetc.c | 2 +-
.../ethernet/mellanox/mlx5/core/esw/bridge.c | 2 +-
drivers/net/ethernet/qlogic/qed/qed_main.c | 9 ++++---
drivers/platform/surface/surface3_power.c | 2 +-
drivers/scsi/myrb.c | 20 ++++++++--------
drivers/scsi/myrs.c | 24 +++++++++----------
drivers/video/fbdev/sh_mobile_lcdcfb.c | 2 +-
scripts/Makefile.extrawarn | 2 ++
sound/aoa/soundbus/i2sbus/core.c | 2 +-
10 files changed, 35 insertions(+), 34 deletions(-)
--
2.39.2
Cc: Dmitry Torokhov <dmitry.torokhov@gmail•com>
Cc: Claudiu Manoil <claudiu.manoil@nxp•com>
Cc: Vladimir Oltean <vladimir.oltean@nxp•com>
Cc: Jakub Kicinski <kuba@kernel•org>
Cc: Saeed Mahameed <saeedm@nvidia•com>
Cc: Leon Romanovsky <leon@kernel•org>
Cc: Ariel Elior <aelior@marvell•com>
Cc: Manish Chopra <manishc@marvell•com>
Cc: Hans de Goede <hdegoede@redhat•com>
Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux•intel.com>
Cc: Maximilian Luz <luzmaximilian@gmail•com>
Cc: Hannes Reinecke <hare@kernel•org>
Cc: "Martin K. Petersen" <martin.petersen@oracle•com>
Cc: Helge Deller <deller@gmx•de>
Cc: Masahiro Yamada <masahiroy@kernel•org>
Cc: Nathan Chancellor <nathan@kernel•org>
Cc: Nicolas Schier <nicolas@fjasle•eu>
Cc: Johannes Berg <johannes@sipsolutions•net>
Cc: Jaroslav Kysela <perex@perex•cz>
Cc: Takashi Iwai <tiwai@suse•com>
Cc: Nick Desaulniers <ndesaulniers@google•com>
Cc: Bill Wendling <morbo@google•com>
Cc: Justin Stitt <justinstitt@google•com>
Cc: linux-input@vger•kernel.org
Cc: linux-kernel@vger•kernel.org
Cc: netdev@vger•kernel.org
Cc: linux-rdma@vger•kernel.org
Cc: platform-driver-x86@vger•kernel.org
Cc: linux-scsi@vger•kernel.org
Cc: linux-fbdev@vger•kernel.org
Cc: dri-devel@lists•freedesktop.org
Cc: linux-kbuild@vger•kernel.org
Cc: linuxppc-dev@lists•ozlabs.org
Cc: alsa-devel@alsa-project•org
Cc: linux-sound@vger•kernel.org
Cc: llvm@lists•linux.dev
next reply other threads:[~2024-03-26 22:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-26 22:37 Arnd Bergmann [this message]
2024-03-26 22:38 ` [PATCH 8/9] ALSA: aoa: avoid false-positive format truncation warning Arnd Bergmann
2024-03-27 9:54 ` Takashi Iwai
2024-03-27 0:47 ` [PATCH 0/9] enabled -Wformat-truncation for clang Jakub Kicinski
2024-03-29 19:30 ` patchwork-bot+netdevbpf
2024-04-02 1:48 ` (subset) " Martin K. Petersen
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=20240326223825.4084412-1-arnd@kernel.org \
--to=arnd@kernel$(echo .)org \
--cc=aelior@marvell$(echo .)com \
--cc=alsa-devel@alsa-project$(echo .)org \
--cc=arnd@arndb$(echo .)de \
--cc=claudiu.manoil@nxp$(echo .)com \
--cc=deller@gmx$(echo .)de \
--cc=dmitry.torokhov@gmail$(echo .)com \
--cc=dri-devel@lists$(echo .)freedesktop.org \
--cc=hare@kernel$(echo .)org \
--cc=hdegoede@redhat$(echo .)com \
--cc=ilpo.jarvinen@linux$(echo .)intel.com \
--cc=johannes@sipsolutions$(echo .)net \
--cc=justinstitt@google$(echo .)com \
--cc=kuba@kernel$(echo .)org \
--cc=leon@kernel$(echo .)org \
--cc=linux-fbdev@vger$(echo .)kernel.org \
--cc=linux-input@vger$(echo .)kernel.org \
--cc=linux-kbuild@vger$(echo .)kernel.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-rdma@vger$(echo .)kernel.org \
--cc=linux-scsi@vger$(echo .)kernel.org \
--cc=linux-sound@vger$(echo .)kernel.org \
--cc=linuxppc-dev@lists$(echo .)ozlabs.org \
--cc=llvm@lists$(echo .)linux.dev \
--cc=luzmaximilian@gmail$(echo .)com \
--cc=manishc@marvell$(echo .)com \
--cc=martin.petersen@oracle$(echo .)com \
--cc=masahiroy@kernel$(echo .)org \
--cc=morbo@google$(echo .)com \
--cc=nathan@kernel$(echo .)org \
--cc=ndesaulniers@google$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=nicolas@fjasle$(echo .)eu \
--cc=perex@perex$(echo .)cz \
--cc=platform-driver-x86@vger$(echo .)kernel.org \
--cc=saeedm@nvidia$(echo .)com \
--cc=tiwai@suse$(echo .)com \
--cc=vladimir.oltean@nxp$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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