Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1321686rwb; Fri, 19 Aug 2022 01:17:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR7z5jav8Ost4F+dHhpnVgTE8RplSlfQcrXqlng0Pv1ClE7MBJHhi4KCdVdR1AB5XG7O/sm4 X-Received: by 2002:a17:907:60c7:b0:731:17e4:7fcc with SMTP id hv7-20020a17090760c700b0073117e47fccmr4092998ejc.73.1660897066677; Fri, 19 Aug 2022 01:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660897066; cv=none; d=google.com; s=arc-20160816; b=VjcZ+lKH/Ezt4CYz8uUFy5lsvjR9BGp3pKApJBcvHVMbUrumIC/Y4BeQljGip7ukS8 jKZTgWeo6o4qrK6Z6LYyYeL6hREUum4TSBR83k+jchvLHn5PPRJxQKKO4cRvMeIaxhXC 1ELqillpkasg0BRWI+LxqeUuY6SgmXFyis6DZ2Tqn1K4h1nsogUrbDSYoMMnrpestWUx vOXV8mIWDCq3At4dl5rGK+zPWDsvs9ldIuUUVMpq6PHJlP/22CSmHKn4lgvAsKbzFmoW nqbZy2FNtc94w8zp5f+bVcvnAt48IH1BdRmRtkTgG2s8v84imO1LmbsCTJWBfpJ6JftE 9CDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Phy2kavk45HzuAR99SKpcbN4U9hypiQhPKgRRZqp7Do=; b=eE45yf3vJHuCWQb6gIvoELoxzNgZip5vO+jnBTB7zsX1FZify88dtIhRvHbbz2Km8X CBEcPp8iy5dUvC7DTzzu40SONNiDHGPgnRLMxM+dN329TpUmaKrAeC7kOK/R/ABD9tv2 E+DqEHokItJcjG7xn1rHeIjL6SXEqU3LSN5u9/lSoAnuWKRlbjiTuL9uNmFAcv7jgHjg DxPDPJf754bgDKaCfCJZPG11RqeKFv1XWWgA8/xkqyCFa1Cf0iEKBYhiw0PB1mu6wW2Q xDY0vpfE/q3YYQydWOITyKuU8Tt7addu6wQzvO6Lq65jtdd6fAHQs2PCoMfd6T9mCoYw CE3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ma8LA8qw; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go15-20020a1709070d8f00b00731201adfc1si2713567ejc.713.2022.08.19.01.17.20; Fri, 19 Aug 2022 01:17:46 -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=@gmail.com header.s=20210112 header.b=ma8LA8qw; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347444AbiHSIIj (ORCPT + 99 others); Fri, 19 Aug 2022 04:08:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347437AbiHSIIf (ORCPT ); Fri, 19 Aug 2022 04:08:35 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2E3B1F2E0; Fri, 19 Aug 2022 01:08:34 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id y18so2821812qtv.5; Fri, 19 Aug 2022 01:08:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=Phy2kavk45HzuAR99SKpcbN4U9hypiQhPKgRRZqp7Do=; b=ma8LA8qwXOWommtex1+VBB+xZNgJWmJWlNxr/798VJgFGYGZIimCjRxTJpEoD7rVM3 XLvpuvV9PyFIPH9ls48Ri8w1fIkikoWWxR9A+ODnu/mSWdgegrS5bP0J+lsGRwzSKAQv QRGT115Z9Lqi48WO0ZSKoEEyLcrx1rMszzhwIUqi2uioKo6GV5udra2zt6Z5Ss10m94K eZCOgx3iBIZq5/Ajm42XaozhtuqkOFIIMWPcxtmVJ3gysQqksOPU+QTe90DKrz5cJIFy pRtTJ+bzwSgGb9vKm9uZIY0aLm5fge91t9Uxt5R/lXLYIRh3p5xAXQMZfutsZQ+Q/U+m EAqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=Phy2kavk45HzuAR99SKpcbN4U9hypiQhPKgRRZqp7Do=; b=DucFF0IyVn+l/g8wcn7BRaBqLoLzzHmSCX8EEdp8B7qofPASl1dhmFzN7wbML+zhUF Mf6U1e+ziTVe3mWB03BKTbzEjQzOcgTwlaIeqsS/oGdRmXrKbXDQHpzcAMkVVY8r5slB 58n6jBptCIS6ql3k+ngvQ/WfTEhGsdPx8vylE83kf4dvKhra6qOer42pOuV4adV/VGdv j9LXWe2/ja+fY9Xr5GYEbZXUrotHSRSZIqvqBXYEyjE/RFvAfxO1+EZKt2f1YhWgLrvF wHPKLq3LPGG5GD+knG03h7loQ3Ebey6stWGBMEcmIFKFoEsemAUlVyKMSBWBInYNTFKx hJuA== X-Gm-Message-State: ACgBeo1ta8OMmBXdAW2E9+lj9tlt2Rx5Q+bbq+72V9vdZP1ZjnpmSf0M EkgJ9w2KVevoWRkAssLu8q4/sWsKGaLAnw8WiF8= X-Received: by 2002:ac8:5786:0:b0:343:3051:170d with SMTP id v6-20020ac85786000000b003433051170dmr5493279qta.429.1660896513674; Fri, 19 Aug 2022 01:08:33 -0700 (PDT) MIME-Version: 1.0 References: <20220818210017.6817-1-wsa+renesas@sang-engineering.com> In-Reply-To: <20220818210017.6817-1-wsa+renesas@sang-engineering.com> From: Andy Shevchenko Date: Fri, 19 Aug 2022 11:07:56 +0300 Message-ID: Subject: Re: [PATCH] iio: move from strlcpy with unused retval to strscpy To: Wolfram Sang Cc: Linux Kernel Mailing List , Jonathan Cameron , Lars-Peter Clausen , linux-iio Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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, 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. -- With Best Regards, Andy Shevchenko