summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.com>2015-10-14 10:55:04 +0200
committerMichal Marek <mmarek@suse.com>2016-01-05 22:10:39 +0100
commitc26206f23a19af299540880ccf80e5a7af0f7db6 (patch)
tree073d1f5fd632087cb1de9605bbeeda240c98d9ed /scripts
parentaic7xxx: Avoid name collision with <linux/list.h> (diff)
downloadlinux-c26206f23a19af299540880ccf80e5a7af0f7db6.tar.xz
linux-c26206f23a19af299540880ccf80e5a7af0f7db6.zip
tags: Fix erroneous pattern match in a comment
Apparently, ctags applies the rules before deleting comments: ctags: Warning: include/linux/completion.h:22: null expansion of name pattern "\2" Work around this particular case by requiring the group to contain at least one character. Leave the other patters as they are, until a better solution is found. Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tags.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh
index 25e30c30d1ad..2263f35be490 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -205,7 +205,7 @@ exuberant()
--regex-c='/PCI_OP_WRITE\((\w*).*[1-4]\)/pci_bus_write_config_\1/' \
--regex-c='/DEFINE_(MUTEX|SEMAPHORE|SPINLOCK)\((\w*)/\2/v/' \
--regex-c='/DEFINE_(RAW_SPINLOCK|RWLOCK|SEQLOCK)\((\w*)/\2/v/' \
- --regex-c='/DECLARE_(RWSEM|COMPLETION)\((\w*)/\2/v/' \
+ --regex-c='/DECLARE_(RWSEM|COMPLETION)\((\w+)/\2/v/' \
--regex-c='/DECLARE_BITMAP\((\w*)/\1/v/' \
--regex-c='/(^|\s)(|L|H)LIST_HEAD\((\w*)/\3/v/' \
--regex-c='/(^|\s)RADIX_TREE\((\w*)/\2/v/' \