From patchwork Fri Aug 26 15:44:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101920 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp420963qga; Fri, 26 Aug 2016 08:45:01 -0700 (PDT) X-Received: by 10.98.25.8 with SMTP id 8mr7216980pfz.94.1472226301318; Fri, 26 Aug 2016 08:45:01 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p63si21760443pfp.244.2016.08.26.08.44.59; Fri, 26 Aug 2016 08:45:01 -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 S1754904AbcHZPov (ORCPT + 27 others); Fri, 26 Aug 2016 11:44:51 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:64213 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753572AbcHZPoq (ORCPT ); Fri, 26 Aug 2016 11:44:46 -0400 Received: from wuerfel.lan. ([176.0.135.42]) by mrelayeu.kundenserver.de (mreue003) with ESMTPA (Nemesis) id 0LvNnr-1awAVD32nL-010arx; Fri, 26 Aug 2016 17:44:37 +0200 From: Arnd Bergmann To: Zhang Rui , Eduardo Valentin Cc: Amit Kucheria , Leo Yan , Arnd Bergmann , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] thermal: hisilicon: fix COMPILE_TEST dependencies Date: Fri, 26 Aug 2016 17:44:21 +0200 Message-Id: <20160826154434.992160-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:njdUJmY+Zpezmc74svBawTTk/A3SMd8LdePzj7AfbbGw2W21FCg 56FLAQNbM0uaZgMhBFlyWfoIGm4PtUdK7GEx46WFIjFj/kpJri9+TJiEdXkNY1ZBZPK8rXp RkW8ILr36ilDLmn3JNbtBghloUt6n4a7231Ooj7FciRxzuc7K6yGlvQRnaZ+20s9hOMs50/ d7j+gGZdwFxzTYK39fomg== X-UI-Out-Filterresults: notjunk:1; V01:K0:x0LSxABrEYk=:zF/X03oRrhf8bx72uYE0BI pStS6UiL19yPWx216IdVszPtSEuDJFa3jxfc9XxfD50e9nAV5zY2JE2Hk6vKF745OGTu/sE3c U0xVD9PmZ7Lh8sky2YexxT3722aN9ZClNAMHoZMeWRU2qIIoimo4x1c2SfJSPg2cRhHD8H42f j1SIdewy31fEttm+1cC65a1D9d13CsxctPLUjLHyFbQPUq/iX/vRFc2uCJBR4pTGPe+sIVl9W s5ejpo2EwL8Md40g6c2EsxNV5zd/dXoxh0EFEmnsalQkpoSug3FdW5+mjU/Yyxsb6gE1NaLsH 8P6G/g/2sx3f32TYvNKLVilTeoQ0WLLLS1hJhsvSLQF0uBGtTdExJw9/yBTNRKvqMPlGMpw8Z d1w+xHXxe1xBMgNbA8XsAh7JwxxuYHK/2kStzq2cZlLBzRRWrwy1fvXUWy54BmL1Eo13vpDEE y//PNaIGNJw+v9T7Bspi1Iolyuo+KZdo9J3ckqStBEOFrUOrcVe4hVgYIbDAlMXRhvjyIsqRs cuTTsyD/gRFbiOeEN0xqHJYVAJAEEYUBXWsAgm05/YTYhl1gc76zCjKgGSBp2B1X8y+gRfJxT 0fQqg5Ncki93Mi2plhci67JvjbuAo84DGSA5Ol/4E473tJYhDJwB8z9b7Nn9Kg7IX3vYassdk y2kmFu2RYAqzC9/vDru1DfwOekhlTeeYILkMOifnoCniDQcYaF1cKlDnFLkIVjlWhHBo= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As we now 'select STUB_CLK_HI6220', all dependencies for that driver have to be present in order to enable HISI_THERMAL, as pointed out by Kconfig: warning: (HISI_THERMAL) selects STUB_CLK_HI6220 which has unmet direct dependencies (COMMON_CLK && COMMON_CLK_HI6220 && MAILBOX) This rearranges the dependencies for this symbol, so all the dependencies aside from ARCH_HISI are always met when building it for compile testing. This mainly helps for randconfig testing, as an "allmodconfig" kernel will enable them anyway. Signed-off-by: Arnd Bergmann Fixes: 5f63581ce68e ("thermal: hisilicon: Add dependency on the clock driver to allow frequency scaling") --- drivers/thermal/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.9.0 diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 5cba072c3a62..3c8607c07352 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -177,7 +177,8 @@ config THERMAL_EMULATION config HISI_THERMAL tristate "Hisilicon thermal driver" - depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST + depends on ARCH_HISI || COMPILE_TEST + depends on CPU_THERMAL && OF && COMMON_CLK_HI6220 && MAILBOX depends on HAS_IOMEM select STUB_CLK_HI6220 help