mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
The IRQ callbacks return c_uint. C calls them through irq_handler_t, which returns enum irqreturn. kCFI encodes enum types by name even with integer normalization, so the type ids never match and every call fails the CFI check. Generate irqreturn as a newtype with a cfi_encoding, as is done for lru_status, and return bindings::irqreturn_t from the callbacks. Fixes:0851d34a8c("rust: irq: add support for non-threaded IRQs and handlers") Fixes:135d405232("rust: irq: add support for threaded IRQs and handlers") Signed-off-by: Sami Tolvanen <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Reviewed-by: Gary Guo <[email protected]> Acked-by: Danilo Krummrich <[email protected]> Cc: [email protected] Link: https://patch.msgid.link/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>