Skip to contentSkip to conversation

linux-next: build failure after merge of the rtc tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Sep 27, 2021 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

drivers/rtc/rtc-msc313.c: In function 'msc313_rtc_read_alarm':
drivers/rtc/rtc-msc313.c:54:12: error: implicit declaration of function 'readw' [-Werror=implicit-function-declaration]
54 | seconds = readw(priv->rtc_base + REG_RTC_MATCH_VAL_L)

      |            ^~~~~
drivers/rtc/rtc-msc313.c: In function 'msc313_rtc_alarm_irq_enable':
drivers/rtc/rtc-msc313.c:75:2: error: implicit declaration of function 'writew' [-Werror=implicit-function-declaration]
   75 |  writew(reg, priv->rtc_base + REG_RTC_CTRL);
      |  ^~~~~~

Caused by commit

be7d9c9161b9 ("rtc: Add support for the MSTAR MSC313 RTC")

I have used the rtc tree from next-20210924 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi,

Whoops, my bad, it is probably caused by missing CONFIG_WERROR on my side. It seems to be fixed by
https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git/commit/?id=27ff63eb076c31086e0a72d41b5c635193a58516

Regards,
Romain

Quoted 24 lines · Stephen Rothwell

Hi all,

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

drivers/rtc/rtc-msc313.c: In function 'msc313_rtc_read_alarm':
drivers/rtc/rtc-msc313.c:54:12: error: implicit declaration of function 'readw' [-Werror=implicit-function-declaration]
54 | seconds = readw(priv->rtc_base + REG_RTC_MATCH_VAL_L)

      |            ^~~~~
drivers/rtc/rtc-msc313.c: In function 'msc313_rtc_alarm_irq_enable':
drivers/rtc/rtc-msc313.c:75:2: error: implicit declaration of function 'writew' [-Werror=implicit-function-declaration]
   75 |  writew(reg, priv->rtc_base + REG_RTC_CTRL);
      |  ^~~~~~

Caused by commit

be7d9c9161b9 ("rtc: Add support for the MSTAR MSC313 RTC")

I have used the rtc tree from next-20210924 for today.

--
Cheers,
Stephen Rothwell