[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f2cef25c1e092fc3e9f7312b85762b487d67e3ff.camel@perches.com>
Date: Thu, 18 Aug 2022 19:40:36 -0400
From: Joe Perches <joe@...ches.com>
To: Wolfram Sang <wsa+renesas@...g-engineering.com>,
linux-kernel@...r.kernel.org
Cc: Richard Henderson <richard.henderson@...aro.org>,
Ivan Kokshaysky <ink@...assic.park.msu.ru>,
Matt Turner <mattst88@...il.com>, linux-alpha@...r.kernel.org,
Julia Lawall <Julia.Lawall@...ia.fr>
Subject: Re: [PATCH] alpha: move from strlcpy with unused retval to strscpy
On Thu, 2022-08-18 at 22:59 +0200, Wolfram Sang wrote:
> Follow the advice of the below link and prefer 'strscpy' in this
> subsystem. Conversion is 1:1 because the return value is not used.
> Generated by a coccinelle script.
Nice.
Last time I posted a coccinelle script for strlcpy->strscpy conversions
with unused returns, there were several variants that were not converted.
https://lore.kernel.org/cocci/a3279a5772b2e49b57890cd75e97360b82890798.camel@perches.com/T/#m502108bfe0cc6a41d499a4c1b55d5f5db1423465
Did you post the script you used?
Powered by blists - more mailing lists