From: Arnd Bergmann <ar...@ar...>
We are close to being able to turn on -Wstringop-truncation
unconditionally instead of only at the 'make W=1' level, these ten
warnings are all that I saw in randconfig testing across compiler versions
on arm, arm64 and x86.
The final patch is only there for reference at the moment, I hope
we can merge the other ones through the subsystem trees first,
as there are no dependencies between them.
Arnd
Arnd Bergmann (11):
staging: vc04_services: changen strncpy() to strscpy_pad()
scsi: devinfo: rework scsi_strcpy_devinfo()
staging: replace weird strncpy() with memcpy()
orangefs: convert strncpy() to strscpy()
test_hexdump: avoid string truncation warning
acpi: avoid warning for truncated string copy
block/partitions/ldm: convert strncpy() to strscpy()
blktrace: convert strncpy() to strscpy_pad()
staging: rtl8723bs: convert strncpy to strscpy
staging: greybus: change strncpy() to strscpy()
kbuild: enable -Wstringop-truncation globally
block/partitions/ldm.c | 6 ++--
drivers/acpi/acpica/tbfind.c | 19 +++++------
drivers/scsi/scsi_devinfo.c | 30 +++++++++++------
drivers/staging/greybus/fw-management.c | 4 +--
.../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 5 ++-
drivers/staging/rts5208/rtsx_scsi.c | 2 +-
.../vc04_services/vchiq-mmal/mmal-vchiq.c | 4 +--
fs/orangefs/dcache.c | 4 +--
fs/orangefs/namei.c | 33 +++++++++----------
fs/orangefs/super.c | 16 ++++-----
kernel/trace/blktrace.c | 3 +-
lib/test_hexdump.c | 2 +-
scripts/Makefile.extrawarn | 1 -
13 files changed, 64 insertions(+), 65 deletions(-)
--
2.39.2
Cc: "Richard Russon
Cc: Jens Axboe <ax...@ke...>
Cc: Robert Moore <rob...@in...>
Cc: "Rafael J. Wysocki" <raf...@in...>
Cc: Len Brown <le...@ke...>
Cc: "James E.J. Bottomley" <je...@li...>
Cc: "Martin K. Petersen" <mar...@or...>
Cc: Viresh Kumar <vi...@ke...>
Cc: Johan Hovold <jo...@ke...>
Cc: Alex Elder <el...@ke...>
Cc: Greg Kroah-Hartman <gr...@li...>
Cc: Florian Fainelli <flo...@br...>
Cc: Broadcom internal kernel review list <bcm...@br...>
Cc: Mike Marshall <hu...@om...>
Cc: Martin Brandenburg <ma...@om...>
Cc: Steven Rostedt <ro...@go...>
Cc: Masami Hiramatsu <mhi...@ke...>
Cc: Mathieu Desnoyers <mat...@ef...>
Cc: Andrew Morton <ak...@li...>
Cc: Masahiro Yamada <mas...@ke...>
Cc: Nathan Chancellor <na...@ke...>
Cc: Nicolas Schier <ni...@fj...>
Cc: Arnd Bergmann <ar...@ar...>
Cc: Kees Cook <kee...@ch...>
Cc: Alexey Starikovskiy <ast...@su...>
Cc: lin...@li...
Cc: lin...@vg...
Cc: lin...@vg...
Cc: lin...@vg...
Cc: acp...@li...v
Cc: lin...@vg...
Cc: gre...@li...
Cc: lin...@li...v
Cc: lin...@li...
Cc: lin...@li...
Cc: de...@li...
Cc: lin...@vg...
Cc: lin...@vg...
|