Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mailbox: zynqmp-ipi: drop irq_to_desc() call

irq_to_desc() is not exported to loadable modules, so this driver now
fails to link in some configurations:

ERROR: modpost: "irq_to_desc" [drivers/mailbox/zynqmp-ipi-mailbox.ko] undefined!

I can't see a purpose for this call, since the return value is unused
and probably left over from some code refactoring.

Address the link failure by just removing the line.

Fixes: 6ffb1635341b ("mailbox: zynqmp: handle SGI for shared IPI")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Tanmay Shah <tanmay.shah@amd.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>

authored by

Arnd Bergmann and committed by
Jassi Brar
d551ce15 1613e604

-1
-1
drivers/mailbox/zynqmp-ipi-mailbox.c
··· 850 850 return ret; 851 851 } 852 852 853 - irq_to_desc(pdata->virq_sgi); 854 853 irq_set_status_flags(pdata->virq_sgi, IRQ_PER_CPU); 855 854 856 855 /* Setup function for the CPU hot-plug cases */