OSDN Git Service

powerpc/prom_init: Convert prom_strcpy() into prom_strscpy_pad()
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 21 Jun 2021 06:49:37 +0000 (16:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Jun 2021 14:06:55 +0000 (00:06 +1000)
commitf47d5a4fc254e62ea5af5cbb2fc3e68901def434
tree123f9ac1f36eca71c45c4d2a8f1bae950f08d51f
parent3018fbc63632e6d30abde228f29aaeaf78b782bf
powerpc/prom_init: Convert prom_strcpy() into prom_strscpy_pad()

In a subsequent patch we'd like to have something like a strscpy_pad()
implementation usable in prom_init.c.

Currently we have a strcpy() implementation with only one caller, so
convert it into strscpy_pad() and update the caller.

Reviewed-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210621064938.2021419-1-mpe@ellerman.id.au
arch/powerpc/kernel/prom_init.c