From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C37A743F8C1; Tue, 14 Jul 2026 14:11:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784038267; cv=none; b=Ke65fNKShunZFOYp70aam2mYvf/Vtobo10M27anAnlQV/KazRkOiTxNnFVzBRJ8spbIb0tKKba35Apxv2MdGIGc5Tof+dIANLZAQ8r2ZiqXMJQifr/yMKwQcKTjOedYygqfQ7etdUVS1DcvWtglK/4ieEUUIru5LiRic9WNA050= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784038267; c=relaxed/simple; bh=dcW3cE/hf1kJ9qjd8UMyUI+ViIp+bc438j1ReqR2QMM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=K2W68xMzJAKJehGx27pP88YHTNlyxVkB34wUmtkk4seWV4oFUMh2J+rZSPDu7esgzHahmKTPLzWcXAs5u32K47hW+OVziiZPWGWXXObQdrb+TT0psrxt51JtL49sgdXw/LX0//5azigRUi6g/B7u3TtyV6mUFhvd1O1V1rKo4Hc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=l/PQUjVb; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="l/PQUjVb" Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id EE6821F00A3D; Tue, 14 Jul 2026 14:11:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1784038263; bh=q2BraDXQ6vRiKOdM+Y/8dY3JbsOVKeBr4Q5jDnH6B84=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=l/PQUjVbsadM2pmHnve5IhmoQgHo9kk8wTU+WcAJbVrMs/Yl3fLyvHk4wmIkFRlC8 DZZ/SQ2pAYfIAzZamDG9WBKKI+rATTPPDEfUDIkBozn9M2TkVzM0c1uHhW2Xb8mx5K C7NmE4+TxOsLpg+1jv+gOdPRyqrfTLm5Y+tjgIBp5ne2/Jbc39ka2pICPEkk7//4qG yPhdunzoSKSiK+S+xA/vvwUywffFmPiHPoDZTJRBAmbONSxJIHtnMSF1xKnKclr4hm 7r4zMcY40eiIkcrIH0je8JHZX25sF8I9YCv6n/u5dHwaHAD/UUQ2Df3NIVAxBEnvlv MTnAvc4CqZVrA== Date: Tue, 14 Jul 2026 16:10:48 +0200 From: Nicolas Schier To: Sergei Litvin Cc: miguel.ojeda.sandonis@gmail.com, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Miguel Ojeda , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , Onur =?iso-8859-1?Q?=D6zkan?= , nathan@kernel.org Subject: Re: [PATCH v4] scripts/tags.sh: Add support for rust source files Message-ID: Mail-Followup-To: Sergei Litvin , miguel.ojeda.sandonis@gmail.com, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Miguel Ojeda , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , Onur =?iso-8859-1?Q?=D6zkan?= , nathan@kernel.org References: <20260714122441.78158-1-litvindev@gmail.com> <20260714125259.78824-1-litvindev@gmail.com> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260714125259.78824-1-litvindev@gmail.com> On Tue, Jul 14, 2026 at 02:52:59PM +0200, Sergei Litvin wrote: > When executing the command `make cscope`, the `cscope.files` file generated > by it includes only filenames with the extensions *.h, *.c, *.S and not includes > filenames with *.rs extensions. > > To fix this, modify the functions `find_arch_sources()`, > `find_arch_include_sources()`, `find_include_sources()`, and > `find_other_sources()` so that they can accept an unlimited number of filename > patterns as parameters for the search. Add the `setup_name_pattern()` function > to convert these filename pattern parameters into a list of parameters that can > be passed to the `find` utility via the new `pattern` variable. > > Cc: Miguel Ojeda > Cc: Boqun Feng > Cc: Gary Guo > Cc: Björn Roy Baron > Cc: Benno Lossin > Cc: Andreas Hindborg > Cc: Alice Ryhl > Cc: Trevor Gross > Cc: Danilo Krummrich > Cc: Daniel Almeida > Cc: Tamir Duberstein > Cc: Alexandre Courbot > Cc: Onur Özkan > Cc: nsc@kernel.org > Cc: nathan@kernel.org > Signed-off-by: Sergei Litvin > > --- > > This is the second part of this patch: > https://lore.kernel.org/lkml/20260602121521.11650-1-litvindev@gmail.com/ > > which I have split into two parts, as suggested by Nicolas Schier here: > https://lore.kernel.org/lkml/akVkIrcpNxZrrfii@levanger/ > > Changes since V3: > https://lore.kernel.org/lkml/20260714122441.78158-1-litvindev@gmail.com/ > > - Fixed list of "Cc:" tags > > Changes since V2: > https://lore.kernel.org/lkml/20260714083709.69517-1-litvindev@gmail.com/ > > as suggested by Miguel Ojeda here: > https://lore.kernel.org/lkml/CANiq72k0RbkWk=8hiNzHUmFWr=6OA2DBHAUew4OfZb_Umb=6hA@mail.gmail.com/ > > - Remove "Cc: stable@vger.kernel.org" tag, because this commit introduces a new > feature. > > Changes since V1: > https://lore.kernel.org/lkml/20260705175957.4672-1-litvindev@gmail.com/ > > as suggested by Miguel Ojeda here: > https://lore.kernel.org/lkml/CANiq72kHbVQfNrum5D2a5sCd3mFQHNtigrQxP1WW=YcggxA=WQ@mail.gmail.com/ > > - Add "Cc: stable@vger.kernel.org" tag > - Add missed "Signed-off-by:" tag > --- > scripts/tags.sh | 40 +++++++++++++++++++++++++++++++--------- > 1 file changed, 31 insertions(+), 9 deletions(-) > Tested-by: Nicolas Schier Reviewed-by: Nicolas Schier -- Nicolas