Linux-SCSI Archive on
 help / color / Atom feed
* [PATCH] scsi: lpfc: add depends CPU_FREQ to SCSI_LPFC configury
@ 2020-07-23 14:01 trix
  0 siblings, 0 replies; only message in thread
From: trix @ 2020-07-23 14:01 UTC (permalink / raw)
  To: jejb, martin.petersen; +Cc: linux-scsi, linux-kernel, Tom Rix

From: Tom Rix <>

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.

Signed-off-by: Tom Rix <>
 drivers/scsi/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
index 571473a58f98..004dcda07d49 100644
--- a/drivers/scsi/Kconfig
+++ b/drivers/scsi/Kconfig
@@ -1157,6 +1157,7 @@ config SCSI_LPFC
 	depends on SCSI_FC_ATTRS
 	depends on NVME_FC || NVME_FC=n
+	depends on CPU_FREQ
 	select CRC_T10DIF
           This lpfc driver supports the Emulex LightPulse

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-23 14:01 [PATCH] scsi: lpfc: add depends CPU_FREQ to SCSI_LPFC configury trix

Linux-SCSI Archive on

Archives are clonable:
	git clone --mirror linux-scsi/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-scsi linux-scsi/ \
	public-inbox-index linux-scsi

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone