lkml.org 
[lkml]   [2019]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectlinux-next: build failure after merge of the rtc tree
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
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2019-10-04 06:39    [W:0.049 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site