Skip to content

Commit e938ef8

Browse files
tobluxUlf Hansson
authored andcommitted
cpuidle: psci: Replace deprecated strcpy in psci_idle_init_cpu
strcpy() is deprecated; use strscpy() instead. Link: KSPP#88 Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 47c7b3c commit e938ef8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/cpuidle/cpuidle-psci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ static int psci_idle_init_cpu(struct device *dev, int cpu)
382382
drv->states[0].exit_latency = 1;
383383
drv->states[0].target_residency = 1;
384384
drv->states[0].power_usage = UINT_MAX;
385-
strcpy(drv->states[0].name, "WFI");
386-
strcpy(drv->states[0].desc, "ARM WFI");
385+
strscpy(drv->states[0].name, "WFI");
386+
strscpy(drv->states[0].desc, "ARM WFI");
387387

388388
/*
389389
* If no DT idle states are detected (ret == 0) let the driver

0 commit comments

Comments
 (0)