Skip to content

Commit e3d6e0e

Browse files
committed
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull irq fixes from Thomas Gleixner: "Three trivial commits: - Fix a kerneldoc regression - Export handle_bad_irq to unbreak a driver in next - Add an accessor for the of_node field so refactoring in next does not depend on merge ordering" * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: irqdomain: Add an accessor for the of_node field genirq: Fix handle_bad_irq kerneldoc comment genirq: Export handle_bad_irq
2 parents 5a433f7 + 10abc7d commit e3d6e0e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

include/linux/irqdomain.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ enum {
161161
IRQ_DOMAIN_FLAG_NONCORE = (1 << 16),
162162
};
163163

164+
static inline struct device_node *irq_domain_get_of_node(struct irq_domain *d)
165+
{
166+
return d->of_node;
167+
}
168+
164169
#ifdef CONFIG_IRQ_DOMAIN
165170
struct irq_domain *__irq_domain_add(struct device_node *of_node, int size,
166171
irq_hw_number_t hwirq_max, int direct_max,

kernel/irq/handle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
/**
2424
* handle_bad_irq - handle spurious and unhandled irqs
25-
* @irq: the interrupt number
2625
* @desc: description of the interrupt
2726
*
2827
* Handles spurious and unhandled IRQ's. It also prints a debugmessage.
@@ -35,6 +34,7 @@ void handle_bad_irq(struct irq_desc *desc)
3534
kstat_incr_irqs_this_cpu(desc);
3635
ack_bad_irq(irq);
3736
}
37+
EXPORT_SYMBOL_GPL(handle_bad_irq);
3838

3939
/*
4040
* Special, empty irq handler:

0 commit comments

Comments
 (0)