[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJZ5v0gjGvBxsEB-RgdtOiMzc4MRLvTVWi4DA3MbaLO3GckSpA@mail.gmail.com>
Date: Wed, 29 Jan 2025 10:58:08 +0100
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: Viresh Kumar <viresh.kumar@...aro.org>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>, linux-pm@...r.kernel.org,
Vincent Guittot <vincent.guittot@...aro.org>, kernel test robot <lkp@...el.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] cpufreq: airoha: Depends on OF
On Tue, Jan 28, 2025 at 8:51 AM Viresh Kumar <viresh.kumar@...aro.org> wrote:
>
> The Airoha cpufreq depends on OF and must be marked as such. With the
> kernel compiled without OF support, we get following warning:
>
> drivers/cpufreq/airoha-cpufreq.c:109:34: warning: 'airoha_cpufreq_match_list' defined but not used [-Wunused-const-variable=]
> 109 | static const struct of_device_id airoha_cpufreq_match_list[] __initconst = {
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
>
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202501251941.0fXlcd1D-lkp@intel.com/
> Signed-off-by: Viresh Kumar <viresh.kumar@...aro.org>
> ---
> 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 704e84d00639..0ee5c691fb36 100644
> --- a/drivers/cpufreq/Kconfig.arm
> +++ b/drivers/cpufreq/Kconfig.arm
> @@ -17,7 +17,7 @@ config ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM
>
> config ARM_AIROHA_SOC_CPUFREQ
> tristate "Airoha EN7581 SoC CPUFreq support"
> - depends on ARCH_AIROHA || COMPILE_TEST
> + depends on (ARCH_AIROHA && OF) || COMPILE_TEST
> select PM_OPP
> default ARCH_AIROHA
> help
> --
Applied as 6.14-rc material (or please let me know if you'd rather
apply it yourself).
Thanks!
Powered by blists - more mailing lists