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

From: Stephen Rothwell
Date: Fri Oct 04 2019 - 00:37:54 EST


Hi all,

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

drivers/rtc/rtc-mc146818-lib.c: In function 'mc146818_set_time':
drivers/rtc/rtc-mc146818-lib.c:176:6: error: 'boot_cpu_data' undeclared (first use in this function); did you mean 'bootmem_data'?
176 | if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD ||
| ^~~~~~~~~~~~~
| bootmem_data
drivers/rtc/rtc-mc146818-lib.c:176:6: note: each undeclared identifier is reported only once for each function it appears in
drivers/rtc/rtc-mc146818-lib.c:176:34: error: 'X86_VENDOR_AMD' undeclared (first use in this function); did you mean 'X86_VENDOR_ANY'?
176 | if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD ||
| ^~~~~~~~~~~~~~
| X86_VENDOR_ANY
drivers/rtc/rtc-mc146818-lib.c:177:34: error: 'X86_VENDOR_HYGON' undeclared (first use in this function); did you mean 'X86_VENDOR_ANY'?
177 | boot_cpu_data.x86_vendor == X86_VENDOR_HYGON)
| ^~~~~~~~~~~~~~~~
| X86_VENDOR_ANY

Caused by commit

1e2c8aadedbe ("rtc: cmos: fix the AltCentury value on AMD/Hygon platform")

This driver file is built for several different architecture, but
the added code is X86 specific :-(

I have reverted that commit for today.

--
Cheers,
Stephen Rothwell

Attachment: pgpmA6rxDv0Kp.pgp
Description: OpenPGP digital signature