Skip to content

address remaining stringop-truncation warnings

Arnd Bergmann acpica-devel linux-acpi linux-block linux-kbuild linux-trace-kernel lkml 2 versions – Applied

Status from this message: Applied as 6.10 material, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 4 repliesApplied 3/5
  2. v111 patches 26 repliesSuperseded

Patches in v2 Applied · 3/5

#Subject and filesSizeRepliesApplied
1/5test_hexdump: avoid string truncation warninglib/test_hexdump.c+1 -11 replyApplied
2/5acpi: disable -Wstringop-truncationdrivers/acpi/acpica/Makefile+1 -02 replies
3/5block/partitions/ldm: convert strncpy() to strscpy()block/partitions/ldm.c+2 -40 repliesApplied
4/5blktrace: convert strncpy() to strscpy_pad()kernel/trace/blktrace.c+1 -21 replyApplied
5/5kbuild: enable -Wstringop-truncation globallyscripts/Makefile.extrawarn+0 -10 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchJustin Stitt
1/5A-b
2/5
3/5R-b
4/5A-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH 0/5 v2] address remaining stringop-truncation warnings

From: Arnd Bergmann <[email protected]>

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(-)
Signature · 23 lines
2.39.2

Cc: "Richard Russon" <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Robert Moore <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Len Brown <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Nicolas Schier <[email protected]>
Cc: Lin Ming <[email protected]>
Cc: Alexey Starikovskiy <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]