diff options
| author | Arnd Bergmann <[email protected]> | 2025-02-03 10:54:15 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-02-05 19:59:42 +0000 |
| commit | 90508a1bb8f00618fa12cb2ad2276bc783656fc5 (patch) | |
| tree | 7a2ab677474d519af8bb2e7b3219b2f41130ea70 /net/unix/unix_bpf.c | |
| parent | Linux 6.14-rc1 (diff) | |
| download | kernel-90508a1bb8f00618fa12cb2ad2276bc783656fc5.tar.gz kernel-90508a1bb8f00618fa12cb2ad2276bc783656fc5.zip | |
cpufreq: airoha: modify CONFIG_OF dependency
Compile-testing without CONFIG_OF leads to a harmless build warning:
drivers/cpufreq/airoha-cpufreq.c:109:34: error: 'airoha_cpufreq_match_list' defined but not used [-Werror=unused-const-variable=]
109 | static const struct of_device_id airoha_cpufreq_match_list[] __initconst = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
It would be possible to mark the variable as __maybe_unused to shut up
that warning, but a Kconfig dependency seems more appropriate as this still
allows build testing in allmodconfig and randconfig builds on all
architectures.
An earlier commit, b865a8404642 ("cpufreq: airoha: Depends on OF"),
tried to fix it incorrectly. ARCH_AIROHA already requires CONFIG_OF, so
this change does nothing, and the dependency is still missing for the
COMPILE_TEST case.
Fix it properly.
Fixes: 84cf9e541ccc ("cpufreq: airoha: Add EN7581 CPUFreq SMCCC driver")
Fixes: b865a8404642 ("cpufreq: airoha: Depends on OF")
Signed-off-by: Arnd Bergmann <[email protected]>
[ Viresh: updated commit log and fixed rebase conflict ]
Signed-off-by: Viresh Kumar <[email protected]>
Link: https://patch.msgid.link/9d51d2710061dfa7f2568287c6ed125b858b7318.1738580005.git.viresh.kumar@linaro.org
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
