diff options
| author | Sergei Litvin <litvindev@gmail.com> | 2026-07-14 14:52:59 +0200 |
|---|---|---|
| committer | Nicolas Schier <nsc@kernel.org> | 2026-08-05 14:31:55 +0200 |
| commit | 2ca47eed701b41c2962429c4dfe2134c49f7a1b3 (patch) | |
| tree | d5a6e5b7743145a6808373724d9a3dbe394318ce /scripts/basic | |
| parent | a9b93c34625a27bed5dc0f80ee2a359ceb955172 (diff) | |
| download | linux-next-2ca47eed701b41c2962429c4dfe2134c49f7a1b3.tar.gz linux-next-2ca47eed701b41c2962429c4dfe2134c49f7a1b3.zip | |
scripts/tags.sh: Add support for rust source files
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.
Signed-off-by: Sergei Litvin <litvindev@gmail.com>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Tested-by: Nicolas Schier <n.schier@fritz.com>
Reviewed-by: Nicolas Schier <n.schier@fritz.com>
Link: https://patch.msgid.link/20260714125259.78824-1-litvindev@gmail.com
[nsc: cleaned-up commit message line breaks and removed cc trailers]
Signed-off-by: Nicolas Schier <nsc@kernel.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
