scripts/tags.sh: change find_other_sources() for include directories
PATCH 4/119 scripts/tags.sh: change find_other_sources() for include directories
From: Arend van Spriel <[email protected]>
Subject: scripts/tags.sh: change find_other_sources() for include directories
The current find done in find_other_sources() excludes directories in the kernel tree that are named 'include', eg.:
./security/apparmor/include ./security/selinux/include ./drivers/net/wireless/broadcom/brcm80211/include ./drivers/gpu/drm/amd/acp/include ./drivers/gpu/drm/amd/display/include ./drivers/gpu/drm/amd/include ./drivers/gpu/drm/nouveau/include
This changes the find command in find_other_sources() to include those using the -path option.
Signed-off-by Arend van Spriel <[email protected]>
Cc Robert Jarzmik <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
scripts/tags.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/tags.sh renamed from scripts/tags.sh~scripts-tags-change-find_other_sources-for-include-folders +1 -1
@@ -77,7 +77,7 @@ find_include_sources() find_other_sources() { find ${tree}* $ignore \ - \( -name include -o -name arch -o -name '.tmp_*' \) -prune -o \ + \( -path ${tree}include -o -path ${tree}arch -o -name '.tmp_*' \) -prune -o \ -name "$1" -not -type l -print; }
_