Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting the errors when compiling for mk808b #6

Open
astafyev opened this issue Jan 3, 2014 · 0 comments
Open

Getting the errors when compiling for mk808b #6

astafyev opened this issue Jan 3, 2014 · 0 comments

Comments

@astafyev
Copy link

astafyev commented Jan 3, 2014

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))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant