Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755025AbdLOLDL (ORCPT ); Fri, 15 Dec 2017 06:03:11 -0500 Received: from rnd-relay.smtp.broadcom.com ([192.19.229.170]:38132 "EHLO rnd-relay.smtp.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753882AbdLOLDI (ORCPT ); Fri, 15 Dec 2017 06:03:08 -0500 From: Arend van Spriel To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Robert Jarzmik , Arend van Spriel Subject: [PATCH] scripts: tags: change find_other_sources() for include folders Date: Fri, 15 Dec 2017 12:02:48 +0100 Message-Id: <1513335768-7852-1-git-send-email-arend.vanspriel@broadcom.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1036 Lines: 34 The current find done in find_other_sources() excludes folders 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 the find_other_sources() function to include those using the -path option. Signed-off-by: Arend van Spriel --- scripts/tags.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index d23dcbf..78e546f 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -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; } -- 1.9.1