omegamoon / Rockchip-GPL-Kernel

Generic Rockchip GPL Linux Kernel
Other
56 stars 57 forks source link

Getting the errors when compiling for mk808b #6

Open astafyev opened 10 years ago

astafyev commented 10 years ago

Getting the following errors when compiling for mk808b: In file included from arch/arm/mach-rk30/board-rk30-box.c:17:0: arch/arm/mach-rk30/board-pmu-wm8326.c: In function ‘wm831x_post_init’: arch/arm/mach-rk30/board-pmu-wm8326.c:190:28: error: ‘wm8326_dcdc_info’ undeclared (first use in this function) for(i = 0; i < ARRAY_SIZE(wm8326_dcdc_info); i++) ^ include/linux/kernel.h:45:33: note: in definition of macro ‘ARRAY_SIZE’

define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))

                             ^

arch/arm/mach-rk30/board-pmu-wm8326.c:190:28: note: each undeclared identifier is reported only once for each function it appears in for(i = 0; i < ARRAY_SIZE(wm8326_dcdc_info); i++) ^ include/linux/kernel.h:45:33: note: in definition of macro ‘ARRAY_SIZE’

define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))

                             ^

In file included from arch/arm/mach-rk30/board-rk30-box.c:17:0: include/linux/kernel.h:700:45: error: bit-field ‘’ width not an integer constant

define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))

                                         ^

include/linux/compiler-gcc.h:41:28: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’

define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))

                        ^

include/linux/kernel.h:45:59: note: in expansion of macro ‘__must_be_array’

define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))