include/linux/notifier.h: SRCU: fix ctags 09/290009/1
authorSam Protsenko <semen.protsenko@linaro.org>
Fri, 2 Nov 2018 22:47:53 +0000 (15:47 -0700)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 16 Mar 2023 10:47:07 +0000 (19:47 +0900)
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 expansion.  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.

Link: http://lkml.kernel.org/r/20181030202808.28027-1-semen.protsenko@linaro.org
Fixes: 9c80172b902d ("kernel/SRCU: provide a static initializer")
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[sw0312.kim: backport upstream commit 94e297c50b52]

Change-Id: I151a20cbdf616fba7671ee805459942f48957c9f

include/linux/notifier.h

index babe5b9..d3634ea 100644 (file)
@@ -120,8 +120,7 @@ extern void srcu_init_notifier_head(struct srcu_notifier_head *nh);
                RAW_NOTIFIER_INIT(name)
 
 #define _SRCU_NOTIFIER_HEAD(name, mod)                         \
-       static DEFINE_PER_CPU(struct srcu_struct_array,         \
-                       name##_head_srcu_array);                \
+       static DEFINE_PER_CPU(struct srcu_struct_array, name##_head_srcu_array); \
        mod struct srcu_notifier_head name =                    \
                        SRCU_NOTIFIER_INIT(name, name##_head_srcu_array)