Skip to contentSkip to conversation

scsi: lpfc: add depends CPU_FREQ to SCSI_LPFC configury

PATCH New [email protected] 1 participant 1 message Jul 23, 2020 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: lpfc: add depends CPU_FREQ to SCSI_LPFC configury

From: Tom Rix <[email protected]>

A compile error

drivers/scsi/lpfc/lpfc_sli.c:7329:26: error: implicit
declaration of function ‘get_cpu_idle_time’; did you mean ‘set_cpu_active’? [-Werror=implicit-function-declaration]
idle_stat->prev_idle = get_cpu_idle_time(i, &wall, 1);

lpfc_init_idle_stat_hb depends on CPU_FREQ

So add depends CPU_FREQ to the configury.

---
 drivers/scsi/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/scsi/Kconfig +1 -0
index 571473a58f98..004dcda07d49 100644
@@ -1157,6 +1157,7 @@ config SCSI_LPFC
 	depends on SCSI_FC_ATTRS
 	depends on NVME_TARGET_FC || NVME_TARGET_FC=n
 	depends on NVME_FC || NVME_FC=n
+	depends on CPU_FREQ
 	select CRC_T10DIF
 	help
           This lpfc driver supports the Emulex LightPulse
Signature · 1 line
2.18.1