[PATCH 0/9] enabled -Wformat-truncation for clang
Arnd Bergmann
arnd at kernel.org
Wed Mar 27 09:37:59 AEDT 2024
From: Arnd Bergmann <arnd at 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 at gmail.com>
Cc: Claudiu Manoil <claudiu.manoil at nxp.com>
Cc: Vladimir Oltean <vladimir.oltean at nxp.com>
Cc: Jakub Kicinski <kuba at kernel.org>
Cc: Saeed Mahameed <saeedm at nvidia.com>
Cc: Leon Romanovsky <leon at kernel.org>
Cc: Ariel Elior <aelior at marvell.com>
Cc: Manish Chopra <manishc at marvell.com>
Cc: Hans de Goede <hdegoede at redhat.com>
Cc: "Ilpo Järvinen" <ilpo.jarvinen at linux.intel.com>
Cc: Maximilian Luz <luzmaximilian at gmail.com>
Cc: Hannes Reinecke <hare at kernel.org>
Cc: "Martin K. Petersen" <martin.petersen at oracle.com>
Cc: Helge Deller <deller at gmx.de>
Cc: Masahiro Yamada <masahiroy at kernel.org>
Cc: Nathan Chancellor <nathan at kernel.org>
Cc: Nicolas Schier <nicolas at fjasle.eu>
Cc: Johannes Berg <johannes at sipsolutions.net>
Cc: Jaroslav Kysela <perex at perex.cz>
Cc: Takashi Iwai <tiwai at suse.com>
Cc: Nick Desaulniers <ndesaulniers at google.com>
Cc: Bill Wendling <morbo at google.com>
Cc: Justin Stitt <justinstitt at google.com>
Cc: linux-input at vger.kernel.org
Cc: linux-kernel at vger.kernel.org
Cc: netdev at vger.kernel.org
Cc: linux-rdma at vger.kernel.org
Cc: platform-driver-x86 at vger.kernel.org
Cc: linux-scsi at vger.kernel.org
Cc: linux-fbdev at vger.kernel.org
Cc: dri-devel at lists.freedesktop.org
Cc: linux-kbuild at vger.kernel.org
Cc: linuxppc-dev at lists.ozlabs.org
Cc: alsa-devel at alsa-project.org
Cc: linux-sound at vger.kernel.org
Cc: llvm at lists.linux.dev
More information about the Linuxppc-dev
mailing list