[PATCH] genirq: export __irq_set_affinity symbol

From: Xie XiuQi
Date: Thu May 12 2016 - 01:45:30 EST


__irq_set_affinity is declared in include/linux/interrupt.h, but not
been exported.

We export it now, so we could use __irq_set_affinity, irq_set_affinity
and irq_force_affinity in kernel modules.

Cc: Li Bin <huawei.libin@xxxxxxxxxx>
Cc: Yijing Wang <wangyijing@xxxxxxxxxx>
Signed-off-by: Xie XiuQi <xiexiuqi@xxxxxxxxxx>
---
kernel/irq/manage.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index cc1cc64..e131245 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -239,6 +239,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)
{
--
1.8.3.1