mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Zhang Rui <rui.zhang@intel.com>, Eduardo Valentin <edubezval@gmail.com>
Cc: Amit Kucheria <amit.kucheria@linaro.org>,
	Leo Yan <leo.yan@linaro.org>, Arnd Bergmann <arnd@arndb.de>,
	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	[thread overview]
Message-ID: <20160826154434.992160-1-arnd@arndb.de> (raw)

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 <arnd@arndb.de>
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(-)

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
-- 
2.9.0

             reply	other threads:[~2016-08-26 15:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-26 15:44 Arnd Bergmann [this message]
2016-08-26 17:12 ` Amit Kucheria
2016-08-29  2:00 ` Zhang Rui
2016-08-29  2:25   ` Leo Yan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160826154434.992160-1-arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=amit.kucheria@linaro.org \
    --cc=edubezval@gmail.com \
    --cc=leo.yan@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®