projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88f0a9d
)
genirq: Restrict export of irq_to_desc()
author
Thomas Gleixner
<tglx@linutronix.de>
Thu, 10 Dec 2020 19:26:06 +0000
(20:26 +0100)
committer
Thomas Gleixner
<tglx@linutronix.de>
Tue, 15 Dec 2020 15:19:38 +0000
(16:19 +0100)
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
kernel/irq/irqdesc.c
patch
|
blob
|
history
diff --git
a/kernel/irq/irqdesc.c
b/kernel/irq/irqdesc.c
index f509c4db2029399644bf5b08d20e283ce36e8cf4..3d0bc38a0bcfcdde6efb6d9c0550e1d9f8dec60f 100644
(file)
--- 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)
{