public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@kernel.org>
To: Jun Nie <jun.nie@linaro.org>
Cc: Arnd Bergmann <arnd@arndb.de>,
	arm@kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ARM: zx: only build power domain code when CONFIG_PM=y
Date: Wed, 18 Nov 2015 09:46:55 -0800	[thread overview]
Message-ID: <7hwptfyzcg.fsf@deeprootsystems.com> (raw)
In-Reply-To: <CABymUCPVbCxZoi2wy6kW1S=hKbzYFMU7ru9niAkbnVqOJhf45Q@mail.gmail.com> (Jun Nie's message of "Tue, 17 Nov 2015 09:20:17 +0800")

Hi Jun,

Jun Nie <jun.nie@linaro.org> writes:

> 2015-11-17 1:01 GMT+08:00 Arnd Bergmann <arnd@arndb.de>:
>
>> The newly added zx power domain code causes build errors in
>> some configurations:
>>
>> warning: (PM_RMOBILE && SOC_ZX296702) selects PM_GENERIC_DOMAINS which has
>> unmet direct dependencies (PM)
>> warning: (ARCH_EXYNOS) selects EXYNOS_THERMAL which has unmet direct
>> dependencies (THERMAL && (ARCH_EXYNOS || COMPILE_TEST) && THERMAL_OF)
>> power/domain.c: In function 'genpd_queue_power_off_work':
>> power/domain.c:192:13: error: 'pm_wq' undeclared (first use in this
>> function)
>>   queue_work(pm_wq, &genpd->power_off_work);
>>              ^
>> power/domain.c:192:13: note: each undeclared identifier is reported only
>> once for each function it appears in
>>
>> This ensures we don't try to enable it when CONFIG_PM is
>> disabled, mirroring what we do on most other platforms.
>>
>> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>> Fixes: f15107f41282 ("ARM: zx: Add power domains for ZX296702")
>>
>> diff --git a/arch/arm/mach-zx/Kconfig b/arch/arm/mach-zx/Kconfig
>> index 7fdc5bf24f9b..446334a25cf5 100644
>> --- a/arch/arm/mach-zx/Kconfig
>> +++ b/arch/arm/mach-zx/Kconfig
>> @@ -13,7 +13,7 @@ config SOC_ZX296702
>>         select ARM_GLOBAL_TIMER
>>         select HAVE_ARM_SCU if SMP
>>         select HAVE_ARM_TWD if SMP
>> -       select PM_GENERIC_DOMAINS
>> +       select PM_GENERIC_DOMAINS if PM
>>         help
>>           Support for ZTE ZX296702 SoC which is a dual core CortexA9MP
>>  endif
>>
>> Reviewed-by: Jun Nie <jun.nie@linaro.org>

FYI.. Not sure what mailer you're using, but your "reviewd-by" tag (as
well as the first line of some of your other replies) are showing up in
the quoted section of the previous mail, so it's not obvious at first
glance which part is your reply, and which part you're replying to.

Kevin

      parent reply	other threads:[~2015-11-18 17:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-16 17:01 [PATCH] ARM: zx: only build power domain code when CONFIG_PM=y Arnd Bergmann
     [not found] ` <CABymUCPVbCxZoi2wy6kW1S=hKbzYFMU7ru9niAkbnVqOJhf45Q@mail.gmail.com>
2015-11-18 17:46   ` Kevin Hilman [this message]

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=7hwptfyzcg.fsf@deeprootsystems.com \
    --to=khilman@kernel.org \
    --cc=arm@kernel.org \
    --cc=arnd@arndb.de \
    --cc=jun.nie@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /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