From patchwork Mon Apr 25 05:17:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 12825282 X-Patchwork-Delegate: daniel.lezcano@linaro.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11B29C433FE for ; Mon, 25 Apr 2022 05:17:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241210AbiDYFU5 (ORCPT ); Mon, 25 Apr 2022 01:20:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237644AbiDYFUz (ORCPT ); Mon, 25 Apr 2022 01:20:55 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8369225C7B; Sun, 24 Apr 2022 22:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=meuyd5s5sKHgxd8ubGIDV4Lp775gVZDBvZL2URV69CI=; b=z2MBfke8CNp6nXVdpSO9571jy4 8EVJJNWrXZapRSNvXWdHT/bl3W7NY9n/RCLj70FQqi3GHw7cRyhKYx0Xc9Jkmz7h6hbAi1eqRtAPm McESKglmClcdfvbD3BV5971lvCFpqV5drTewZB47UiLwPuDPpIfR59V4ZseASUlI3uD8ejHySV6wo Z371yu9X72z7LHou1IP+/Gb2wdhMBGuDgHwpE3ROuT45NyFMCzFDwYh7GQZksBvecttR1HutXo1TF 9Kech2yyapbfxsk0G0wae1Fmk04M25e1ZKUtav9H6wOKyfPrDHkc/kIyhxCUQ3Cmy+xQ8vGX0pknP Dchzyz+g==; Received: from [2601:1c0:6280:3f0::aa0b] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nir6e-008GJZ-Ev; Mon, 25 Apr 2022 05:17:52 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Andy Gross , Bjorn Andersson , linux-arm-msm@vger.kernel.org, "Rafael J. Wysocki" , Daniel Lezcano , linux-pm@vger.kernel.org, Stephan Gerhold Subject: [PATCH v2] cpuidle: arm: fix ARM_QCOM_SPM_CPUIDLE dependency Date: Sun, 24 Apr 2022 22:17:51 -0700 Message-Id: <20220425051751.28705-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Fix Kconfig warning and subsequent build errors due to the Kconfig problem. WARNING: unmet direct dependencies detected for ARM_CPU_SUSPEND Depends on [n]: ARCH_SUSPEND_POSSIBLE [=n] Selected by [y]: - ARM_QCOM_SPM_CPUIDLE [=y] && CPU_IDLE [=y] && (ARM [=y] || ARM64) && (ARCH_QCOM [=n] || COMPILE_TEST [=y]) && !ARM64 && MMU [=y] arm-linux-gnueabi-ld: arch/arm/kernel/sleep.o: in function `__cpu_suspend': (.text+0x68): undefined reference to `cpu_sa110_suspend_size' arm-linux-gnueabi-ld: arch/arm/kernel/suspend.o: in function `__cpu_suspend_save': suspend.c:(.text+0x478): undefined reference to `cpu_sa110_do_suspend' arm-linux-gnueabi-ld: suspend.c:(.text+0x4e8): undefined reference to `cpu_sa110_do_resume' Fixes: a871be6b8eee ("cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver") Signed-off-by: Randy Dunlap Cc: Andy Gross Cc: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org Cc: "Rafael J. Wysocki" Cc: Daniel Lezcano Cc: linux-pm@vger.kernel.org Cc: Stephan Gerhold --- drivers/cpuidle/Kconfig.arm | 1 + 1 file changed, 1 insertion(+) --- a/drivers/cpuidle/Kconfig.arm +++ b/drivers/cpuidle/Kconfig.arm @@ -110,6 +110,7 @@ config ARM_TEGRA_CPUIDLE config ARM_QCOM_SPM_CPUIDLE bool "CPU Idle Driver for Qualcomm Subsystem Power Manager (SPM)" depends on (ARCH_QCOM || COMPILE_TEST) && !ARM64 && MMU + depends on ARCH_SUSPEND_POSSIBLE select ARM_CPU_SUSPEND select CPU_IDLE_MULTIPLE_DRIVERS select DT_IDLE_STATES