* [PATCH 1/1] workqueue: use NR_STD_WORKER_POOLS instead of hardcoded value [not found] <CGME20260407034221epcas5p333b582f91ee9c72f55cba792b750aa1f@epcas5p3.samsung.com> @ 2026-04-07 3:42 ` Maninder Singh 2026-04-07 18:18 ` Tejun Heo 0 siblings, 1 reply; 2+ messages in thread From: Maninder Singh @ 2026-04-07 3:42 UTC (permalink / raw) To: tj, jiangshanlai; +Cc: linux-kernel, Maninder Singh use NR_STD_WORKER_POOLS for irq_work_fns[] array definition. NR_STD_WORKER_POOLS is also 2, but better to use MACRO. Initialization loop for_each_bh_worker_pool() also uses same MACRO. Signed-off-by: Maninder Singh <maninder1.s@samsung.com> --- kernel/workqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 08b1c786b463..16b65a7f1ac2 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -7932,7 +7932,7 @@ void __init workqueue_init_early(void) { struct wq_pod_type *pt = &wq_pod_types[WQ_AFFN_SYSTEM]; int std_nice[NR_STD_WORKER_POOLS] = { 0, HIGHPRI_NICE_LEVEL }; - void (*irq_work_fns[2])(struct irq_work *) = { bh_pool_kick_normal, + void (*irq_work_fns[NR_STD_WORKER_POOLS])(struct irq_work *) = { bh_pool_kick_normal, bh_pool_kick_highpri }; int i, cpu; -- 2.34.1 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] workqueue: use NR_STD_WORKER_POOLS instead of hardcoded value 2026-04-07 3:42 ` [PATCH 1/1] workqueue: use NR_STD_WORKER_POOLS instead of hardcoded value Maninder Singh @ 2026-04-07 18:18 ` Tejun Heo 0 siblings, 0 replies; 2+ messages in thread From: Tejun Heo @ 2026-04-07 18:18 UTC (permalink / raw) To: Maninder Singh; +Cc: jiangshanlai, linux-kernel Hello, On Tue, Apr 7, 2026 at 09:12:15AM +0530, Maninder Singh wrote: > use NR_STD_WORKER_POOLS for irq_work_fns[] array definition. > NR_STD_WORKER_POOLS is also 2, but better to use MACRO. > Initialization loop for_each_bh_worker_pool() also uses same MACRO. Applied to wq/for-7.1 with a small formatting tweak so the longer declaration doesn't leave the initializer misaligned: void (*irq_work_fns[NR_STD_WORKER_POOLS])(struct irq_work *) = { bh_pool_kick_normal, bh_pool_kick_highpri }; Thanks. -- tejun ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-07 18:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20260407034221epcas5p333b582f91ee9c72f55cba792b750aa1f@epcas5p3.samsung.com>
2026-04-07 3:42 ` [PATCH 1/1] workqueue: use NR_STD_WORKER_POOLS instead of hardcoded value Maninder Singh
2026-04-07 18:18 ` Tejun Heo
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox