Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1471961rwb; Fri, 19 Aug 2022 04:27:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR4PpmjG20FqUdmOdj+ywjVvyYYvx/7zYpOUvnHnut7Aqh6WIHXzf1atGYm5YO7PyyvXnOLL X-Received: by 2002:a17:907:970b:b0:73d:5a29:959 with SMTP id jg11-20020a170907970b00b0073d5a290959mr199143ejc.183.1660908420330; Fri, 19 Aug 2022 04:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660908420; cv=none; d=google.com; s=arc-20160816; b=LcXiIxEH7PHz5T73t1jLWnoCHNriUFuGiPWzdSeMWmCJVpqneSydmHOaivWiMHtHjG Gmh5ESyMe8ufQ4rT5mcGv1OK0Vy/Y4XuE77DtBYtQrkN9y0tQs+SafztUJWlJrjZ28Iv aj93DzUBVzEJSG9qNdToJ3AeiIH5yj3wT2GwuGZo2gBfjkC9yEeF12fzEle56WitiDjf Xo5DiRGL2zkKa2dIxGRZr3K5Y4AfMRWKaX0G8TKEOMT181oHMCWKpUXyxEZWf0nx7nOO y0+8x8Irc0DbtZU2XeWyYC1uQLKA+0Iy66w3+mAyLDTQY8sye7pFwQRz4imdzawVEdZV /JIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=bGCXOJCzcXdOZ8xycZqlDyQ0wwo2K7wlZ7uTMS6y4E4=; b=P3+FQl6Sdu9DBil1DPKFm0LGIACXOjdGKylfTmNOvwkQRrJECVRo5AySY5e7IHW7UZ dTr32XooJ0JJlRLZEtYtE/1gCeGrcf3ySjIXjkk6Mz9zeMsduoMTq3Piq08DDNwGR6SR aqTRlFWNfyOWCwLu/7q5OSuZ4AJuvBRCKLXWzyUjZYSKa+x59p3KTcDNDC3FA1KWBHA+ rkZ1W98ExoPO89waYApFIui64KPxmu283HvH0t58c9quTNrJul6O6NSXS2A5RTokUl/2 LZeNb/NDDewsxStNLlwU7FDUHb0SgjL/dHpJm45SFATZjLJ89XsZmVF5TpCQwyIgLRZr vEuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=hP8+CE7I; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 dd19-20020a1709069b9300b007396bf19f8csi2983223ejc.137.2022.08.19.04.26.34; Fri, 19 Aug 2022 04:27:00 -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=@suse.cz header.s=susede2_rsa header.b=hP8+CE7I; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 S1348553AbiHSLHt (ORCPT + 99 others); Fri, 19 Aug 2022 07:07:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348657AbiHSLHg (ORCPT ); Fri, 19 Aug 2022 07:07:36 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA799B6031; Fri, 19 Aug 2022 04:07:34 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 590831FB69; Fri, 19 Aug 2022 11:07:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1660907253; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bGCXOJCzcXdOZ8xycZqlDyQ0wwo2K7wlZ7uTMS6y4E4=; b=hP8+CE7I88YpO5kl2HuTvk78XbEDT8kjMbKdvsxHhV6q99sP1fMD9BtPZN7YaRu1ei8S+6 gkUSV++0SqLM6/qW2Uncy5hlR5XpsaOlJzQ8dwUApisWh08CfCknwKEZN/YzAXlLOROkgN B98i6ytNj0/SAP2fVChJ7FygzdLWy4s= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1660907253; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bGCXOJCzcXdOZ8xycZqlDyQ0wwo2K7wlZ7uTMS6y4E4=; b=cVVNGf0riyVMpyP/bW6pKKrB6PvOetiDk1TIpZBXH0wW+/jWXAjegAxkGqEct6jmQRYETd Urj1QcEIZDsIerAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 3145713AE9; Fri, 19 Aug 2022 11:07:33 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id KYDSCvVu/2LVJgAAMHmgww (envelope-from ); Fri, 19 Aug 2022 11:07:33 +0000 Date: Fri, 19 Aug 2022 13:02:21 +0200 From: David Sterba To: Wolfram Sang Cc: linux-kernel@vger.kernel.org, David Sterba , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] affs: move from strlcpy with unused retval to strscpy Message-ID: <20220819110221.GP13489@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Wolfram Sang , linux-kernel@vger.kernel.org, David Sterba , linux-fsdevel@vger.kernel.org References: <20220818210139.7819-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220818210139.7819-1-wsa+renesas@sang-engineering.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, Aug 18, 2022 at 11:01:39PM +0200, 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-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/ > Signed-off-by: Wolfram Sang Thanks, I'll add it to the queue.