public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] cpuidle: psci: Replace deprecated strcpy in psci_idle_init_cpu
@ 2025-10-21 13:51 Thorsten Blum
  2025-10-21 13:51 ` [PATCH 2/2] cpuidle: riscv-sbi: Replace deprecated strcpy in sbi_cpuidle_init_cpu Thorsten Blum
  2025-10-22 12:58 ` [PATCH 1/2] cpuidle: psci: Replace deprecated strcpy in psci_idle_init_cpu Ulf Hansson
  0 siblings, 2 replies; 5+ 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] 5+ messages in thread

end of thread, other threads:[~2025-10-28  9:58 UTC | newest]

Thread overview: 5+ 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-21 13:51 ` [PATCH 2/2] cpuidle: riscv-sbi: Replace deprecated strcpy in sbi_cpuidle_init_cpu Thorsten Blum
2025-10-28  6:16   ` Paul Walmsley
2025-10-28  9:58   ` Anup Patel
2025-10-22 12:58 ` [PATCH 1/2] cpuidle: psci: Replace deprecated strcpy in psci_idle_init_cpu Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox