From patchwork Mon Jul 6 16:44:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 11646139 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9E02A14DD for ; Mon, 6 Jul 2020 16:44:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 860D220773 for ; Mon, 6 Jul 2020 16:44:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="a1+V8UoO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729596AbgGFQoy (ORCPT ); Mon, 6 Jul 2020 12:44:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729551AbgGFQoy (ORCPT ); Mon, 6 Jul 2020 12:44:54 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F372C061755; Mon, 6 Jul 2020 09:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=nNfTuHPUfs6PO3Ww3M+wQvUkhv+TTYKzJicouLRKRMw=; b=a1+V8UoOtgEsLkN9UOIZ4Bnv/p lcMSuwC7t0ZzoTOvnhy9U7pPwxjLtzHa717t+nema+w3WTRdOPugdMbTfOBXZ9/fjWT4uZ2vEgmq4 xc1Ym0sB9SP55Xm21azWnVN85JBtWGuxrWE6o2H+NLcXlG4Lk7ZTIZZwwRqGO+9P/nqZAGteC6rb+ hCJ1s+jYU4mqxTzSnjLWhNi2aA9oIhxmbK8AkzX+J/bISH2bA1SFSpr0g2XsOe2AXVw9gMuvcZh2y K7QmLLekR8tgjXXhwoujOIJ9Z6t9rQW86NvD4Sep8WClf24vQvNEgpaujBFaAhb5Phs42U5gdbUU6 Po4ivOGQ==; Received: from [2601:1c0:6280:3f0:897c:6038:c71d:ecac] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsUEb-0002lO-Uu; Mon, 06 Jul 2020 16:44:50 +0000 To: Linux PM list , linux-scsi , "Rafael J. Wysocki" , Viresh Kumar Cc: James Smart , Dick Kennedy From: Randy Dunlap Subject: [PATCH -next] cpufreq: add stub for get_cpu_idle_time() to fix scsi/lpfc driver build Message-ID: <3a20bf20-247d-1242-dcd0-aef1bbc6e308@infradead.org> Date: Mon, 6 Jul 2020 09:44:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: Randy Dunlap To fix a build error in drivers/scsi/lpfc/lpfc_sli.c when CONFIG_CPU_FREQ is not set/enabled, add a stub function for get_cpu_idle_time() in . ../drivers/scsi/lpfc/lpfc_sli.c: In function ‘lpfc_init_idle_stat_hb’: ../drivers/scsi/lpfc/lpfc_sli.c:7330: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); Signed-off-by: Randy Dunlap Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: linux-pm@vger.kernel.org Cc: James Smart Cc: Dick Kennedy Cc: linux-scsi@vger.kernel.org --- include/linux/cpufreq.h | 4 ++++ 1 file changed, 4 insertions(+) --- linux-next-20200706.orig/include/linux/cpufreq.h +++ linux-next-20200706/include/linux/cpufreq.h @@ -237,6 +237,10 @@ static inline unsigned int cpufreq_get_h { return 0; } +static inline u64 get_cpu_idle_time(unsigned int cpu, u64 *wall, int io_busy) +{ + return 0; +} static inline void disable_cpufreq(void) { } #endif