Re: [PATCH v4] scripts/tags.sh: Add support for rust source files
Nicolas Schier <[email protected]> Tue, 14 Jul 2026 16:10:48 +0200
| Newsgroups | org.kernel.vger.linux-kbuild,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <alZDaH0CN-GBLKPj@levanger> |
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 <[email protected]> > Cc: Boqun Feng <[email protected]> > Cc: Gary Guo <[email protected]> > Cc: Björn Roy Baron <[email protected]> > Cc: Benno Lossin <[email protected]> > Cc: Andreas Hindborg <[email protected]> > Cc: Alice Ryhl <[email protected]> > Cc: Trevor Gross <[email protected]> > Cc: Danilo Krummrich <[email protected]> > Cc: Daniel Almeida <[email protected]> > Cc: Tamir Duberstein <[email protected]> > Cc: Alexandre Courbot <[email protected]> > Cc: Onur Ãzkan <[email protected]> > Cc: [email protected] > Cc: [email protected] > Signed-off-by: Sergei Litvin <[email protected]> > > --- > > This is the second part of this patch: > https://lore.kernel.org/lkml/[email protected]/ > > 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/[email protected]/ > > - Fixed list of "Cc:" tags > > Changes since V2: > https://lore.kernel.org/lkml/[email protected]/ > > as suggested by Miguel Ojeda here: > https://lore.kernel.org/lkml/CANiq72k0RbkWk=8hiNzHUmFWr=6OA2DBHAUew4OfZb_Umb=6hA@mail.gmail.com/ > > - Remove "Cc: [email protected]" tag, because this commit introduces a new > feature. > > Changes since V1: > https://lore.kernel.org/lkml/[email protected]/ > > as suggested by Miguel Ojeda here: > https://lore.kernel.org/lkml/CANiq72kHbVQfNrum5D2a5sCd3mFQHNtigrQxP1WW=YcggxA=WQ@mail.gmail.com/ > > - Add "Cc: [email protected]" tag > - Add missed "Signed-off-by:" tag > --- > scripts/tags.sh | 40 +++++++++++++++++++++++++++++++--------- > 1 file changed, 31 insertions(+), 9 deletions(-) > Tested-by: Nicolas Schier <[email protected]> Reviewed-by: Nicolas Schier <[email protected]> -- Nicolas