On Sun, Aug 17, 2025 at 08:37:18PM +0200, Thorsten Blum wrote: > strcpy() is deprecated; use strscpy() instead. > > Link: https://github.com/KSPP/linux/issues/88 > Signed-off-by: Thorsten Blum <thorsten.b...@linux.dev> > --- > arch/mips/generic/board-ocelot.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/mips/generic/board-ocelot.c > b/arch/mips/generic/board-ocelot.c > index 7115410acb4f..59a0fb243582 100644 > --- a/arch/mips/generic/board-ocelot.c > +++ b/arch/mips/generic/board-ocelot.c > @@ -4,6 +4,7 @@ > * > * Copyright (c) 2017 Microsemi Corporation > */ > +#include <linux/string.h> > #include <asm/machine.h> > #include <asm/prom.h> > > @@ -41,7 +42,7 @@ static __init bool ocelot_detect(void) > > if (prom_argc > 1 && strlen(prom_argv[1]) > 0) > /* ignore all built-in args if any f/w args given */ > - strcpy(arcs_cmdline, prom_argv[1]); > + strscpy(arcs_cmdline, prom_argv[1]); > } > > return true; > -- > 2.50.1
applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]