コンパイル(2)



しばらくコンパイル処理の文字が流れると

arch/arm/mach-feroceon/./Board/boardEnv/mvBoardEnvLib.c: In function 'mvBoardEnvInit':
arch/arm/mach-feroceon/./Board/boardEnv/mvBoardEnvLib.c:141: warning: ISO C90 forbids mixed declarations and code
CC arch/arm/mach-feroceon/./Board/boardEnv/mvBoardEnvSpec.o
CC arch/arm/mach-feroceon/./Board/dram/mvDram.o
CC arch/arm/mach-feroceon/./Board/buffalo/BuffaloUart.o
CC arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.o
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c: In function 'BuffaloGpio_MiconIntSetup':
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c:55: error: 'BIT_MICON' undeclared (first use in this function)
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c:55: error: (Each undeclared identifier is reported only once
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c:55: error: for each function it appears in.)
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c:56: error: 'MICON_POL' undeclared (first use in this function)
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c: In function 'BuffaloGpio_ClearMiconInt':
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c:77: error: 'BIT_MICON' undeclared (first use in this function)
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c: In function 'BuffaloGpio_RtcIntSetup':
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c:87: error: 'BIT_RTC' undeclared (first use in this function)
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c: In function 'BuffaloGpio_ClearRtcInt':
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c:98: error: 'BIT_RTC' undeclared (first use in this function)
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c: In function 'BuffaloGpio_EthLedOn':
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c:302: warning: implicit declaration of function 'buffalo_link_led_on'
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c: In function 'BuffaloGpio_EthLedOff':
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c:308: warning: implicit declaration of function 'buffalo_link_led_off'
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c: In function 'BuffaloGpio_FanControlWrite':
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c:359: warning: ISO C90 forbids mixed declarations and code
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c: In function 'BuffaloGpio_FanControlRead':
arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.c:400: warning: ISO C90 forbids mixed declarations and code
make[1]: *** [arch/arm/mach-feroceon/./Board/buffalo/BuffaloGpio.o] Error 1
make: *** [arch/arm/mach-feroceon] Error 2

とエラーで止まった。
2.6.16からの移植失敗っぽい。
というより元々、mv88f5182_defconfigの設定などでコンパイルのテストなどはしていないのだろう。
まあ当然といえば当然か


各定数が未設定のエラーであるのは明らか。
2.6.16公開ソースのbuffalo/drivers/BuffaloGpio.hを見ると
#ifdef CONFIG_BUFFALO_LINKSTATION_LSGL
#define BIT_MICON 2
#define MICON_POL 0 /* high */
#define BIT_RTC 3
#endif
#ifdef CONFIG_BUFFALO_TERASTATION_TSHTGL
#define BIT_MICON 8
#define MICON_POL 0 /* high */
#define BIT_RTC 9
#define BIT_UPS 13
#define BIT_OMR_BL 14
#endif

とあり、これを同じファイルに追加。
追加しただけなのでとりあえず
続きでコンパイル