Clear Kernel Build Error? Fix It
-when I compile clear kernel with LLVM enabled, I got this error:
+when I compile clear kernel with LLVM enabled, I got this error:
arch/x86/kernel/cpu/intel_epb.c:172:2: error: call to undeclared function 'sched_set_itmt_power_ratio'; @@ -220,12 +220,13 @@ static inline void sched_set_itmt_core_prio(int prio, int core_cpu)
-it's obvious that the sched_set_itmt_power_ratio
function is undeclared
-so I added the following and it is able to compile :)
+it's obvious that the sched_set_itmt_power_ratio function is undeclared
+so I added the following like the function on top of it
+and it is able to compile :)
--- /home/gentoo/linux/topology.h 2022-11-04 16:40:18.500113117 +0800 -+++ arch/x86/include/asm/topology.h 2022-11-04 16:41:03.676782505 +0800 +--- /home/gentoo/linux/topology.h ++++ arch/x86/include/asm/topology.h @@ -189,6 +189,9 @@ static inline void sched_set_itmt_core_prio(int prio, int core_cpu) { @@ -240,13 +241,13 @@ so I added the following and it is able to compile :)
-End.
+Notice: I'm ignorant about C programming, so if anything's wrong, please contact me