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 68990C28B2B for ; Fri, 19 Aug 2022 17:48:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351382AbiHSRsS (ORCPT ); Fri, 19 Aug 2022 13:48:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352097AbiHSRr4 (ORCPT ); Fri, 19 Aug 2022 13:47:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36CABB2844; Fri, 19 Aug 2022 10:15:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C8F84617D7; Fri, 19 Aug 2022 17:15:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C463DC433C1; Fri, 19 Aug 2022 17:15:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660929303; bh=YMX+KaIq1TQ+gLn7mH2jPjTivQfw0jkmJhCSzBgZXaw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oF5gRvBjJBHYMHiArma6zy/FxKEx6nu09qgf2RhpCWCP8UTRls+hXdEWDjDQAPid9 hcL8S7EmfKPxvNKF4gFFrvDbldYGrBOVe3fRHFOfbACn2zTqIt6GItapqvHioOAgc1 Re4tGl3mypmeOXNWYnqa91HFzxi3ZrF5yK22VDFqR+a2jKbyesWeIhgxvlsQvF5vtK 1wBnC+LqN0RFtRW4xwt6+fdXQIs0+uIIr62K7Ve482jSpNSf5YUS4gA/dmd98BQ/s2 bxq9CeL7iDllZoWXJFyxJOrEaxgGOPk5zYtvDwcKTakrETK37a+nMRKiD52FSJKTuO m1h4unFnJdtHQ== Date: Fri, 19 Aug 2022 18:25:39 +0100 From: Jonathan Cameron To: Andy Shevchenko Cc: Wolfram Sang , Linux Kernel Mailing List , Lars-Peter Clausen , linux-iio Subject: Re: [PATCH] iio: move from strlcpy with unused retval to strscpy Message-ID: <20220819182539.44de60c8@jic23-huawei> In-Reply-To: References: <20220818210017.6817-1-wsa+renesas@sang-engineering.com> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 19 Aug 2022 11:07:56 +0300 Andy Shevchenko wrote: > On Fri, Aug 19, 2022 at 12:02 AM 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. > > Same comments as per similar patch you submit to PDx86. > Given it was an easy split, I've turned this into two patches and applied those to the togreg branch of iio.git - initially pushed out as testing for 0-day to poke at it. Thanks, Jonathan