Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2015846rwb; Fri, 19 Aug 2022 13:36:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR4FsWecmkuq9a+gHKhr9kPqBNYIyyo5ldYthCsoY9XoCOVsiL+pdRQRiaXP/M5+bZO9u27H X-Received: by 2002:a17:907:1c98:b0:730:d0bc:977c with SMTP id nb24-20020a1709071c9800b00730d0bc977cmr5916405ejc.321.1660941379399; Fri, 19 Aug 2022 13:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660941379; cv=none; d=google.com; s=arc-20160816; b=tvWoclVlH2bMRTNfHPo1i08c8nVCZov7CB0f1Oh7RqJhxBRDSA/4qI2aJdOmsTb6Ed XaZJ01oCOhr82i8mPOXcRcGwMAQ9MjqIThYZFi5gBQUawBW7eSOF3QwGwYy9Gug1IlUW 9vbQz/L6LAvJOPxl6BT8qnGfg4b0E+jNt+1wejDm6xqqjGCxvLwOv22d36CtHkEsidk+ k52HgwUwrRMQOMZ7GLFZc41T957rJ90CZJQiwzI5ZZfZK+hYJT2CrpUxREVitmklkv+m LA8acsIBAoWZyrnInSTc5U9D7oWSKsM+924AtqNMiN9GBEEnGWDmz9Bz6LeQvA2Xmg15 4BgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=HAaw6v43y9zoMD1A89OhbgkCqugn3NhYsZRuDFbswjU=; b=Z77j+boccSsogoEsAd3Y1z3M0pHabZDNrOa46/3onM1Hk5QAEA9dJtos4lIvNao/2s tlp5Gv405i2bsJMAYZS7WbxL5cSUvvxACNGIB2UgeJ7HMKxsR2HRC3q0dvjHRjyGwKwC VkWiegVIhBUZpws6EkaNWpfH9y1noDtXkKZw30i+m09XL4XEyEmRsQtRb8az1tAQpR4M JqAkwFCYcCV8QqDxMUWm69wUJQYVt9jV1QhhHRtrGtHzRGkTp0EYpzcawWIQ4SSRs5PI /8g8gEFH1jqOMioRC1S5HN9J6dkfFVeTAfcBlHql6FZ81meB81+RfEOGgGnaI1OCJN4u uPTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=fIFaRjfR; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr11-20020a170906d54b00b0073ca0ae2380si2198258ejc.410.2022.08.19.13.35.48; Fri, 19 Aug 2022 13:36:19 -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=@gmx.net header.s=badeba3b8450 header.b=fIFaRjfR; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351217AbiHST1w (ORCPT + 99 others); Fri, 19 Aug 2022 15:27:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349705AbiHST1u (ORCPT ); Fri, 19 Aug 2022 15:27:50 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7A4581B2F; Fri, 19 Aug 2022 12:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1660937264; bh=T8yJKMD8o6XFclCIp2z4mMB1SQbgLUqQpqvOc1TdR3M=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=fIFaRjfRAQtEvkdlYxGSb8HpBqGiWtizBI1/T8hPoi2+X0GpXRDXIpyRyiKMyJWiD s0+58VeP3zIhJ3vgWnU4OdYDE1eYQGrbG14yRmLuOoV8UPZ48Ud9+QdnWN9EnXwUgS ZIyHKuP59v5Ec8YvkRSzN/xyBRkC0s5Ncl2S7b5c= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.153.160]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MRmfo-1nvsks2keI-00T9Uz; Fri, 19 Aug 2022 21:27:44 +0200 Message-ID: <10e7f147-6f7e-76ad-02f9-2db32c533953@gmx.de> Date: Fri, 19 Aug 2022 21:26:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] parisc: move from strlcpy with unused retval to strscpy Content-Language: en-US To: Wolfram Sang , linux-kernel@vger.kernel.org Cc: "James E.J. Bottomley" , linux-parisc@vger.kernel.org References: <20220818210055.7181-1-wsa+renesas@sang-engineering.com> From: Helge Deller In-Reply-To: <20220818210055.7181-1-wsa+renesas@sang-engineering.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:QmeEpcKlr3qlUzuFyD6WPk0AZuKFJtm3XO8GctBcN+J/ae6GQaJ 5/vf8HEr3PXnNWjMOUVP9ja39NdkOdfuzB+Fpe3xjlehr/nlss0hi84in+aSLZjaYe2bRkj V2yKv2mYDsRv9o5IygdnuKV5x30QvgW2NE4jR6C1TZRoFaFkO0nyzukEvwsdp04xNet1rYr SXmQzkaIZv0e4w5A96Meg== X-UI-Out-Filterresults: notjunk:1;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+7 yJLdJAdheL46yd88IVvln52HCtKU3x2MqoBY9B/cYqwbhiYNA4UQ0J77CZ293T+DvA7nB7TpF X81IHsxHl/9v1ZClsBCgs8LRHj8PM27PZs84IHeBgxUhucEjusrcSHuvQ== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 8/18/22 23:00, 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-=3DwgfRnXz0W3D37d01q3JFkr_i_uTL=3DV= 6A6G1oUZcprmknw@mail.gmail.com/ > Signed-off-by: Wolfram Sang applied to parisc git tree. Thanks! Helge > --- > drivers/parisc/led.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/parisc/led.c b/drivers/parisc/led.c > index 1e4a5663d011..d4be9d2ee74d 100644 > --- a/drivers/parisc/led.c > +++ b/drivers/parisc/led.c > @@ -646,7 +646,7 @@ int lcd_print( const char *str ) > cancel_delayed_work_sync(&led_task); > > /* copy display string to buffer for procfs */ > - strlcpy(lcd_text, str, sizeof(lcd_text)); > + strscpy(lcd_text, str, sizeof(lcd_text)); > > /* Set LCD Cursor to 1st character */ > gsc_writeb(lcd_info.reset_cmd1, LCD_CMD_REG);