History

kernel/workqueue.c: fix DEFINE_PER_CPU_SHARED_ALIGNED expansion

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.

Baoquan He committed 2 years ago

Commit b4722b81 parent d1562631 file · +3 −6Browse files

Showing the changes to kernel/workqueue.c (1 of 1 file). Show all

Unified · Split

kernel/workqueue.c+3−6
@@ -477,16 +477,13 @@ static bool wq_debug_force_rr_cpu = false; · 476 unmodified lines
477module_param_named(debug_force_rr_cpu, wq_debug_force_rr_cpu, bool, 0644);477module_param_named(debug_force_rr_cpu, wq_debug_force_rr_cpu, bool, 0644);
478 478
479/* to raise softirq for the BH worker pools on other CPUs */479/* to raise softirq for the BH worker pools on other CPUs */
480static DEFINE_PER_CPU_SHARED_ALIGNED(struct irq_work [NR_STD_WORKER_POOLS],480static DEFINE_PER_CPU_SHARED_ALIGNED(struct irq_work [NR_STD_WORKER_POOLS], bh_pool_irq_works);
481 bh_pool_irq_works);
482 481
483/* the BH worker pools */482/* the BH worker pools */
484static DEFINE_PER_CPU_SHARED_ALIGNED(struct worker_pool [NR_STD_WORKER_POOLS],483static DEFINE_PER_CPU_SHARED_ALIGNED(struct worker_pool [NR_STD_WORKER_POOLS], bh_worker_pools);
485 bh_worker_pools);
486 484
487/* the per-cpu worker pools */485/* the per-cpu worker pools */
488static DEFINE_PER_CPU_SHARED_ALIGNED(struct worker_pool [NR_STD_WORKER_POOLS],486static DEFINE_PER_CPU_SHARED_ALIGNED(struct worker_pool [NR_STD_WORKER_POOLS], cpu_worker_pools);
489 cpu_worker_pools);
490 487
491static DEFINE_IDR(worker_pool_idr); /* PR: idr of all pools */488static DEFINE_IDR(worker_pool_idr); /* PR: idr of all pools */
492 489