Skip to contentSkip to conversation

kernel/SRCU: Fix ctags

PATCH Superseded Sam Protsenko 3 participants 5 messages Oct 29, 2018 – Oct 30, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 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
index f35c7bf76143..0096a05395e3 100644
@@ -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.19.1
#1 lore raw

Hi Greg,

Quoted 5 lines · Sam Protsenko

ctags indexing ("make tags" command) throws this warning:

ctags: Warning: include/linux/notifier.h:125:
null expansion of name pattern "\1"

Quoted 8 lines

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.

---

This one was sent some time ago, but there wasn't any response. Can you please review it and merge if applicable?

Thanks!

Quoted 20 lines
 include/linux/notifier.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/notifier.h +1 -3
index f35c7bf76143..0096a05395e3 100644
@@ -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.19.1

#3 lore raw
In reply to Sam Protsenko
Quoted 11 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: Fix DEFINE_PER_CPU expansions"), but this one probably wasn't noticed.

Why not to add Fixes tag here as well?

Quoted 23 lines
---
 include/linux/notifier.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/notifier.h +1 -3
index f35c7bf76143..0096a05395e3 100644
@@ -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.19.1

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
In reply to Sam Protsenko
Quoted 12 lines · Sam Protsenko

Hi Greg,

Quoted 8 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.

Quoted 8 lines
Quoted 5 lines

Similar fix was already done in commit 25528213fe9f ("tags: Fix DEFINE_PER_CPU expansions"), but this one probably wasn't noticed.

---

This one was sent some time ago, but there wasn't any response. Can you please review it and merge if applicable?

As before, why ask me?

thanks,

greg k-h

#4 lore raw
In reply to Andy Shevchenko
Quoted 8 lines · Andy Shevchenko
Quoted 6 lines · Sam Protsenko

ctags indexing ("make tags" command) throws this warning:

ctags: Warning: include/linux/notifier.h:125:
null expansion of name pattern "\1"

Quoted 8 lines
Quoted 5 lines

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.

Why not to add Fixes tag here as well?

Will do, thanks, Andy!

Quoted 28 lines
Quoted 21 lines
---
 include/linux/notifier.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/notifier.h +1 -3
index f35c7bf76143..0096a05395e3 100644
@@ -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)
 
--
Quoted 2 lines

2.19.1

--
With Best Regards,
Andy Shevchenko