CHK include/linux/version.h make[1]: `include/asm-arm/mach-types.h' is up to date. CHK include/linux/compile.h CHK include/linux/utsrelease.h CC [M] drivers/rtc/rtc-cmos.o In file included from drivers/rtc/rtc-cmos.c:39: include/asm/rtc.h:21: warning: 'struct rtc_time' declared inside parameter list include/asm/rtc.h:21: warning: its scope is only this definition or declaration, which is probably not what you want include/asm/rtc.h:22: warning: 'struct rtc_time' declared inside parameter list include/asm/rtc.h:23: warning: 'struct rtc_wkalrm' declared inside parameter list include/asm/rtc.h:24: warning: 'struct rtc_wkalrm' declared inside parameter list include/asm/rtc.h:28: warning: 'struct rtc_time' declared inside parameter list include/asm/rtc.h:33: warning: 'struct rtc_time' declared inside parameter list include/asm/rtc.h: In function 'rtc_periodic_alarm': include/asm/rtc.h:35: error: dereferencing pointer to incomplete type include/asm/rtc.h:36: error: dereferencing pointer to incomplete type include/asm/rtc.h:37: error: dereferencing pointer to incomplete type include/asm/rtc.h:38: error: dereferencing pointer to incomplete type include/asm/rtc.h:39: error: dereferencing pointer to incomplete type include/asm/rtc.h:40: error: dereferencing pointer to incomplete type drivers/rtc/rtc-cmos.c: At top level: drivers/rtc/rtc-cmos.c:63: warning: 'struct rtc_time' declared inside parameter list drivers/rtc/rtc-cmos.c: In function 'cmos_read_time': drivers/rtc/rtc-cmos.c:69: warning: implicit declaration of function 'get_rtc_time' drivers/rtc/rtc-cmos.c: At top level: drivers/rtc/rtc-cmos.c:73: warning: 'struct rtc_time' declared inside parameter list drivers/rtc/rtc-cmos.c: In function 'cmos_set_time': drivers/rtc/rtc-cmos.c:81: warning: implicit declaration of function 'set_rtc_time' drivers/rtc/rtc-cmos.c: At top level: drivers/rtc/rtc-cmos.c:84: warning: 'struct rtc_wkalrm' declared inside parameter list drivers/rtc/rtc-cmos.c: In function 'cmos_read_alarm': drivers/rtc/rtc-cmos.c:96: error: dereferencing pointer to incomplete type drivers/rtc/rtc-cmos.c:97: error: dereferencing pointer to incomplete type drivers/rtc/rtc-cmos.c:99: error: 'rtc_lock' undeclared (first use in this function) drivers/rtc/rtc-cmos.c:99: error: (Each undeclared identifier is reported only once drivers/rtc/rtc-cmos.c:99: error: for each function it appears in.) drivers/rtc/rtc-cmos.c:100: error: dereferencing pointer to incomplete type drivers/rtc/rtc-cmos.c:100: warning: implicit declaration of function 'CMOS_READ' drivers/rtc/rtc-cmos.c:100: error: 'RTC_SECONDS_ALARM' undeclared (first use in this function) drivers/rtc/rtc-cmos.c:101: error: dereferencing pointer to incomplete type drivers/rtc/rtc-cmos.c:101: error: 'RTC_MINUTES_ALARM' undeclared (first use in this function)