Home/Support/Support Forum/busfreq-imx compile error when CPU_FREQ disabled
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

busfreq-imx compile error when CPU_FREQ disabled

0 votes
Hello,

I have a CCIMX6sbc board with IMX6Q inside and I'm trying to compile linux kernel v4.9 branch v4.9/dey-2.2/maint (from Digi GitHub) without CPU frequency scaling (CONFIG_CPU_FREQ disabled).
If I let CPU frequency scaling enabled, linux kernelcompilation works perfectly. But for realtime purpose I want to disable CPU frequency scaling. If I do so I get compile error as :
"arch/arm/mach-imx/busfreq-imx.c:151:5: error: redefinition of ‘register_busfreq_notifier’
int register_busfreq_notifier(struct notifier_block *nb)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/arm/mach-imx/busfreq-imx.c:22:
./include/linux/busfreq-imx.h:60:19: note: previous definition of ‘register_busfreq_notifier’ was here
static inline int register_busfreq_notifier(struct notifier_block *nb)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm/mach-imx/busfreq-imx.c:157:5: error: redefinition of ‘unregister_busfreq_notifier’
int unregister_busfreq_notifier(struct notifier_block *nb)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/arm/mach-imx/busfreq-imx.c:22:
./include/linux/busfreq-imx.h:64:19: note: previous definition of ‘unregister_busfreq_notifier’ was here
static inline int unregister_busfreq_notifier(struct notifier_block *nb)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm/mach-imx/busfreq-imx.c: In function ‘imx6ull_lower_cpu_rate’:
arch/arm/mach-imx/busfreq-imx.c:176:43: error: ‘arm_reg’ undeclared (first use in this function); did you mean ‘arm_clk’?
origin_arm_volt = regulator_get_voltage(arm_reg);
^~~~~~~
arm_clk
arch/arm/mach-imx/busfreq-imx.c:176:43: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-imx/busfreq-imx.c:177:43: error: ‘soc_reg’ undeclared (first use in this function); did you mean ‘fp_reg’?
origin_soc_volt = regulator_get_voltage(soc_reg);
^~~~~~~
fp_reg
arch/arm/mach-imx/busfreq-imx.c: At top level:
arch/arm/mach-imx/busfreq-imx.c:796:6: error: redefinition of ‘request_bus_freq’
void request_bus_freq(enum bus_freq_mode mode)
^~~~~~~~~~~~~~~~
In file included from arch/arm/mach-imx/busfreq-imx.c:22:
./include/linux/busfreq-imx.h:54:20: note: previous definition of ‘request_bus_freq’ was here
static inline void request_bus_freq(enum bus_freq_mode mode)
^~~~~~~~~~~~~~~~
arch/arm/mach-imx/busfreq-imx.c:845:6: error: redefinition of ‘release_bus_freq’
void release_bus_freq(enum bus_freq_mode mode)
^~~~~~~~~~~~~~~~
In file included from arch/arm/mach-imx/busfreq-imx.c:22:
./include/linux/busfreq-imx.h:57:20: note: previous definition of ‘release_bus_freq’ was here
static inline void release_bus_freq(enum bus_freq_mode mode)
^~~~~~~~~~~~~~~~
arch/arm/mach-imx/busfreq-imx.c:921:5: error: redefinition of ‘get_bus_freq_mode’
int get_bus_freq_mode(void)"

I've looked into /include/linux/busfreq-imx.h file and it seems that if CONFIG_CPU_FREQ is not defined, I must not have this redefinition...
Do you know if there is a patch or if someone has experienced the same problem ?

Thank you,
Adrien
asked Nov 5 in Linux by adibood New to the Community (0 points)

Please log in or register to answer this question.

...