Re: [PATCH] ACPI / sysfs: Replace deprecated and unsafe functions with sysfs_emit
From: Brahmajit Das
Date: Tue Jun 24 2025 - 10:00:15 EST
On 24.06.2025 15:46, Rafael J. Wysocki wrote:
> On Tue, Jun 24, 2025 at 3:38 PM Brahmajit Das <listout@xxxxxxxxxxx> wrote:
> >
> > acpi/sysfs.c has many instances of unsafe or deprecated functions such
> > as sprintf, strcpy. This patch relaces them with sysfs_emit to safer
>
> "replaces"
>
> > alternavtive and better following of kernel API.
>
> "alternative"
>
> 1. Have you tested all of the affected interfaces and verified that
> they still work as expected after the changes?
> 2. While the replaced functions are unsafe in principle, is the usage
> of them in any places affected by this patch actually unsafe?
>
I meant to send this as RFC. Sorry.
But I guess the questions still holds.
--
Regards,
listout