linux-next build failures with ARCH_EXYNOS
Hi,
I'm experiencing several kernel build failures when building linux-next (next-20130327) for ARCH_EXYNOS.
Using unmodified exynos_defconfig:
CC drivers/clocksource/exynos_mct.odrivers/clocksource/exynos_mct.c:557:1: warning: comparison of distinct pointer types lacks a cast drivers/clocksource/exynos_mct.c:558:1: error: expected ',' or ';' before 'static'
make[2]: *** [drivers/clocksource/exynos_mct.o] Error 1 make[1]: *** [drivers/clocksource] Error 2
make: *** [drivers] Error 2
Mentioned lines are introduced by commit 9fbf0c85a1 .
In addition, after enabling CONFIG_ARM_EXYNOS_CPUFREQ I'm getting following compilation errors:
CC drivers/cpufreq/exynos5250-cpufreq.odrivers/cpufreq/exynos5250-cpufreq.c: In function 'set_clkdiv':drivers/cpufreq/exynos5250-cpufreq.c:91:20: error: 'EXYNOS5_CLKDIV_CPU0' undeclared (first use in this function) drivers/cpufreq/exynos5250-cpufreq.c:91:20: note: each undeclared identifier is reported only once for each function it appears in drivers/cpufreq/exynos5250-cpufreq.c:93:21: error: 'EXYNOS5_CLKDIV_STATCPU0' undeclared (first use in this function) drivers/cpufreq/exynos5250-cpufreq.c:99:20: error: 'EXYNOS5_CLKDIV_CPU1' undeclared (first use in this function) drivers/cpufreq/exynos5250-cpufreq.c:101:21: error: 'EXYNOS5_CLKDIV_STATCPU1' undeclared (first use in this function) drivers/cpufreq/exynos5250-cpufreq.c: In function 'set_apll':drivers/cpufreq/exynos5250-cpufreq.c:115:22: error: 'EXYNOS5_CLKMUX_STATCPU' undeclared (first use in this function) drivers/cpufreq/exynos5250-cpufreq.c:122:29: error: 'EXYNOS5_APLL_LOCK' undeclared (first use in this function) drivers/cpufreq/exynos5250-cpufreq.c:125:20: error: 'EXYNOS5_APLL_CON0' undeclared (first use in this function) drivers/cpufreq/exynos5250-cpufreq.c: In function 'exynos5250_set_frequency':drivers/cpufreq/exynos5250-cpufreq.c:165:22: error: 'EXYNOS5_APLL_CON0' undeclared (first use in this function)
make[2]: *** [drivers/cpufreq/exynos5250-cpufreq.o] Error 1 make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
This seems to be caused by commit 6e6aac7590 removing definitions of mentioned registers from arch/arm/mach-exynos/include/mach/regs-clock.h header.
Best regards,
Signature · 3 lines
Tomasz Figa Samsung Poland R&D Center SW Solution Development, Kernel and System Framework
Hi Tomasz,
Quoted 48 lines · Tomasz Figa
Hi,
I'm experiencing several kernel build failures when building linux-next (next-20130327) for
ARCH_EXYNOS.Using unmodified
exynos_defconfig:CC
drivers/clocksource/exynos_mct.odrivers/clocksource/exynos_mct.c:557:1: warning: comparison of distinct pointer types lacks a castdrivers/clocksource/exynos_mct.c:558:1: error: expected ',' or ';' before 'static'
make[2]: *** [drivers/clocksource/exynos_mct.o] Error 1 make[1]: *** [drivers/clocksource] Error 2
make: *** [drivers] Error 2Mentioned lines are introduced by commit
9fbf0c85a1.In addition, after enabling
CONFIG_ARM_EXYNOS_CPUFREQI'm getting following compilation errors:CC
drivers/cpufreq/exynos5250-cpufreq.odrivers/cpufreq/exynos5250-cpufreq.c: In function 'set_clkdiv':drivers/cpufreq/exynos5250-cpufreq.c:91:20: error: 'EXYNOS5_CLKDIV_CPU0' undeclared (first use in this function)drivers/cpufreq/exynos5250-cpufreq.c:91:20: note: each undeclared identifier is reported only once for each function it appears indrivers/cpufreq/exynos5250-cpufreq.c:93:21: error: 'EXYNOS5_CLKDIV_STATCPU0' undeclared (first use in this function)drivers/cpufreq/exynos5250-cpufreq.c:99:20: error: 'EXYNOS5_CLKDIV_CPU1' undeclared (first use in this function)drivers/cpufreq/exynos5250-cpufreq.c:101:21: error: 'EXYNOS5_CLKDIV_STATCPU1' undeclared (first use in this function)drivers/cpufreq/exynos5250-cpufreq.c: In function 'set_apll':drivers/cpufreq/exynos5250-cpufreq.c:115:22: error: 'EXYNOS5_CLKMUX_STATCPU' undeclared (first use in this function)drivers/cpufreq/exynos5250-cpufreq.c:122:29: error: 'EXYNOS5_APLL_LOCK' undeclared (first use in this function)drivers/cpufreq/exynos5250-cpufreq.c:125:20: error: 'EXYNOS5_APLL_CON0' undeclared (first use in this function)drivers/cpufreq/exynos5250-cpufreq.c: In function 'exynos5250_set_frequency':drivers/cpufreq/exynos5250-cpufreq.c:165:22: error: 'EXYNOS5_APLL_CON0' undeclared (first use in this function)
make[2]: *** [drivers/cpufreq/exynos5250-cpufreq.o] Error 1 make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
Quoted 2 lines
This seems to be caused by commit
6e6aac7590removing definitions of mentioned registers fromarch/arm/mach-exynos/include/mach/regs-clock.hheader.
I apologize for over looking this. I am working on preparing a fix to resolve these errors.
Thanks,
Thomas.
Quoted 7 lines
Best regards,
--
Tomasz Figa
Samsung Poland R&D Center
SW Solution Development, Kernel and System Framework