kbuild: ignore cache modifiers for generating the tags files
authorUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Tue, 8 Jan 2008 14:16:24 +0000 (15:16 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 28 Jan 2008 22:14:38 +0000 (23:14 +0100)
With this patch I'm able to find the definition of _xmit_lock defined in
include/linux/netdevice.h as follows:

struct net_device {
...
spinlock_t _xmit_lock ____cacheline_aligned_in_smp;
}

Otherwise this counts as definition of ____cacheline_aligned_in_smp.

Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Makefile

index 953359ed9871841247b59c788f368dda04bb0cda..698dfc6ba65c5ba95f969b17f405e5d71d6cbd33 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1378,6 +1378,7 @@ define xtags
        if $1 --version 2>&1 | grep -iq exuberant; then \
            $(all-sources) | xargs $1 -a \
                -I __initdata,__exitdata,__acquires,__releases \
+               -I __read_mostly,____cacheline_aligned,____cacheline_aligned_in_smp,____cacheline_internodealigned_in_smp \
                -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \
                --extra=+f --c-kinds=+px \
                --regex-asm='/^ENTRY\(([^)]*)\).*/\1/'; \