kernel/SRCU: Fix ctags
PATCH 1/1 kernel/SRCU: Fix ctags
ctags indexing ("make tags" command) throws this warning:
ctags: Warning: include/linux/notifier.h:125:
null expansion of name pattern "\1"
This is the result of DEFINE_PER_CPU() macro exapansion. Fix that by getting rid of line break.
Similar fix was already done in commit 25528213fe9f ("tags: Fix DEFINE_PER_CPU expansions"), but this one probably wasn't noticed.
--- include/linux/notifier.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/notifier.h +1 -2
@@ -122,8 +122,7 @@ extern void srcu_init_notifier_head(struct srcu_notifier_head *nh);#ifdef CONFIG_TREE_SRCU #define _SRCU_NOTIFIER_HEAD (name, mod) \ - static DEFINE_PER_CPU(struct srcu_data, \ - name##_head_srcu_data); \ + static DEFINE_PER_CPU(struct srcu_data, name##_head_srcu_data); \ mod struct srcu_notifier_head name = \ SRCU_NOTIFIER_INIT(name, name##_head_srcu_data)
Signature · 1 line
2.18.0
Hi guys,
It's been a while since I sent this one. Can we please merge it if there is no objections?
Thanks.
Quoted 33 lines · Sam Protsenko
ctags indexing ("make tags" command) throws this warning:
ctags: Warning:
include/linux/notifier.h:125:
null expansion of name pattern "\1"This is the result of
DEFINE_PER_CPU()macro exapansion. Fix that by getting rid of line break.Similar fix was already done in commit
25528213fe9f("tags: FixDEFINE_PER_CPUexpansions"), but this one probably wasn't noticed.Signed-off-by Sam Protsenko <[email protected]>--- include/linux/notifier.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)include/linux/notifier.h +1
-3@@ -122,8 +122,7 @@ extern void srcu_init_notifier_head(struct srcu_notifier_head *nh);#ifdef CONFIG_TREE_SRCU #define _SRCU_NOTIFIER_HEAD (name, mod) \ - static DEFINE_PER_CPU(struct srcu_data, \ - name##_head_srcu_data); \ + static DEFINE_PER_CPU(struct srcu_data, name##_head_srcu_data); \ mod struct srcu_notifier_head name = \ SRCU_NOTIFIER_INIT(name, name##_head_srcu_data) --2.18.0