Messages in this thread | | | Date | Mon, 17 Dec 2018 13:09:14 -0800 | From | Matthew Wilcox <> | Subject | Re: [PATCH] scripts/tags: Add more declarations |
| |
On Mon, Dec 17, 2018 at 03:41:46PM +0300, Kirill Tkhai wrote: > - '/\<DEFINE_\(MUTEX\|SEMAPHORE\|SPINLOCK\)(\([[:alnum:]_]*\)/\2/v/' > + '/\<DEFINE_\(RT_MUTEX\|MUTEX\|SEMAPHORE\|SPINLOCK\)(\([[:alnum:]_]*\)/\2/v/' > '/\<DEFINE_\(RAW_SPINLOCK\|RWLOCK\|SEQLOCK\)(\([[:alnum:]_]*\)/\2/v/'
I don't know anything about regexes this complex or tags, but couldn't this be '/\<DEFINE_\([[:upper:]_]\)(\([[:alnum:]_]*\)/\2/v/' to catch all DEFINE_THINGIES?
| |