scripts/tags.sh: add local annotation
authorWei Yang <richard.weiyang@gmail.com>
Fri, 29 Dec 2023 03:06:52 +0000 (03:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jan 2024 16:01:15 +0000 (17:01 +0100)
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>
scripts/tags.sh

index be7970b8b88ad14b29d42975d48dc226117bf913..c088bf4f9aa17d6c372f83a79bfdba0a2499253e 100755 (executable)
@@ -50,7 +50,7 @@ fi
 find_arch_sources()
 {
        for i in $archincludedir; do
-               prune="$prune ( -path $i ) -prune -o"
+               local prune="$prune ( -path $i ) -prune -o"
        done
        find ${tree}arch/$1 $ignore $prune -name "$2" -not -type l -print;
 }
@@ -58,7 +58,7 @@ find_arch_sources()
 # find sources in arch/$1/include
 find_arch_include_sources()
 {
-       include=$(find ${tree}arch/$1/ -name include -type d -print);
+       local include=$(find ${tree}arch/$1/ -name include -type d -print);
        if [ -n "$include" ]; then
                archincludedir="$archincludedir $include"
                find $include $ignore -name "$2" -not -type l -print;