summaryrefslogtreecommitdiffstats
path: root/kernel/irq/irqdesc.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2020-12-10 20:26:06 +0100
committerThomas Gleixner <tglx@linutronix.de>2020-12-15 16:19:38 +0100
commit64a1b95bb9fe3ec76e1a2cd803eff06389341ae4 (patch)
treee519fd82f2ec739f51847db1cf9761de1eb1cfbc /kernel/irq/irqdesc.c
parent88f0a9d066443118261adf7e049781476f09dac1 (diff)
downloadlinux-64a1b95bb9fe3ec76e1a2cd803eff06389341ae4.tar.gz
linux-64a1b95bb9fe3ec76e1a2cd803eff06389341ae4.tar.bz2
linux-64a1b95bb9fe3ec76e1a2cd803eff06389341ae4.zip
genirq: Restrict export of irq_to_desc()
No more (ab)use in drivers finally. There is still the modular build of PPC/KVM which needs it, so restrict it to this case which still makes it unavailable for most drivers. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20201210194045.551428291@linutronix.de
Diffstat (limited to 'kernel/irq/irqdesc.c')
-rw-r--r--kernel/irq/irqdesc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index f509c4db2029..3d0bc38a0bcf 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -352,7 +352,9 @@ struct irq_desc *irq_to_desc(unsigned int irq)
{
return radix_tree_lookup(&irq_desc_tree, irq);
}
-EXPORT_SYMBOL(irq_to_desc);
+#ifdef CONFIG_KVM_BOOK3S_64_HV
+EXPORT_SYMBOL_GPL(irq_to_desc);
+#endif
static void delete_irq_desc(unsigned int irq)
{