From: Wei Yang <richard.weiyang@gmail.com>
To: gregkh@linuxfoundation.org, masahiroy@kernel.org, nicolas@fjasle.eu
Cc: linux-kernel@vger.kernel.org,
Wei Yang <richard.weiyang@gmail.com>,
Jike Song <albcamus@gmail.com>
Subject: [PATCH 4/4] scripts/tags.sh: remove find_sources
Date: Fri, 29 Dec 2023 03:06:54 +0000 [thread overview]
Message-ID: <20231229030654.17474-4-richard.weiyang@gmail.com> (raw)
In-Reply-To: <20231229030654.17474-1-richard.weiyang@gmail.com>
After commit '4f628248a578 kbuild: reintroduce ALLSOURCE_ARCHS support for
tags/cscope', find_sources only invoke find_arch_sources.
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
CC: Jike Song <albcamus@gmail.com>
---
scripts/tags.sh | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/scripts/tags.sh b/scripts/tags.sh
index 5061ec255291..45568fee0cbb 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -81,11 +81,6 @@ find_other_sources()
-name "$1" -not -type l -print;
}
-find_sources()
-{
- find_arch_sources $1 "$2"
-}
-
all_sources()
{
find_arch_include_sources ${SRCARCH} '*.[chS]'
@@ -95,7 +90,7 @@ all_sources()
find_include_sources '*.[chS]'
for arch in $ALLSOURCE_ARCHS
do
- find_sources $arch '*.[chS]'
+ find_arch_sources $arch '*.[chS]'
done
find_other_sources '*.[chS]'
}
@@ -125,7 +120,7 @@ all_kconfigs()
find ${tree}arch/ -maxdepth 1 $ignore \
-name "Kconfig*" -not -type l -print;
for arch in $ALLSOURCE_ARCHS; do
- find_sources $arch 'Kconfig*'
+ find_arch_sources $arch 'Kconfig*'
done
find_other_sources 'Kconfig*'
}
--
2.34.1
prev parent reply other threads:[~2023-12-29 3:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-29 3:06 [PATCH 1/4] scripts/tags.sh: use more portable -path instead of -wholename Wei Yang
2023-12-29 3:06 ` [PATCH 2/4] scripts/tags.sh: add local annotation Wei Yang
2023-12-29 3:06 ` [PATCH 3/4] scripts/tags.sh: use -n to test archinclude Wei Yang
2023-12-29 3:06 ` Wei Yang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231229030654.17474-4-richard.weiyang@gmail.com \
--to=richard.weiyang@gmail.com \
--cc=albcamus@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=nicolas@fjasle.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®