Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp797061imm; Tue, 5 Jun 2018 04:46:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLDb35MjTcVMIu7FTgdlQ2QafJJ9XEULn6JImHs2coniSCMpt4iT7oNRT8PstpGtxLUk8kl X-Received: by 2002:a17:902:3381:: with SMTP id b1-v6mr26035779plc.248.1528199170291; Tue, 05 Jun 2018 04:46:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528199170; cv=none; d=google.com; s=arc-20160816; b=JO/rp4gQpMF7GvXe4QOBReoI5lwzdLGrKTaykW3OjBK8YWUVolescWpIoAcAXnKjSp bg+cxsQ3Sj/rFVeKyGUuSUiXUEWRqhg8ESeeilr4swzAR+/ssb4EoYRPD/dPTYHe/4I4 LshWSljk1RolVYWL5HBbZzHN2C1arl0l+Oz+hMjx0ReLYfwFCeodwwtl59UCBh5WYwzd 5OhAUZZr1cVz0WZRgP9Qo3DyIx4hyzb9JwjZWn8Rx0KYGLAQTHf2P8pv/Iui/Bqv8SoT gUGHvBaRJh9xfk1MQrXylBX8ohP8HeFF6Q6Y7vDBwst4KEOUnBg8BI31Afmr+DA4ZiRz j04A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=1rHB/7LgKd62+DjMcFRugBLNYoun2e3saKaGSNr4zbc=; b=Mta+Sy2VQFkxu2ESHK1+ZCTgZFJaogoKh3Ddg7VbcQ5iVV8fsrpln2SQhuIeK9WO/Z aPkL9S1L0/XqZ/tFOrJ1M8G2ECQZXyihO0cPmeaTgpkjlStdwqS45XZUekTSe0iy30qF +nlDWchTiswZkzwqlbdSk94ytZv4gfbgbQ7eoaZZKZKPEAn+17aXqOnO1jbad4cyepyD ljMuTxjqpA24uHfQ31f95sQj0VHBXIt5feCpo0cxq+0lvLNouVhySimaYHMtQSslKz88 zyPd1fnnCaLSPW0iIBrtyZhnENjnROshYZMaEZEs5m6rLC7hYPKX8MMl9MwGy/kb8DV/ uxUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4-v6si7868932plp.128.2018.06.05.04.45.55; Tue, 05 Jun 2018 04:46:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751945AbeFELpB (ORCPT + 99 others); Tue, 5 Jun 2018 07:45:01 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:35525 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751622AbeFELpA (ORCPT ); Tue, 5 Jun 2018 07:45:00 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0MR93L-1frHuz39l1-00UXjG; Tue, 05 Jun 2018 13:44:54 +0200 From: Arnd Bergmann To: "Rafael J. Wysocki" , Viresh Kumar Cc: Arnd Bergmann , Ilia Lin , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: kryo: allow building as a loadable module Date: Tue, 5 Jun 2018 13:44:24 +0200 Message-Id: <20180605114453.1381941-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:57oeEaoE/TbPh/0dlaPflkcfFNDoLJDYCe39vyxhDNMXhYQ8z2G ePuq7sirlnx72JycXkgqQ4ARmhO/C6AiRGBzd/AeoAviZSqmiwhslA0SqOGIVegPVUYMwTQ I35KdQlWDcr5grWU43whyOcjcPbWga++nQV9cMunv6yu5uoI/NvScB1RhY/t8vKNfAyIbAz H8dhlP5RuE9MgQCP2Vr6g== X-UI-Out-Filterresults: notjunk:1;V01:K0:5nrw9W4fa2A=:yAHiVx//zvMMRoNRNyV9CK Z2snSL36sFna4psMvjUiRi/7lllDRUActZ81k7iSq9L8fW+7cNigDpO42C13m5ARexgO35ZqI 0nHOPzAmr5k/WAhNaYsG0RjedxXwVsVwwym+neN/0/qEKamwsXfRKnRfzzaFxJnSuB/kRi9Ng GXTKK9h0jiV7bhT0M8CSWHITTfnNOQcL/WgYZuI0yI0XyYS5jzB27/fOnb2fdFgl/h3WxzfEi zWrg0u7PkfQ+iXtBp5yJvIoh8IhXm0YQcqjuZpiyCB4wXMak8GATq6qadrgS2d/JL5/PQ736x KMgddP8eaS/fiDtDoYdlTykVeYCBF+bQQ1aDoWe7Y4ixXMYXRh9j1p+432lXOJYc8xCUK8vBG qI/V/Jo9XrWCe8E+hGk78sIwVYvnQd9g6ZloDHDGEy1GNQtJC+TV3xBZ4XIYHaDDAI86IiQNu 7XCHwsTyHrcaIk95g4JDhVKSSWi5OBRHx1sKBV1ALmkKnHZEdWqxLYqVDZH97MGEJ54DOBArg hq3MqLXr7DcojOEVYzeY4jf4ycEYiQYYG5ECt/l5/CmWlwOUosCrLKBhIuPsLJra0hlG1ls3a 9s1NtgXG+e1qUHiS+PhfuVZJ/ZP5lT7PrG4ghIpbW/DKtz7Q0RuhzwMLanwdZNTbMQUw+B0Mr BiGARe9+G4zLVy7Pv479CuHwP3REFCYQh/BSrMVPJNWnpXgerEgTWgYHmqQR0YSHUVrw= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Building the kryo cpufreq driver while QCOM_SMEM is a loadable module results in a link error: drivers/cpufreq/qcom-cpufreq-kryo.o: In function `qcom_cpufreq_kryo_probe': qcom-cpufreq-kryo.c:(.text+0xbc): undefined reference to `qcom_smem_get' The problem is that Kconfig ignores interprets the dependency as met when the dependent symbol is a 'bool' one. By making it 'tristate', it will be forced to be a module here, which builds successfully. Fixes: 46e2856b8e18 ("cpufreq: Add Kryo CPU scaling driver") Signed-off-by: Arnd Bergmann --- drivers/cpufreq/Kconfig.arm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index c7ce928fbf1f..52f5f1a2040c 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -125,7 +125,7 @@ config ARM_OMAP2PLUS_CPUFREQ default ARCH_OMAP2PLUS config ARM_QCOM_CPUFREQ_KRYO - bool "Qualcomm Kryo based CPUFreq" + tristate "Qualcomm Kryo based CPUFreq" depends on ARM64 depends on QCOM_QFPROM depends on QCOM_SMEM -- 2.9.0