Revert "genirq: Restrict export of irq_to_desc()"

This reverts commit 64a1b95bb9 and
commit 11cc92eb74.

Commit 64a1b95bb9 ("genirq: Restrict export of irq_to_desc()") removed
the export of irq_to_desc() and commit 11cc92eb74 ("genirq: Fix export
of irq_to_desc() for powerpc KVM") added it back with the powerpc KVM
limitation. But there's still some usage in GKI kernel modules, so
revert both two commits.

Bug: 199823932
Signed-off-by: Huang Yiwei <hyiwei@codeaurora.org>
Change-Id: I3f871ecb5bc002c8643b4ddd3137a6899ac77b4f
This commit is contained in:
Huang Yiwei
2021-09-15 10:46:21 +08:00
parent c90859e710
commit 2cb5bf9e38

View File

@@ -352,9 +352,7 @@ struct irq_desc *irq_to_desc(unsigned int irq)
{
return radix_tree_lookup(&irq_desc_tree, irq);
}
#ifdef CONFIG_KVM_BOOK3S_64_HV_MODULE
EXPORT_SYMBOL_GPL(irq_to_desc);
#endif
EXPORT_SYMBOL(irq_to_desc);
static void delete_irq_desc(unsigned int irq)
{