Subject: linux-next: build failure after merge of the clockevents tree

From: Stephen Rothwell <[email-masked]>
Date: Mon, 3 Jun 2019 12:13:50 +1000

Hi Daniel,

After merging the clockevents tree, today's linux-next build (x86_64
allmodconfig) failed like this:

drivers/clocksource/timer-atmel-tcb.c: In function 'tcb_clksrc_init':
drivers/clocksource/timer-atmel-tcb.c:448:17: error: invalid use of undefined type 'struct delay_timer'
   tc_delay_timer.read_current_timer = tc_delay_timer_read32;
                 ^
drivers/clocksource/timer-atmel-tcb.c:461:17: error: invalid use of undefined type 'struct delay_timer'
   tc_delay_timer.read_current_timer = tc_delay_timer_read;
                 ^
drivers/clocksource/timer-atmel-tcb.c:476:16: error: invalid use of undefined type 'struct delay_timer'
  tc_delay_timer.freq = divided_rate;
                ^
drivers/clocksource/timer-atmel-tcb.c:477:2: error: implicit declaration of function 'register_current_timer_delay'; did you mean 'read_current_timer'? [-Werror=implicit-function-declaration]
  register_current_timer_delay(&tc_delay_timer);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  read_current_timer
drivers/clocksource/timer-atmel-tcb.c: At top level:
drivers/clocksource/timer-atmel-tcb.c:129:27: error: storage size of 'tc_delay_timer' isn't known
 static struct delay_timer tc_delay_timer;
                           ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors

Caused by commit

  dd40f5020581 ("clocksource/drivers/tcb_clksrc: Register delay timer")

I have reverted that commit for today.

-- 
Cheers,
Stephen Rothwell