scsi: lpfc: Add auto select on IRQ_POLL
authorTong Zhang <ztong0001@gmail.com>
Tue, 26 Jan 2021 00:05:54 +0000 (19:05 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Jan 2021 03:12:24 +0000 (22:12 -0500)
lpfc depends on irq_poll library, but it is not selected automatically.
When irq_poll is not selected, compiling it can run into following error

ERROR: modpost: "irq_poll_init" [drivers/scsi/lpfc/lpfc.ko] undefined!
ERROR: modpost: "irq_poll_sched" [drivers/scsi/lpfc/lpfc.ko] undefined!
ERROR: modpost: "irq_poll_complete" [drivers/scsi/lpfc/lpfc.ko] undefined!

Link: https://lore.kernel.org/r/20210126000554.309858-1-ztong0001@gmail.com
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Tong Zhang <ztong0001@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/Kconfig

index 44c1d5e0e8c97016e6e11eafe66cb316f805add3..06b87c7f6babd390dd7a3010906724076604ab73 100644 (file)
@@ -1145,6 +1145,7 @@ config SCSI_LPFC
        depends on NVME_TARGET_FC || NVME_TARGET_FC=n
        depends on NVME_FC || NVME_FC=n
        select CRC_T10DIF
+       select IRQ_POLL
        help
           This lpfc driver supports the Emulex LightPulse
           Family of Fibre Channel PCI host adapters.