Skip to content

RFC ACPI: replace deprecated strncpy()

Ahmed Salem acpica-devel linux-acpi linux-kernel-mentees lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ACPI: mark ACPI_COPY_NAMESEG destinations with __nonstring attributedrivers/acpi/acpica/acdebug.h drivers/acpi/prmt.c drivers/acpi/sysfs.c +3 more+9 -92 replies
2/2ACPI: replace deprecated strncpy() with strtomem()drivers/acpi/acpica/tbfind.c include/acpi/actypes.h+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] ACPI: replace deprecated strncpy()

strncpy() is deprecated. This patch series is split over two patches, the first of which annotates destinations with __nonstring, and the second replaces strncpy() with strtomem() in the ACPI_COPY_NAMESEG macro. Additionally, two replacements in drivers/acpi/acpica/tbfind.c:60 with memcpy().

This is an effort to avoid using deprecated interfaces, and potential compiler warnings in the future.

Ahmed Salem (2):
ACPI: mark ACPI_COPY_NAMESEG destinations with __nonstring attribute
ACPI: replace deprecated strncpy() with strtomem()

 drivers/acpi/acpica/acdebug.h                            | 2 +-
 drivers/acpi/acpica/tbfind.c                             | 4 ++--
 drivers/acpi/prmt.c                                      | 2 +-
 drivers/acpi/sysfs.c                                     | 4 ++--
 include/acpi/actbl.h                                     | 6 +++---
 include/acpi/actypes.h                                   | 2 +-
 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c | 2 +-
 tools/power/acpi/tools/acpidump/apfiles.c                | 2 +-
 8 files changed, 12 insertions(+), 12 deletions(-)

base-commit: b3c623b9a94f7f798715c87e7a75ceeecf15292f

Signature · 1 line
2.47.2