scripts/tags.sh: Add magic for OFFSET and DEFINE
authorKirill Tkhai <tkhai@yandex.ru>
Sat, 23 Mar 2013 10:58:20 +0000 (14:58 +0400)
committerMichal Marek <mmarek@suse.cz>
Wed, 27 Mar 2013 13:22:03 +0000 (14:22 +0100)
Add rules for definitions which is generally used in asm-offsets files.

Signed-off-by: Kirill V Tkhai <tkhai@yandex.ru>
CC: Michal Marek <mmarek@suse.cz>
CC: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/tags.sh

index 26a87e68afed13fd3aa92a694f8021cdd1a02d10..74f02e4dddd29eca8894fe409984ae525d1e2e96 100755 (executable)
@@ -199,7 +199,9 @@ exuberant()
        --regex-c='/DEFINE_PER_CPU_SHARED_ALIGNED\(([^,]*,\s*)(\w*).*\)/\2/v/' \
        --regex-c='/DECLARE_WAIT_QUEUE_HEAD\((\w*)/\1/v/'               \
        --regex-c='/DECLARE_(TASKLET|WORK|DELAYED_WORK)\((\w*)/\2/v/'   \
-       --regex-c='/DEFINE_PCI_DEVICE_TABLE\((\w*)/\1/v/'
+       --regex-c='/DEFINE_PCI_DEVICE_TABLE\((\w*)/\1/v/'               \
+       --regex-c='/(^\s)OFFSET\((\w*)/\2/v/'                           \
+       --regex-c='/(^\s)DEFINE\((\w*)/\2/v/'
 
        all_kconfigs | xargs $1 -a                              \
        --langdef=kconfig --language-force=kconfig              \