Skip to content

Commit 0aedf7a

Browse files
RichardWeiYanggregkh
authored andcommitted
scripts/tags.sh: add local annotation
Commit 'f81b1be40c44 tags: include headers before source files' introduce two local variables. Let's add local annotation to make it obvious. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Link: https://lore.kernel.org/r/20231229030654.17474-2-richard.weiyang@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f9fefa9 commit 0aedf7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/tags.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ fi
5050
find_arch_sources()
5151
{
5252
for i in $archincludedir; do
53-
prune="$prune ( -path $i ) -prune -o"
53+
local prune="$prune ( -path $i ) -prune -o"
5454
done
5555
find ${tree}arch/$1 $ignore $prune -name "$2" -not -type l -print;
5656
}
5757

5858
# find sources in arch/$1/include
5959
find_arch_include_sources()
6060
{
61-
include=$(find ${tree}arch/$1/ -name include -type d -print);
61+
local include=$(find ${tree}arch/$1/ -name include -type d -print);
6262
if [ -n "$include" ]; then
6363
archincludedir="$archincludedir $include"
6464
find $include $ignore -name "$2" -not -type l -print;

0 commit comments

Comments
 (0)