Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1875659rwb; Fri, 19 Aug 2022 10:52:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ccbDWFJSYftROjyYpoY7EwovCbZzGJaFHB9hUk9zhjPCxulaj9rBB41olclJXAYMkI6V1 X-Received: by 2002:a17:903:22cd:b0:172:c65f:786e with SMTP id y13-20020a17090322cd00b00172c65f786emr2488438plg.98.1660931569604; Fri, 19 Aug 2022 10:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660931569; cv=none; d=google.com; s=arc-20160816; b=PGC/IwfgQTCHbonEeA9KKhPml9Kz6YD/wdV5NBj+m6EvA2fgFJCgsSqI8OGML/ukYl 0nA+5cSFmrGb7VM6SaAoeg+kNvK8K6HJcvByDwReuKdXN0JFO+Hez0izDkfu3gLiCgyW rbD7IFLbDF4zbQw6yHOqDjtN36oxPSfj7U8Djrw0LoG4fhpF6UrbObJhnkeR1yVpxitK FSnjwv11ZGaKiYrcrMlNO4Wev4ureNIWVLjZ6vTLH7tZK3O4/pGUTsDlz/5hn2sJrAYt QRVaHJ95XzGGGE7hxsifvfobnYzL0cc207v61WbBl+FGEPHoWjjRw/V6aKhHnD4SYqXE M74g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=3uTUFDetFDebuDhHjSZlJ40hAHF6+7wxn4BrH+FpKfA=; b=MCmovQXCO1gGwTrmB1XhNcFWfOgHZa1FpeTB+bPum8ynhID15BSoalAF3HIhEXQSlQ ANEs+yijWsSdNIprSjlFbOyJZ9qr4CJHkejnivC+TvRKc4CtcEXTnBajoYrNzYLjOse5 a5ev6yy8+tvw0qY/djnPvV8QhlGEYf9z3rsI2SrwNPf3tuHdUEo+x2AFl6Pj9nEr9diF IlzcwNCYiIS7aVOxYJzYOJc4c0NauMBkDY6TdPL8InczGTTQEPvrWCHGiRkS6YtB9x1h KDcEKswcr1k7T9VqUhimPc7kpSL99kUnS9DvLPSeER1XznKynVD9b2BH32vdeHBN8dBn 6z4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oF5gRvBj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f31-20020a63511f000000b0041bdaa463c5si2830093pgb.441.2022.08.19.10.52.37; Fri, 19 Aug 2022 10:52:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oF5gRvBj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351314AbiHSRsS (ORCPT + 99 others); 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 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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