From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9498BC6FA89 for ; Mon, 12 Sep 2022 14:02:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230007AbiILOC5 (ORCPT ); Mon, 12 Sep 2022 10:02:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbiILOCx (ORCPT ); Mon, 12 Sep 2022 10:02:53 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 37EB032ABB; Mon, 12 Sep 2022 07:02:45 -0700 (PDT) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1oXk1M-0007Yg-02; Mon, 12 Sep 2022 16:02:44 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 493E6C1291; Mon, 12 Sep 2022 15:40:30 +0200 (CEST) Date: Mon, 12 Sep 2022 15:40:30 +0200 From: Thomas Bogendoerfer To: Wolfram Sang Cc: linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: Re: [PATCH] MIPS: move from strlcpy with unused retval to strscpy Message-ID: <20220912134030.GC9232@alpha.franken.de> References: <20220818205943.6288-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220818205943.6288-1-wsa+renesas@sang-engineering.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 18, 2022 at 10:59:43PM +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. > > Link: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/ > Signed-off-by: Wolfram Sang > --- > arch/mips/kernel/prom.c | 6 +++--- > arch/mips/kernel/relocate.c | 2 +- > arch/mips/pic32/pic32mzda/init.c | 2 +- > 3 files changed, 5 insertions(+), 5 deletions(-) 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 ]