aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-12-06 15:20:20 -0500
committerThomas Gleixner <tglx@linutronix.de>2014-12-07 15:49:45 -0500
commit74faaf7aa64c76b60db0f5c994fd43a46be772ce (patch)
treeaed1314ff9478dc3bdf4194515b17655e7f05015
parent020c312658d61297ffe43b412441c69b1c36fb1b (diff)
genirq: Move irq_chip_write_msi_msg() helper to core
No point to expose this to the world. The only legitimate user is the core code. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Jiang Liu <jiang.liu@linux.intel.com> Cc: Marc Zyngier <marc.zyngier@arm.com>
-rw-r--r--include/linux/irq.h6
-rw-r--r--kernel/irq/msi.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index 8badf34baf0f..33da579d727c 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -461,12 +461,6 @@ extern int irq_chip_set_affinity_parent(struct irq_data *data,
461 bool force); 461 bool force);
462#endif 462#endif
463 463
464static inline void irq_chip_write_msi_msg(struct irq_data *data,
465 struct msi_msg *msg)
466{
467 data->chip->irq_write_msi_msg(data, msg);
468}
469
470/* Handling of unhandled and spurious interrupts: */ 464/* Handling of unhandled and spurious interrupts: */
471extern void note_interrupt(unsigned int irq, struct irq_desc *desc, 465extern void note_interrupt(unsigned int irq, struct irq_desc *desc,
472 irqreturn_t action_ret); 466 irqreturn_t action_ret);
diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c
index f477a2f8ce56..3e18163f336f 100644
--- a/kernel/irq/msi.c
+++ b/kernel/irq/msi.c
@@ -32,6 +32,12 @@ void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg)
32EXPORT_SYMBOL_GPL(get_cached_msi_msg); 32EXPORT_SYMBOL_GPL(get_cached_msi_msg);
33 33
34#ifdef CONFIG_GENERIC_MSI_IRQ_DOMAIN 34#ifdef CONFIG_GENERIC_MSI_IRQ_DOMAIN
35static inline void irq_chip_write_msi_msg(struct irq_data *data,
36 struct msi_msg *msg)
37{
38 data->chip->irq_write_msi_msg(data, msg);
39}
40
35/** 41/**
36 * msi_domain_set_affinity - Generic affinity setter function for MSI domains 42 * msi_domain_set_affinity - Generic affinity setter function for MSI domains
37 * @irq_data: The irq data associated to the interrupt 43 * @irq_data: The irq data associated to the interrupt