]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
genirq: Remove handle_enforce_irqctx() wrapper
authorThomas Gleixner <tglx@linutronix.de>
Tue, 10 Dec 2024 10:20:45 +0000 (11:20 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 15 Jan 2025 09:56:22 +0000 (10:56 +0100)
Now that it is unconditionally available, remove the wrapper.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20241210101811.561078243@linutronix.de
kernel/irq/internals.h
kernel/irq/irqdesc.c
kernel/irq/resend.c

index a29df4b02a2ed9c580bbaf7db0b8331543cb1a7e..b61fc64c3484400106f871a414e275f4bcadd8ab 100644 (file)
@@ -469,11 +469,6 @@ static inline bool irq_fixup_move_pending(struct irq_desc *desc, bool fclear)
 }
 #endif /* !CONFIG_GENERIC_PENDING_IRQ */
 
-static inline bool handle_enforce_irqctx(struct irq_data *data)
-{
-       return irqd_is_handle_enforce_irqctx(data);
-}
-
 #if !defined(CONFIG_IRQ_DOMAIN) || !defined(CONFIG_IRQ_DOMAIN_HIERARCHY)
 static inline int irq_domain_activate_irq(struct irq_data *data, bool reserve)
 {
index 0253e77fcd9a6629aa8d80be31d0f4f8279cd915..287830739783386f41ad82477ade3ffda679785c 100644 (file)
@@ -708,7 +708,7 @@ int handle_irq_desc(struct irq_desc *desc)
                return -EINVAL;
 
        data = irq_desc_get_irq_data(desc);
-       if (WARN_ON_ONCE(!in_hardirq() && handle_enforce_irqctx(data)))
+       if (WARN_ON_ONCE(!in_hardirq() && irqd_is_handle_enforce_irqctx(data)))
                return -EPERM;
 
        generic_handle_irq_desc(desc);
index b07a2d732ffbcb4e24a1b6cb5c348a157bdc4c45..1b7fa72968bd64a2ae0e1b4e3510705043b8f4cf 100644 (file)
@@ -53,7 +53,7 @@ static int irq_sw_resend(struct irq_desc *desc)
         * Validate whether this interrupt can be safely injected from
         * non interrupt context
         */
-       if (handle_enforce_irqctx(&desc->irq_data))
+       if (irqd_is_handle_enforce_irqctx(&desc->irq_data))
                return -EINVAL;
 
        /*