Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=dd7e54ade8f515ec38d5dc2129705352e2296f8e
Commit:     dd7e54ade8f515ec38d5dc2129705352e2296f8e
Parent:     2a11665945d510e1a4df8dc44dc3668b01945ade
Author:     Don Mullis <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 4 10:14:52 2007 -0800
Committer:  Sam Ravnborg <[EMAIL PROTECTED]>
CommitDate: Wed May 2 20:58:09 2007 +0200

    kbuild: move tags from ARCH and include/ ahead of drivers
    
    Move tags extracted from the ARCH and include/ sub-trees ahead of
    those from device drivers, so that the former will appear first
    during searches.
    
    Saves user time during interactive searches for certain patterns
    that happen to find unwanted matches in driver files.
    
    Example in emacs:
         "M-x find-tag PAGE_SIZE"
         "M-1 M-." (repeated until definition from asm-i386/page.h appears)
    
    Signed-off-by: Don Mullis <[EMAIL PROTECTED]>
    Signed-off-by: Sam Ravnborg <[EMAIL PROTECTED]>
---
 Makefile |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 001a473..92cbc05 100644
--- a/Makefile
+++ b/Makefile
@@ -1278,10 +1278,7 @@ endif
 ALLSOURCE_ARCHS := $(ARCH)
 
 define find-sources
-        ( find $(__srctree) $(RCS_FIND_IGNORE) \
-              \( -name include -o -name arch \) -prune -o \
-              -name $1 -print; \
-         for ARCH in $(ALLSOURCE_ARCHS) ; do \
+        ( for ARCH in $(ALLSOURCE_ARCHS) ; do \
               find $(__srctree)arch/$${ARCH} $(RCS_FIND_IGNORE) \
                    -name $1 -print; \
          done ; \
@@ -1295,7 +1292,11 @@ define find-sources
                    -name $1 -print; \
          done ; \
          find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \
-              -name $1 -print )
+              -name $1 -print; \
+         find $(__srctree) $(RCS_FIND_IGNORE) \
+              \( -name include -o -name arch \) -prune -o \
+              -name $1 -print; \
+         )
 endef
 
 define all-sources
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to