From: Guenter Roeck Date: Wed, 22 Jul 2020 02:30:27 +0000 (-0700) Subject: scsi: lpfc: Add dependency on CPU_FREQ X-Git-Tag: v5.10.7~1830^2~123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3d2bf6505ddd4d11226dc2ad2071981564a35db;p=platform%2Fkernel%2Flinux-rpi.git scsi: lpfc: Add dependency on CPU_FREQ Since commit 317aeb83c92b ("scsi: lpfc: Add blk_io_poll support for latency improvment"), the lpfc driver depends on CPUFREQ. Without it, builds fail with drivers/scsi/lpfc/lpfc_sli.c: In function 'lpfc_init_idle_stat_hb': drivers/scsi/lpfc/lpfc_sli.c:7329:26: error: implicit declaration of function 'get_cpu_idle_time' Add the missing dependency. Link: https://lore.kernel.org/r/20200722023027.36866-1-linux@roeck-us.net Fixes: 317aeb83c92b ("scsi: lpfc: Add blk_io_poll support for latency improvment") Cc: Dick Kennedy Cc: James Smart Reviewed-by: James Smart Signed-off-by: Guenter Roeck Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig index 571473a..701b61e 100644 --- a/drivers/scsi/Kconfig +++ b/drivers/scsi/Kconfig @@ -1154,6 +1154,7 @@ source "drivers/scsi/qedf/Kconfig" config SCSI_LPFC tristate "Emulex LightPulse Fibre Channel Support" depends on PCI && SCSI + depends on CPU_FREQ depends on SCSI_FC_ATTRS depends on NVME_TARGET_FC || NVME_TARGET_FC=n depends on NVME_FC || NVME_FC=n