[PATCH 0/5 v2] address remaining stringop-truncation warnings
From: Arnd Bergmann
Date: Tue Apr 09 2024 - 10:01:44 EST
From: Arnd Bergmann <arnd@xxxxxxxx>
We are close to being able to turn on -Wstringop-truncation
unconditionally instead of only at the 'make W=1' level, these five
warnings remain after the previous round and three patches I sent
separately for drivers/staging.
I hope I managed to include all the feedback on v1, so please apply
directly to subsystem trees if v2 looks ok to you.
Arnd
Arnd Bergmann (5):
[v2] test_hexdump: avoid string truncation warning
[v2] acpi: disable -Wstringop-truncation
[v2] block/partitions/ldm: convert strncpy() to strscpy()
[v2] blktrace: convert strncpy() to strscpy_pad()
[v2] kbuild: enable -Wstringop-truncation globally
block/partitions/ldm.c | 6 ++----
drivers/acpi/acpica/Makefile | 1 +
kernel/trace/blktrace.c | 3 +--
lib/test_hexdump.c | 2 +-
scripts/Makefile.extrawarn | 1 -
5 files changed, 5 insertions(+), 8 deletions(-)
--
2.39.2
Cc: "Richard Russon" <ldm@xxxxxxxxxxx>
Cc: Jens Axboe <axboe@xxxxxxxxx>
Cc: Robert Moore <robert.moore@xxxxxxxxx>
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@xxxxxxxxx>
Cc: Len Brown <lenb@xxxxxxxxxx>
Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>
Cc: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
Cc: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: Masahiro Yamada <masahiroy@xxxxxxxxxx>
Cc: Nathan Chancellor <nathan@xxxxxxxxxx>
Cc: Nicolas Schier <nicolas@xxxxxxxxx>
Cc: Lin Ming <ming.m.lin@xxxxxxxxx>
Cc: Alexey Starikovskiy <astarikovskiy@xxxxxxx>
Cc: linux-ntfs-dev@xxxxxxxxxxxxxxxxxxxxx
Cc: linux-block@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: linux-acpi@xxxxxxxxxxxxxxx
Cc: acpica-devel@xxxxxxxxxxxxxxx
Cc: linux-trace-kernel@xxxxxxxxxxxxxxx
Cc: linux-kbuild@xxxxxxxxxxxxxxx