diff mbox series

[RT] time: Properly initialize nohz_full_kick_work

Message ID 20200416103114.nf5ghqw5tmwyofzl@linutronix.de
State New
Headers show
Series [RT] time: Properly initialize nohz_full_kick_work | expand

Commit Message

Sebastian Andrzej Siewior April 16, 2020, 10:31 a.m. UTC
The ->flags member is of atomic_t type, use the proper initialisation
method.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 kernel/time/tick-sched.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index b568947dc90e5..fc62dcbed7429 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -245,7 +245,7 @@  static void nohz_full_kick_func(struct irq_work *work)
 
 static DEFINE_PER_CPU(struct irq_work, nohz_full_kick_work) = {
 	.func = nohz_full_kick_func,
-	.flags = IRQ_WORK_HARD_IRQ,
+	.flags = ATOMIC_INIT(IRQ_WORK_HARD_IRQ),
 };
 
 /*