Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4600755pxj; Wed, 12 May 2021 09:01:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXSkuP8g6XDm7MixjePR2Q9I/EUAIrCh2K30XdJEnFpUApq0V7urFmgGgs7o7WJs0xnmaE X-Received: by 2002:ac2:5df4:: with SMTP id z20mr18516931lfq.451.1620835298918; Wed, 12 May 2021 09:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620835298; cv=none; d=google.com; s=arc-20160816; b=DYxMziMnExKUMAjyWYSzPvyqJedZN3LY6daxNOUX2hnOogUpBlcHIbpVUduvHXFiM4 +0OYBSc18hGVn4FAC+hWOkUKHXUwVZYjSWVPrHEq5rDNWqFBFrvWsc1HGM95eeRVjsF6 nmdPMjRxirueoLIitNmjGQXxIobO9whmRZ0r6xIXZZ+r1EioKl7laR4ThHxSByd2atJi s13kv4rrCV70ZJSPdZ0ldNROSAIWKWhplbbU/9p2QgtmYZDwPDSIlcf6whpl/4BdzMM8 9d8vfpJAATt9OJriYugKdN7DA3QmesCjT1ynHdAMmfMuGnVyzz9tnd5XxUTUr3OcBanp E6Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=74cnS9pyn5I2T9cwMmGtrO93hrKOsGrMCjlNYEvPOhI=; b=DwsS5Bl3DernXPWDZVkFlfH/A5gBSMIllGBCxbRSjogyMr7ux4LucAgT6OiA7gnpFy BChcvtDw4BN4oJ/QZINUBQTJyKyMBcIDFO95gM8TaLSqD/IDWE76BD35HYYXzVwiEtCF wuRRYILasX3euwRSPqhAJVxgpzK4GNtzlVOkp5pk7W0125RKu63VAHx0xJnkoz3xnUel TdG88sI5Gt3xCcTIcOOI9GRRzROEAinJvqIalw0IBF6sRIApF76gzWLc+TFbtS5mmSFy zKQJTrhb7J7R0TqsoVvrY/gQmQgydgAMUwDwR50fRdlZwUpHrhvGKqTv5QADh/28O+mF A4Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zpodMjri; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si262926ejw.685.2021.05.12.09.01.13; Wed, 12 May 2021 09:01:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zpodMjri; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235076AbhELP7L (ORCPT + 99 others); Wed, 12 May 2021 11:59:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:40754 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235470AbhELP2H (ORCPT ); Wed, 12 May 2021 11:28:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8422A616E9; Wed, 12 May 2021 15:13:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832386; bh=ZrJuf0WmWqv/z9BfJRKW0goRXdZM2t4UcJi7iijX3Po=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zpodMjriul8Cls4sF84i0ewOlLioWfyTrWj4IHJnmCXGBAGwTW0hLTc7gPJl+Z9u3 IgIWy0Msw1i7fDIf/2dq3G5HxHkmD2SPIOtex6JZRsN/H2JsAk+9oO8JN35aVgC5u0 6abyltQ5JaS6oRuHnAF344qemenyY4lC+cRoAD1g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , He Ying , Daniel Lezcano , Sasha Levin Subject: [PATCH 5.10 224/530] cpuidle: Fix ARM_QCOM_SPM_CPUIDLE configuration Date: Wed, 12 May 2021 16:45:34 +0200 Message-Id: <20210512144827.195677629@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: He Ying [ Upstream commit 498ba2a8a2756694b6f3888857426dbc8a5e6b6c ] When CONFIG_ARM_QCOM_SPM_CPUIDLE is y and CONFIG_MMU is not set, compiling errors are encountered as follows: drivers/cpuidle/cpuidle-qcom-spm.o: In function `spm_dev_probe': cpuidle-qcom-spm.c:(.text+0x140): undefined reference to `cpu_resume_arm' cpuidle-qcom-spm.c:(.text+0x148): undefined reference to `cpu_resume_arm' Note that cpu_resume_arm is defined when MMU is set. So, add dependency on MMU in ARM_QCOM_SPM_CPUIDLE configuration. Fixes: a871be6b8eee ("cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver") Reported-by: Hulk Robot Signed-off-by: He Ying Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20210406123328.92904-1-heying24@huawei.com Signed-off-by: Sasha Levin --- drivers/cpuidle/Kconfig.arm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm index 0844fadc4be8..334f83e56120 100644 --- a/drivers/cpuidle/Kconfig.arm +++ b/drivers/cpuidle/Kconfig.arm @@ -107,7 +107,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 + depends on (ARCH_QCOM || COMPILE_TEST) && !ARM64 && MMU select ARM_CPU_SUSPEND select CPU_IDLE_MULTIPLE_DRIVERS select DT_IDLE_STATES -- 2.30.2