[#5588] build adp5520 kernel fails
Submitted By: Mingquan Pan
Open Date
2009-10-09 00:39:47 Close Date
2010-01-03 23:39:28
Priority:
Medium Assignee:
Nobody
Status:
Closed Fixed In Release:
N/A
Found In Release:
2010R1 Release:
Category:
N/A Board:
N/A
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Rejected
Uboot version or rev.:
Toolchain version or rev.:
09r1-rc9
App binary format:
N/A
Summary: build adp5520 kernel fails
Details:
build adp5520 kernel fails now.
The current error is:
chmod +x tools/romfs-inst.sh tools/modules-alias.sh tools/build-udev-perms.sh
. linux-2.6.x/.config; if [ "$CONFIG_INITRAMFS_SOURCE" != "" ]; then \
mkdir -p `dirname $CONFIG_INITRAMFS_SOURCE`; \
touch $CONFIG_INITRAMFS_SOURCE || exit 1; \
fi
rm -f linux-2.6.x/usr/initramfs_data.cpio
make ARCH=blackfin CROSS_COMPILE=bfin-uclinux- -j4 -C linux-2.6.x || exit 1
make[1]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'
scripts/kconfig/conf -s arch/blackfin/Kconfig
make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'
make[1]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-blackfin
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/blackfin/kernel/sys_bfin.o
LD arch/blackfin/kernel/built-in.o
CC arch/blackfin/mach-bf537/boards/stamp.o
arch/blackfin/mach-bf537/boards/stamp.c:1372: error: variable 鈥榓dp5520_backlight_data鈥�has initializer but incomplete type
arch/blackfin/mach-bf537/boards/stamp.c:1373: error: unknown field 鈥榝ade_in鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1373: error: 鈥楩ADE_T_1200ms鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1373: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1373: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1374: error: unknown field 鈥榝ade_out鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1374: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1374: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1375: error: unknown field 鈥榝ade_led_law鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1375: error: 鈥楤L_LAW_LINEAR鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1375: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1375: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1376: error: unknown field 鈥榚n_ambl_sens鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1376: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1376: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1377: error: unknown field 鈥榓bml_filt鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1377: error: 鈥楤L_AMBL_FILT_640ms鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1377: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1377: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1378: error: unknown field 鈥榣1_daylight_max鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1378: error: implicit declaration of function 鈥楤L_CUR_mA鈥
arch/blackfin/mach-bf537/boards/stamp.c:1378: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1378: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1379: error: unknown field 鈥榣1_daylight_dim鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1379: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1379: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1380: error: unknown field 鈥榣2_office_max鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1380: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1380: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1381: error: unknown field 鈥榣2_office_dim鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1381: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1381: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1382: error: unknown field 鈥榣3_dark_max鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1382: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1382: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1383: error: unknown field 鈥榣3_dark_dim鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1383: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1383: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1384: error: unknown field 鈥榣2_trip鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1384: error: implicit declaration of function 鈥楲2_COMP_CURR_uA鈥
arch/blackfin/mach-bf537/boards/stamp.c:1384: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1384: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1385: error: unknown field 鈥榣2_hyst鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1385: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1385: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1386: error: unknown field 鈥榣3_trip鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1386: error: implicit declaration of function 鈥楲3_COMP_CURR_uA鈥
arch/blackfin/mach-bf537/boards/stamp.c:1386: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1386: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1387: error: unknown field 鈥榣3_hyst鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1387: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1387: warning: (near initialization for 鈥榓dp5520_backlight_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1400: error: 鈥楲ED_OFFT_600ms鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1416: error: variable 鈥榓dp5520_leds_data鈥�has initializer but incomplete type
arch/blackfin/mach-bf537/boards/stamp.c:1417: error: unknown field 鈥榥um_leds鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1417: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1417: warning: (near initialization for 鈥榓dp5520_leds_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1418: error: unknown field 鈥榣eds鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1418: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1418: warning: (near initialization for 鈥榓dp5520_leds_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1419: error: unknown field 鈥榝ade_in鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1419: error: 鈥楩ADE_T_600ms鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1419: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1419: warning: (near initialization for 鈥榓dp5520_leds_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1420: error: unknown field 鈥榝ade_out鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1420: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1420: warning: (near initialization for 鈥榓dp5520_leds_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1421: error: unknown field 鈥榣ed_on_time鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1421: error: 鈥楲ED_ONT_600ms鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1421: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1421: warning: (near initialization for 鈥榓dp5520_leds_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1428: error: variable 鈥榓dp5520_gpio_data鈥�has initializer but incomplete type
arch/blackfin/mach-bf537/boards/stamp.c:1429: error: unknown field 鈥榞pio_start鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1429: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1429: warning: (near initialization for 鈥榓dp5520_gpio_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1430: error: unknown field 鈥榞pio_en_mask鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1430: error: 鈥楪PIO_C1鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1430: error: 鈥楪PIO_C2鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1430: error: invalid operands to binary |
arch/blackfin/mach-bf537/boards/stamp.c:1430: error: 鈥楪PIO_R2鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1430: error: invalid operands to binary |
arch/blackfin/mach-bf537/boards/stamp.c:1430: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1430: warning: (near initialization for 鈥榓dp5520_gpio_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1431: error: unknown field 鈥榞pio_pullup_mask鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1431: error: invalid operands to binary |
arch/blackfin/mach-bf537/boards/stamp.c:1431: error: invalid operands to binary |
arch/blackfin/mach-bf537/boards/stamp.c:1431: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1431: warning: (near initialization for 鈥榓dp5520_gpio_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1440: error: implicit declaration of function 鈥楰EY鈥
arch/blackfin/mach-bf537/boards/stamp.c:1440: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1440: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1441: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1441: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1442: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1442: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1443: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1443: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1444: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1444: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1445: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1445: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1446: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1446: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1447: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1447: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1448: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1448: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1449: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1449: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1450: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1450: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1451: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1451: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1452: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1452: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1453: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1453: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1454: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1454: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1455: error: nonconstant array index in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1455: error: (near initialization for 鈥榓dp5520_keymap鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1458: error: variable 鈥榓dp5520_keys_data鈥�has initializer but incomplete type
arch/blackfin/mach-bf537/boards/stamp.c:1459: error: unknown field 鈥榬ows_en_mask鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1459: error: 鈥楻OW_R3鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1459: error: 鈥楻OW_R2鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1459: error: invalid operands to binary |
arch/blackfin/mach-bf537/boards/stamp.c:1459: error: 鈥楻OW_R1鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1459: error: invalid operands to binary |
arch/blackfin/mach-bf537/boards/stamp.c:1459: error: 鈥楻OW_R0鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1459: error: invalid operands to binary |
arch/blackfin/mach-bf537/boards/stamp.c:1459: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1459: warning: (near initialization for 鈥榓dp5520_keys_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1460: error: unknown field 鈥榗ols_en_mask鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1460: error: 鈥楥OL_C3鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1460: error: 鈥楥OL_C2鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1460: error: invalid operands to binary |
arch/blackfin/mach-bf537/boards/stamp.c:1460: error: 鈥楥OL_C1鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1460: error: invalid operands to binary |
arch/blackfin/mach-bf537/boards/stamp.c:1460: error: 鈥楥OL_C0鈥�undeclared here (not in a function)
arch/blackfin/mach-bf537/boards/stamp.c:1460: error: invalid operands to binary |
arch/blackfin/mach-bf537/boards/stamp.c:1460: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1460: warning: (near initialization for 鈥榓dp5520_keys_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1461: error: unknown field 鈥榢eymap鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1461: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1461: warning: (near initialization for 鈥榓dp5520_keys_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1462: error: unknown field 鈥榢eymapsize鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1462: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1462: warning: (near initialization for 鈥榓dp5520_keys_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1463: error: unknown field 鈥榬epeat鈥�specified in initializer
arch/blackfin/mach-bf537/boards/stamp.c:1463: warning: excess elements in struct initializer
arch/blackfin/mach-bf537/boards/stamp.c:1463: warning: (near initialization for 鈥榓dp5520_keys_data鈥�
arch/blackfin/mach-bf537/boards/stamp.c:1471: warning: initialization from incompatible pointer type
arch/blackfin/mach-bf537/boards/stamp.c:1472: warning: initialization from incompatible pointer type
arch/blackfin/mach-bf537/boards/stamp.c:1473: warning: initialization from incompatible pointer type
arch/blackfin/mach-bf537/boards/stamp.c:1474: warning: initialization from incompatible pointer type
make[2]: *** [arch/blackfin/mach-bf537/boards/stamp.o] Error 1
make[1]: *** [arch/blackfin/mach-bf537/boards] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** wait: No child processes. Stop.
while two days ago, the error appears at:
LD drivers/input/built-in.o^M
CC [M] drivers/leds/leds-adp5520.o^M
LD drivers/leds/built-in.o^M
CC drivers/mfd/adp5520.o^M
drivers/mfd/adp5520.c: In function 鈥榓dp5520_probe鈥�^M
drivers/mfd/adp5520.c:236: error: 鈥業RQF_ONESHOT鈥�undeclared (first use in this function)^M
drivers/mfd/adp5520.c:236: error: (Each undeclared identifier is reported only once^M
drivers/mfd/adp5520.c:236: error: for each function it appears in.)^M
make[3]: *** [drivers/mfd/adp5520.o] Error 1^M
make[2]: *** [drivers/mfd] Error 2^M
make[2]: *** Waiting for unfinished jobs....^M
make[1]: *** [drivers] Error 2^M
make[1]: *** Waiting for unfinished jobs....^M
Follow-ups
--- Michael Hennerich 2009-10-09 03:18:16
For the errors in arch/blackfin/mach-bf537/boards/stamp.c - update your tree!
include/linux/mfd/adp5520.h has changed.
The error in drivers/mfd/adp5520.c is epxpected since IRQF_ONESHOT only exists
in 2.6.32
Please stop testing this driver until we updated to 2.6.32
-Michael
--- Mingquan Pan 2010-01-03 23:39:35
It builds ok now on trunk head which is alread updated to 2.6.32. Close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found