* [PATCH] kernel/workqueue.c: fix DEFINE_PER_CPU_SHARED_ALIGNED expansion
@ 2024-09-11 5:07 Baoquan He
2024-09-11 18:11 ` Tejun Heo
0 siblings, 1 reply; 2+ messages in thread
From: Baoquan He @ 2024-09-11 5:07 UTC (permalink / raw)
To: linux-kernel; +Cc: tj, jiangshanlai, peterz, akpm, Baoquan He
Make tags always produces below annoying warnings:
ctags: Warning: kernel/workqueue.c:470: null expansion of name pattern "\1"
ctags: Warning: kernel/workqueue.c:474: null expansion of name pattern "\1"
ctags: Warning: kernel/workqueue.c:478: null expansion of name pattern "\1"
In commit 25528213fe9f ("tags: Fix DEFINE_PER_CPU expansions"), codes in
places have been adjusted including cpu_worker_pools definition. I noticed
in commit 4cb1ef64609f ("workqueue: Implement BH workqueues to eventually
replace tasklets"), cpu_worker_pools definition was unfolded back. Not
sure if it was intentionally done or ignored carelessly.
Makes change to mute them specifically.
Signed-off-by: Baoquan He <bhe@redhat.com>
---
- If this is not expected, please ignore it.
kernel/workqueue.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index e7b005ff3750..10ea9d1e65ad 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -476,16 +476,13 @@ static bool wq_debug_force_rr_cpu = false;
module_param_named(debug_force_rr_cpu, wq_debug_force_rr_cpu, bool, 0644);
/* to raise softirq for the BH worker pools on other CPUs */
-static DEFINE_PER_CPU_SHARED_ALIGNED(struct irq_work [NR_STD_WORKER_POOLS],
- bh_pool_irq_works);
+static DEFINE_PER_CPU_SHARED_ALIGNED(struct irq_work [NR_STD_WORKER_POOLS], bh_pool_irq_works);
/* the BH worker pools */
-static DEFINE_PER_CPU_SHARED_ALIGNED(struct worker_pool [NR_STD_WORKER_POOLS],
- bh_worker_pools);
+static DEFINE_PER_CPU_SHARED_ALIGNED(struct worker_pool [NR_STD_WORKER_POOLS], bh_worker_pools);
/* the per-cpu worker pools */
-static DEFINE_PER_CPU_SHARED_ALIGNED(struct worker_pool [NR_STD_WORKER_POOLS],
- cpu_worker_pools);
+static DEFINE_PER_CPU_SHARED_ALIGNED(struct worker_pool [NR_STD_WORKER_POOLS], cpu_worker_pools);
static DEFINE_IDR(worker_pool_idr); /* PR: idr of all pools */
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kernel/workqueue.c: fix DEFINE_PER_CPU_SHARED_ALIGNED expansion
2024-09-11 5:07 [PATCH] kernel/workqueue.c: fix DEFINE_PER_CPU_SHARED_ALIGNED expansion Baoquan He
@ 2024-09-11 18:11 ` Tejun Heo
0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2024-09-11 18:11 UTC (permalink / raw)
To: Baoquan He; +Cc: linux-kernel, jiangshanlai, peterz, akpm
On Wed, Sep 11, 2024 at 01:07:28PM +0800, Baoquan He wrote:
> Make tags always produces below annoying warnings:
>
> ctags: Warning: kernel/workqueue.c:470: null expansion of name pattern "\1"
> ctags: Warning: kernel/workqueue.c:474: null expansion of name pattern "\1"
> ctags: Warning: kernel/workqueue.c:478: null expansion of name pattern "\1"
>
> In commit 25528213fe9f ("tags: Fix DEFINE_PER_CPU expansions"), codes in
> places have been adjusted including cpu_worker_pools definition. I noticed
> in commit 4cb1ef64609f ("workqueue: Implement BH workqueues to eventually
> replace tasklets"), cpu_worker_pools definition was unfolded back. Not
> sure if it was intentionally done or ignored carelessly.
>
> Makes change to mute them specifically.
>
> Signed-off-by: Baoquan He <bhe@redhat.com>
Applied to wq/for-6.12.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-11 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-11 5:07 [PATCH] kernel/workqueue.c: fix DEFINE_PER_CPU_SHARED_ALIGNED expansion Baoquan He
2024-09-11 18:11 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox