All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] genirq: fix symbol export for __irq_set_affinity
@ 2014-12-18 22:30 Jesse Brandeburg
  2014-12-18 22:42 ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: Jesse Brandeburg @ 2014-12-18 22:30 UTC (permalink / raw)
  To: tglx; +Cc: linux-kernel

The function __irq_set_affinity is referenced by interrupt.h
with static inlines, but if you try to use one of the inlines
in interrupt.h (for instance to call irq_set_affinity) then
compile fails due to a missing symbol, when building modules.

Enabling this function means that kernel drivers can include
an initial affinity setting for the interrupt, instead of all
interrupts starting out life on CPU0.  It seems to have just
been an oversight that it was not included.

This function and the helpers that call it from interrupt.h were
already in the kernel API, but if used would then fail to compile
due to the lack of an export even though already defined via extern.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
CC: Thomas Gleixner <tglx@linutronix.de>

---

Note: The use of EXPORT_SYMBOL_GPL was only because the next
      latest function added to this file (irq_set_affinity_hint)
      also used it.
---
 kernel/irq/manage.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 8069237..8c1a5ad 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -233,6 +233,7 @@ int __irq_set_affinity(unsigned int irq, const struct cpumask *mask, bool force)
 	raw_spin_unlock_irqrestore(&desc->lock, flags);
 	return ret;
 }
+EXPORT_SYMBOL_GPL(__irq_set_affinity);
 
 int irq_set_affinity_hint(unsigned int irq, const struct cpumask *m)
 {


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-18 23:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-18 22:30 [PATCH] genirq: fix symbol export for __irq_set_affinity Jesse Brandeburg
2014-12-18 22:42 ` Thomas Gleixner
2014-12-18 22:48   ` Jesse Brandeburg
2014-12-18 23:11     ` Thomas Gleixner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.