genirq: Move irq_chip_write_msi_msg() helper to core
authorThomas Gleixner <tglx@linutronix.de>
Sat, 6 Dec 2014 20:20:20 +0000 (21:20 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 7 Dec 2014 20:49:45 +0000 (21:49 +0100)
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>
include/linux/irq.h
kernel/irq/msi.c

index 8badf34baf0f1bd80ee8a038ace434328fbc504b..33da579d727cd31a2f24dcbb7565341f8ef8de2a 100644 (file)
@@ -461,12 +461,6 @@ extern int irq_chip_set_affinity_parent(struct irq_data *data,
                                        bool force);
 #endif
 
-static inline void irq_chip_write_msi_msg(struct irq_data *data,
-                                         struct msi_msg *msg)
-{
-       data->chip->irq_write_msi_msg(data, msg);
-}
-
 /* Handling of unhandled and spurious interrupts: */
 extern void note_interrupt(unsigned int irq, struct irq_desc *desc,
                           irqreturn_t action_ret);
index f477a2f8ce56320105bc429c65a2a58bbc965a54..3e18163f336f2457bf999c87386fb12290e9ed6e 100644 (file)
@@ -32,6 +32,12 @@ void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg)
 EXPORT_SYMBOL_GPL(get_cached_msi_msg);
 
 #ifdef CONFIG_GENERIC_MSI_IRQ_DOMAIN
+static inline void irq_chip_write_msi_msg(struct irq_data *data,
+                                         struct msi_msg *msg)
+{
+       data->chip->irq_write_msi_msg(data, msg);
+}
+
 /**
  * msi_domain_set_affinity - Generic affinity setter function for MSI domains
  * @irq_data:  The irq data associated to the interrupt