]> www.infradead.org Git - users/hch/misc.git/commit
genirq/migration: Use irqd_get_parent_data() in irq_force_complete_move()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 4 Apr 2025 14:51:19 +0000 (16:51 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 4 Apr 2025 15:08:36 +0000 (17:08 +0200)
commit9b305678c55dd45044aa565fee04f8d88382bc4d
tree65ff54381430ea6f3da0804fe0629b046af09af3
parentd2705d33885e3a19f727dff2521fb7d5b1fc5cda
genirq/migration: Use irqd_get_parent_data() in irq_force_complete_move()

Frank reported, that the common irq_force_complete_move() breaks the out of
tree build of ia64. The reason is that ia64 uses the migration code, but
does not have hierarchical interrupt domains enabled.

This went unnoticed in mainline as both x86 and RISC-V have hierarchical
domains enabled. Not that it matters for mainline, but it's still
inconsistent.

Use irqd_get_parent_data() instead of accessing the parent_data field
directly. The helper returns NULL when hierarchical domains are disabled
otherwise it accesses the parent_data field of the domain.

No functional change.

Fixes: 751dc837dabd ("genirq: Introduce common irq_force_complete_move() implementation")
Reported-by: Frank Scheiner <frank.scheiner@web.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Frank Scheiner <frank.scheiner@web.de>
Link: https://lore.kernel.org/all/87h634ugig.ffs@tglx
kernel/irq/migration.c