- 积分
- 44
贡献273
飞刀81 FD
注册时间2021-10-25
在线时间12 小时
|
楼主 |
发表于 2022-1-10 18:09:40
|
显示全部楼层
按照这个步骤编译报错还是同上,单独编译kernel,会出现这样的报错:
drivers/clocksource/sunxi_timer.c: In function 'sunxi_timer_interrupt':
drivers/clocksource/sunxi_timer.c:133:5: error: dereferencing pointer to incomplete type 'struct clock_event_device'
evt->event_handler(evt);
^
drivers/clocksource/sunxi_timer.c: In function 'sunxi_timer_init':
drivers/clocksource/sunxi_timer.c:207:2: error: invalid use of undefined type 'struct clock_event_device'
sunxi_clockevent.mult = div_sc(rate / prescale,
^
drivers/clocksource/sunxi_timer.c:207:26: error: implicit declaration of function 'div_sc' [-Werror=implicit-function-declaration]
sunxi_clockevent.mult = div_sc(rate / prescale,
^
drivers/clocksource/sunxi_timer.c:209:5: error: invalid use of undefined type 'struct clock_event_device'
sunxi_clockevent.shift);
^
drivers/clocksource/sunxi_timer.c:210:2: error: invalid use of undefined type 'struct clock_event_device'
sunxi_clockevent.max_delta_ns = clockevent_delta2ns(0x7fffffff,
^
drivers/clocksource/sunxi_timer.c:210:34: error: implicit declaration of function 'clockevent_delta2ns' [-Werror=implicit-function-declaration]
sunxi_clockevent.max_delta_ns = clockevent_delta2ns(0x7fffffff,
^
drivers/clocksource/sunxi_timer.c:212:2: error: invalid use of undefined type 'struct clock_event_device'
sunxi_clockevent.min_delta_ns = clockevent_delta2ns(0x10,
^
drivers/clocksource/sunxi_timer.c:214:2: error: invalid use of undefined type 'struct clock_event_device'
sunxi_clockevent.cpumask = cpumask_of(0);
|
|