Re: [PATCH v4] scripts/tags.sh: Add support for rust source files

From: Nicolas Schier

Date: Tue Jul 14 2026 - 10:20:33 EST


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 <ojeda@xxxxxxxxxx>
> Cc: Boqun Feng <boqun@xxxxxxxxxx>
> Cc: Gary Guo <gary@xxxxxxxxxxx>
> Cc: Björn Roy Baron <bjorn3_gh@xxxxxxxxxxxxxx>
> Cc: Benno Lossin <lossin@xxxxxxxxxx>
> Cc: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
> Cc: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Cc: Trevor Gross <tmgross@xxxxxxxxx>
> Cc: Danilo Krummrich <dakr@xxxxxxxxxx>
> Cc: Daniel Almeida <daniel.almeida@xxxxxxxxxxxxx>
> Cc: Tamir Duberstein <tamird@xxxxxxxxxx>
> Cc: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Cc: Onur Özkan <work@xxxxxxxxxxxxx>
> Cc: nsc@xxxxxxxxxx
> Cc: nathan@xxxxxxxxxx
> Signed-off-by: Sergei Litvin <litvindev@xxxxxxxxx>
>
> ---
>
> This is the second part of this patch:
> https://lore.kernel.org/lkml/20260602121521.11650-1-litvindev@xxxxxxxxx/
>
> 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@xxxxxxxxx/
>
> - Fixed list of "Cc:" tags
>
> Changes since V2:
> https://lore.kernel.org/lkml/20260714083709.69517-1-litvindev@xxxxxxxxx/
>
> as suggested by Miguel Ojeda here:
> https://lore.kernel.org/lkml/CANiq72k0RbkWk=8hiNzHUmFWr=6OA2DBHAUew4OfZb_Umb=6hA@xxxxxxxxxxxxxx/
>
> - Remove "Cc: stable@xxxxxxxxxxxxxxx" tag, because this commit introduces a new
> feature.
>
> Changes since V1:
> https://lore.kernel.org/lkml/20260705175957.4672-1-litvindev@xxxxxxxxx/
>
> as suggested by Miguel Ojeda here:
> https://lore.kernel.org/lkml/CANiq72kHbVQfNrum5D2a5sCd3mFQHNtigrQxP1WW=YcggxA=WQ@xxxxxxxxxxxxxx/
>
> - Add "Cc: stable@xxxxxxxxxxxxxxx" tag
> - Add missed "Signed-off-by:" tag
> ---
> scripts/tags.sh | 40 +++++++++++++++++++++++++++++++---------
> 1 file changed, 31 insertions(+), 9 deletions(-)
>

Tested-by: Nicolas Schier <n.schier@xxxxxxxxx>
Reviewed-by: Nicolas Schier <n.schier@xxxxxxxxx>


--
Nicolas