Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1266266rwb; Thu, 18 Aug 2022 23:58:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR71cuY4aqa9XfYbl8tkX9lLVFSuQGN04vHgfLTj1wYKaBtb+QABSx65VuNaO33nkbVgiXJU X-Received: by 2002:a05:6402:4414:b0:434:f58c:ee2e with SMTP id y20-20020a056402441400b00434f58cee2emr4981924eda.362.1660892310526; Thu, 18 Aug 2022 23:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660892310; cv=none; d=google.com; s=arc-20160816; b=J6+vHW8Pko4HvkeO4+bDAxbTjhGyL6pPiBEUr9FbSby8sNEcM4oyDbpE07e8vGEpWX TZmBZyY8tNtTq4//qj+s9jQ7IEo4p367U+KYwWsXTrPviTraIPoILG1kEe4rNN/OuKjA sFvXAv8L8Xe1LeKOVL/juVi1H6QWFqWrpnBdcsLKDUVLioAEvA05lC4UcikxC60BDdpu Q7lKTR5EROC7evZdEJB7KdaO3V6R1lT8JWyRWSpFdrWoBGFqJcVLKCvu2vf/PGXtxPHd dvsLwsBtk9Or/Tdb6K6Y75HCbX1h/Z02QehW+QztWvBhIgFkZnHrQz6K62qf+GS+8uMH zcdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=eJpdoxh+M7feWKSSk0/EXUUxoohTBzJMpHwSXULb21E=; b=XIUlocY4vfFRToObaGiI4QXpGLPXIH0zPBIaUQ4W2b9zSmB/tci+m4QkMq5/kDt8dT rl4zxrBGYlG852F+DszleLTCpctNlIg986Np/r7iH66ufO5VMZTdYPTf+jy9liHceIag 5yTV69LmDJWGZUcgWyK+i+kSguxGOJDrcaP4MLik2QVD0gE13yHNlwlNfK+zMF08Zpg6 rpRr6XFfBfkoTMCHiIDTK1ZNXfm39t6MFim419XtQX5o1U8QU3F0dbMvJozvgmWOuIQD bShFSIas8M5ac52zqxU3meElE+9V0xHMRj1HWFDwyb+nvmsBKZOgO5z1YU8tIugXaJmI W1Lw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb39-20020a1709077ea700b00732fca94958si2565167ejc.706.2022.08.18.23.58.04; Thu, 18 Aug 2022 23:58:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346481AbiHSGxg (ORCPT + 99 others); Fri, 19 Aug 2022 02:53:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346113AbiHSGxd (ORCPT ); Fri, 19 Aug 2022 02:53:33 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2D8F2D1DA for ; Thu, 18 Aug 2022 23:53:31 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOvsm-0008U9-Ds; Fri, 19 Aug 2022 08:53:28 +0200 Received: from pengutronix.de (unknown [IPv6:2a01:4f8:1c1c:29e9:22:41ff:fe00:1400]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 999A7CE2C6; Fri, 19 Aug 2022 06:53:27 +0000 (UTC) Date: Fri, 19 Aug 2022 08:53:24 +0200 From: Marc Kleine-Budde To: Wolfram Sang Cc: linux-kernel@vger.kernel.org, linux-can@vger.kernel.org Subject: Re: [PATCH] net: move from strlcpy with unused retval to strscpy Message-ID: <20220819065324.qfrbrs6hmr5szfuc@pengutronix.de> References: <20220818210050.7108-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lcgs47n7y5fqaeta" Content-Disposition: inline In-Reply-To: <20220818210050.7108-1-wsa+renesas@sang-engineering.com> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 --lcgs47n7y5fqaeta Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 18.08.2022 23:00:34, 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. >=20 > Link: https://lore.kernel.org/r/CAHk-=3DwgfRnXz0W3D37d01q3JFkr_i_uTL=3DV6= A6G1oUZcprmknw@mail.gmail.com/ > Signed-off-by: Wolfram Sang > --- > drivers/net/can/sja1000/peak_pcmcia.c | 2 +- > drivers/net/can/usb/peak_usb/pcan_usb_core.c | 2 +- Acked-by: Marc Kleine-Budde # for CAN regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --lcgs47n7y5fqaeta Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmL/M2EACgkQrX5LkNig 011LSQf/RMiol3VoFyzYvGXuMbEJrMnE8B4jhFphzfQ4g1FNThH0wE8TEoubHvgX uIWrIXW7H7AA/hYXUFwkQBbaboyM1cn4at59LZsTmK3hTsJvJ6YUVwUXMYNAelW6 wehs2rHK/edwk9Dn4sr+SpIDeszdB5rC0MITEPzGqgQ82Oms1dK3eKWcaArPbX8W Z1UACWPBStiEGyBRFRxFY3iNHlIS5LIrhJMHIGYwTrtGq74xoRrauG0DZydbtIaP Mr0FPsBosKt6ojDbUdo+/n0lAbuA1u7JTpSDRExycTqL803iJr/CDngCNmv/mPdI Qb9yBIMerd4ji/CdUTdA7EgaoGYtnQ== =Wdh3 -----END PGP SIGNATURE----- --lcgs47n7y5fqaeta--