Skip to content

Commit 8ebfe29

Browse files
tobluxandreas-gaisler
authored andcommitted
sparc: parport: Replace deprecated strcpy() with strscpy() in ecpp_probe()
strcpy() is deprecated; use strscpy() instead. No functional changes intended. Link: KSPP#88 Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Signed-off-by: Andreas Larsson <andreas@gaisler.com>
1 parent 59d94ea commit 8ebfe29

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

arch/sparc/include/asm/parport_64.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include <linux/of.h>
1111
#include <linux/platform_device.h>
12+
#include <linux/string.h>
1213

1314
#include <asm/ebus_dma.h>
1415
#include <asm/ns87303.h>
@@ -149,7 +150,7 @@ static int ecpp_probe(struct platform_device *op)
149150
sparc_ebus_dmas[slot].info.callback = NULL;
150151
sparc_ebus_dmas[slot].info.client_cookie = NULL;
151152
sparc_ebus_dmas[slot].info.irq = 0xdeadbeef;
152-
strcpy(sparc_ebus_dmas[slot].info.name, "parport");
153+
strscpy(sparc_ebus_dmas[slot].info.name, "parport");
153154
if (ebus_dma_register(&sparc_ebus_dmas[slot].info))
154155
goto out_unmap_regs;
155156

0 commit comments

Comments
 (0)