Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp916196rwb; Thu, 18 Aug 2022 14:51:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR4o3WON0W04av4Bz2/x/kqqyo4QuTMiLHpPDr8GQUtgbkeRPtPG1svQlNqUKylj7ojaxCUn X-Received: by 2002:a05:6a00:21c8:b0:52e:3404:eba5 with SMTP id t8-20020a056a0021c800b0052e3404eba5mr4814228pfj.67.1660859517628; Thu, 18 Aug 2022 14:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660859517; cv=none; d=google.com; s=arc-20160816; b=g5bgwNEuukCdxqURC/tYr3Jw91x7kWLsiDdm/DixOG6TNxFxdobRcQgPbSCJCPtN/1 ARPVCPn5tBsP14KVSvACCz5EjEbFscZe2nw7ysIBwaUzwvAQHdZers6FNAXkqkGCKzFu xc7c1Qz/QWyVnjNhkgQrqtzn7lzcqZtNlTtPUzjQYXb1h1Am+g79bACwQZ2xPaRK4q2r qi+M3cAblSs56Sd/vCUbB/12xoZH+qUmAF7LVcRMmPk7hSXKdPfTr0V4AVvzOEddpMjv QvVjmG3Ie2Ud/2MMsATha7YQZK3muhgvMib0+JgkaAC+03/bxwXnKRHY22io9cBXr08W baiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Vy8D1pkwyXAsiF4MUgRh4hwYH42zrsLDINWKukfqLXo=; b=SF2O2fL5yUKlP3exFVGoRxne8w33WVeilSozB6zWzKfOpd3aRI2z/EwyKKP3X94ZPS AhWVXQOu3qJJUvYSGNXPD6W3CLNEVWiDtLLIHFG0BCSCmQz8S7Ho4NMeWlIPDKMUaCZU o6U/rihllDS1cFqfGwPU35hnIIJo4o7ZX+uCVQV5EQkyM8Xd/awiKYutzduLM+073oYN jkJKDHUY97jSf7LcMDUdlouI3UIngQMluslU+wdtrIMDS762zOK4NXfVCdNp40YP7zBV sIuccy+UTtNTrBxZrxevFqfOBucEIPOHxV8tTp2FSssOni/hb8cvHYUymoJ4DqX1/F8T jCFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=KQJIUsGa; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i69-20020a638748000000b0041d4b75332csi2216555pge.339.2022.08.18.14.51.46; Thu, 18 Aug 2022 14:51:57 -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=@linuxfoundation.org header.s=google header.b=KQJIUsGa; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346997AbiHRV0S (ORCPT + 99 others); Thu, 18 Aug 2022 17:26:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346995AbiHRV0A (ORCPT ); Thu, 18 Aug 2022 17:26:00 -0400 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B96A8DEB59 for ; Thu, 18 Aug 2022 14:17:44 -0700 (PDT) Received: by mail-io1-xd2d.google.com with SMTP id p184so2026618iod.6 for ; Thu, 18 Aug 2022 14:17:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject:from:to:cc; bh=Vy8D1pkwyXAsiF4MUgRh4hwYH42zrsLDINWKukfqLXo=; b=KQJIUsGaq+atx0WDA+Q6GC29q+wr7kk6ZI9yxsBSeiLJM5vGupunTC77EeaW1K2itz g7MuiArWBexrJrcHWIaeGBh20KkvcIJRQOr/QA0pK/AfTOCXiMm5gTaAZXJHZf3Mpwtl a2jPAtB8rDhvhg5JBX8fi7fZe7+QfKR4PGmPs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc; bh=Vy8D1pkwyXAsiF4MUgRh4hwYH42zrsLDINWKukfqLXo=; b=DMKfuBFthbd9DYPc2YTQhaak7+x9fZZSy23lqH98pSKknrB+oy9shSAje6bBX17F5B Qpw/K/LuHDk5OtEwY5CEIWvtbPgtjbWYZ3wS50n/wPz+R21+G9t7XzSqhUbDMGWmkMfU 6iJQS58USqevXw77a8GH8k0iJY8wkEduKdouTDE+dONw465KNDa3OwqJYzxNwom60Fxm EBJNr2FcmtmX5bEMhSHXZMfOQM9kCSqRXYqLIB0MEg2StXy+/1UNSCitLzaqfJH53Zpn HmWJ7Os+/QO1RILbAB+SsjGWgeGBsOlRo59YvZ0NC3mOgys2auU8kU6Bg6SDtZpPqbRW uoUg== X-Gm-Message-State: ACgBeo3J+QWBNwumVAMeD/aCXHCWEeFOj7HAUFVnLVH+fa6vK25afqRx E/WK4mwOd9MVHK1/YmM972eC5Q== X-Received: by 2002:a6b:3ec2:0:b0:67c:6baf:a51f with SMTP id l185-20020a6b3ec2000000b0067c6bafa51fmr2235618ioa.160.1660857461762; Thu, 18 Aug 2022 14:17:41 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id b1-20020a056638388100b003416ac35529sm1022582jav.26.2022.08.18.14.17.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Aug 2022 14:17:41 -0700 (PDT) Subject: Re: [PATCH] usb: move from strlcpy with unused retval to strscpy To: Wolfram Sang , linux-kernel@vger.kernel.org Cc: Duncan Sands , Greg Kroah-Hartman , Felipe Balbi , Laurent Pinchart , Richard Leitner , Alan Stern , Guenter Roeck , Heikki Krogerus , Valentina Manea , Shuah Khan , linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net, Shuah Khan References: <20220818210116.7517-1-wsa+renesas@sang-engineering.com> From: Shuah Khan Message-ID: Date: Thu, 18 Aug 2022 15:17:40 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20220818210116.7517-1-wsa+renesas@sang-engineering.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On 8/18/22 3:01 PM, 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. > Please elaborate and summarize why this change makses sense in the commit log? It will be easier for reviewers - saves time checking the link. > Link: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/ > Signed-off-by: Wolfram Sang > --- > drivers/usb/atm/usbatm.c | 2 +- > drivers/usb/core/devio.c | 2 +- > drivers/usb/gadget/function/f_fs.c | 2 +- > drivers/usb/gadget/function/f_uvc.c | 2 +- > drivers/usb/gadget/function/u_ether.c | 8 ++++---- > drivers/usb/gadget/function/uvc_v4l2.c | 6 +++--- > drivers/usb/gadget/udc/omap_udc.c | 2 +- > drivers/usb/misc/usb251xb.c | 6 +++--- > drivers/usb/storage/onetouch.c | 2 +- > drivers/usb/typec/tcpm/fusb302.c | 2 +- > drivers/usb/usbip/stub_main.c | 2 +- I don't have any problems with the change itself. I would ike to see the commit log clealrly state why this change is good. With that for usbip change: Acked-by: Shuah Khan thanks, -- Shuah