* [PATCH 1/2] cpuidle: psci: Replace deprecated strcpy in psci_idle_init_cpu
@ 2025-10-21 13:51 Thorsten Blum
2025-10-22 12:58 ` Ulf Hansson
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2025-10-21 13:51 UTC (permalink / raw)
To: Lorenzo Pieralisi, Sudeep Holla, Ulf Hansson, Rafael J. Wysocki,
Daniel Lezcano
Cc: Thorsten Blum, linux-pm, linux-arm-kernel, linux-kernel
strcpy() is deprecated; use strscpy() instead.
Link: https://github.com/KSPP/linux/issues/88
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
drivers/cpuidle/cpuidle-psci.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/cpuidle/cpuidle-psci.c b/drivers/cpuidle/cpuidle-psci.c
index b19bc60cc627..e75d85a8f90d 100644
--- a/drivers/cpuidle/cpuidle-psci.c
+++ b/drivers/cpuidle/cpuidle-psci.c
@@ -382,8 +382,8 @@ static int psci_idle_init_cpu(struct device *dev, int cpu)
drv->states[0].exit_latency = 1;
drv->states[0].target_residency = 1;
drv->states[0].power_usage = UINT_MAX;
- strcpy(drv->states[0].name, "WFI");
- strcpy(drv->states[0].desc, "ARM WFI");
+ strscpy(drv->states[0].name, "WFI");
+ strscpy(drv->states[0].desc, "ARM WFI");
/*
* If no DT idle states are detected (ret == 0) let the driver
--
2.51.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2] cpuidle: psci: Replace deprecated strcpy in psci_idle_init_cpu
2025-10-21 13:51 [PATCH 1/2] cpuidle: psci: Replace deprecated strcpy in psci_idle_init_cpu Thorsten Blum
@ 2025-10-22 12:58 ` Ulf Hansson
0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2025-10-22 12:58 UTC (permalink / raw)
To: Thorsten Blum
Cc: Lorenzo Pieralisi, Sudeep Holla, Rafael J. Wysocki,
Daniel Lezcano, linux-pm, linux-arm-kernel, linux-kernel
On Tue, 21 Oct 2025 at 15:52, Thorsten Blum <thorsten.blum@linux.dev> wrote:
>
> strcpy() is deprecated; use strscpy() instead.
>
> Link: https://github.com/KSPP/linux/issues/88
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Applied for next, thanks!
Kind regards
Uffe
> ---
> drivers/cpuidle/cpuidle-psci.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/cpuidle/cpuidle-psci.c b/drivers/cpuidle/cpuidle-psci.c
> index b19bc60cc627..e75d85a8f90d 100644
> --- a/drivers/cpuidle/cpuidle-psci.c
> +++ b/drivers/cpuidle/cpuidle-psci.c
> @@ -382,8 +382,8 @@ static int psci_idle_init_cpu(struct device *dev, int cpu)
> drv->states[0].exit_latency = 1;
> drv->states[0].target_residency = 1;
> drv->states[0].power_usage = UINT_MAX;
> - strcpy(drv->states[0].name, "WFI");
> - strcpy(drv->states[0].desc, "ARM WFI");
> + strscpy(drv->states[0].name, "WFI");
> + strscpy(drv->states[0].desc, "ARM WFI");
>
> /*
> * If no DT idle states are detected (ret == 0) let the driver
> --
> 2.51.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-22 12:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-21 13:51 [PATCH 1/2] cpuidle: psci: Replace deprecated strcpy in psci_idle_init_cpu Thorsten Blum
2025-10-22 12:58 ` Ulf Hansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).