From: Ahmed Salem <x0rw3ll@gmail.com>
To: robert.moore@intel.com, rafael.j.wysocki@intel.com, lenb@kernel.org
Cc: skhan@linuxfoundation.org,
linux-kernel-mentees@lists.linuxfoundation.org,
linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: [RFC PATCH 0/2] ACPI: replace deprecated strncpy()
Date: Sun, 30 Mar 2025 07:53:40 +0200 [thread overview]
Message-ID: <cover.1743313252.git.x0rw3ll@gmail.com> (raw)
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.
Link: https://github.com/KSPP/linux/issues/90
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
--
2.47.2
next reply other threads:[~2025-03-30 5:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-30 5:53 Ahmed Salem [this message]
2025-03-30 5:54 ` [RFC PATCH 1/2] ACPI: mark ACPI_COPY_NAMESEG destinations with __nonstring attribute Ahmed Salem
2025-03-31 11:49 ` Rafael J. Wysocki
2025-03-31 17:55 ` Ahmed Salem
2025-03-30 5:55 ` [RFC PATCH 2/2] ACPI: replace deprecated strncpy() with strtomem() Ahmed Salem
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1743313252.git.x0rw3ll@gmail.com \
--to=x0rw3ll@gmail.com \
--cc=acpica-devel@lists.linux.dev \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel-mentees@lists.linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=robert.moore@intel.com \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox