drivers/thermal/cpu_cooling.c: In function 'cpufreq_thermal_notifier':
drivers/thermal/cpu_cooling.c:140:15: error: 'CPUFREQ_ADJUST' undeclared (first use in this function)
140 | if (event != CPUFREQ_ADJUST)
| ^~~~~~~~~~~~~~
drivers/thermal/cpu_cooling.c:140:15: note: each undeclared identifier is reported only once for each function it appears in
drivers/thermal/cpu_cooling.c:166:33: error: passing argument 1 of 'cpufreq_verify_within_limits' from incompatible pointer type [-Werror=incompatible-pointer-types]
166 | cpufreq_verify_within_limits(policy, 0, clipped_freq);
| ^~~~~~
| |
| struct cpufreq_policy *
In file included from drivers/thermal/cpu_cooling.c:15:
./include/linux/cpufreq.h:430:77: note: expected 'struct cpufreq_policy_data *' but argument is of type 'struct cpufreq_policy *'
430 | static inline void cpufreq_verify_within_limits(struct cpufreq_policy_data *policy,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
CC drivers/tty/serial/8250/8250_dma.o
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:266: drivers/thermal/cpu_cooling.o] Error 1
make[1]: *** [scripts/Makefile.build:503: drivers/thermal] Error 2
make[1]: *** Waiting for unfinished jobs....