Re: [PATCH 0/2] m68k RTC fixes

From: Alexandre Belloni
Date: Tue May 03 2016 - 09:40:50 EST


On 02/05/2016 at 10:46:21 +0200, Geert Uytterhoeven wrote :
> Hi Arnd, Alexandre,
>
> "[PATCH v3 02/16] rtc: cmos: move mc146818rtc code out of
> asm-generic/rtc.h" of Arnd's series "[PATCH v3 00/16] genrtc removal"
> caused two new build failures on m68k:
>
> bvme6000_defconfig:
>
> In file included from arch/m68k/bvme6000/rtc.c:19:
> include/linux/mc146818rtc.h: In function âmc146818_is_updatingâ:
> include/linux/mc146818rtc.h:138: error: implicit declaration of function âCMOS_READâ
> include/linux/mc146818rtc.h: In function âmc146818_get_timeâ:
> include/linux/mc146818rtc.h:189: error: âRTC_ALWAYS_BCDâ undeclared (first use in this function)
> include/linux/mc146818rtc.h:189: error: (Each undeclared identifier is reported only once
> include/linux/mc146818rtc.h:189: error: for each function it appears in.)
> include/linux/mc146818rtc.h: In function âmc146818_set_timeâ:
> include/linux/mc146818rtc.h:279: error: âRTC_ALWAYS_BCDâ undeclared (first use in this function)
> include/linux/mc146818rtc.h:290: error: implicit declaration of function âCMOS_WRITEâ
>
>
> mvme16x_defconfig:
>
> In file included from arch/m68k/mvme16x/rtc.c:18:
> include/linux/mc146818rtc.h: In function âmc146818_is_updatingâ:
> include/linux/mc146818rtc.h:138: error: implicit declaration of function âCMOS_READâ
> include/linux/mc146818rtc.h: In function âmc146818_get_timeâ:
> include/linux/mc146818rtc.h:189: error: âRTC_ALWAYS_BCDâ undeclared (first use in this function)
> include/linux/mc146818rtc.h:189: error: (Each undeclared identifier is reported only once
> include/linux/mc146818rtc.h:189: error: for each function it appears in.)
> include/linux/mc146818rtc.h: In function âmc146818_set_timeâ:
> include/linux/mc146818rtc.h:279: error: âRTC_ALWAYS_BCDâ undeclared (first use in this function)
> include/linux/mc146818rtc.h:290: error: implicit declaration of function âCMOS_WRITEâ
>
> These do not show up with a multi-platform config including Atari
> support, as arch/m68k/include/asm/mc146818rtc.h provides a definition of
> CMOS_READ() if CONFIG_ATARI=y.
>
> Fortunately the fixes are simple: replace <linux/mc146818rtc.h> by
> <linux/rtc.h>. This is safe to apply to current upstream, too.
>
> Queue strategy:
> 1. These are queued together with Arnd's series,
> 1. I queue them for v4.7 myself, but then the RTC tree must be mergest
> after the m68k tree,
> 2. I queue them for v4.6.
>
> As I currently don't have any m68k patches queued for v4.7, perhaps it's
> easiest if these are included with Arnd's series?
>

I suggest you take them for 4.7 anyway. I don't think I am confident
enough to merge Arnd's series for 4.7. Also, I doubt I'll get many acks
from some architecture maintainers.

So, my plan is to apply it on top of 4.7-rc1 and let it sit in
linux-next for a while.

--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com