kernel-fxtec-pro1x/include/vdso
Vincenzo Frascino 77f35d3b66 UPSTREAM: vdso: Fix clocksource.h macro detection
CONFIG_GENERIC_GETTIMEOFDAY is a sufficient condition to verify if an
architecture implements asm/vdso/clocksource.h or not. The current
implementation wrongly assumes that the same is true for the config
option CONFIG_ARCH_CLOCKSOURCE_DATA.

This results in a series of build errors on ia64/sparc/sparc64 like this:

  In file included from ./include/linux/clocksource.h:31,
                   from ./include/linux/clockchips.h:14,
                   from ./include/linux/tick.h:8,
                   from fs/proc/stat.c:15:
  ./include/vdso/clocksource.h:9:10: fatal error: asm/vdso/clocksource.h:
  No such file or directory
      9 | #include <asm/vdso/clocksource.h>
        |          ^~~~~~~~~~~~~~~~~~~~~~~~

Fix the issue removing the unneeded config condition.

Fixes: 14ee2ac618e4 ("linux/clocksource.h: Extract common header for vDSO")
Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200323133920.46546-1-vincenzo.frascino@arm.com
(cherry picked from commit ca214e2c1793058e3a1387f9e343cc5b1731db15)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 154668398
Change-Id: I5f8fbfb692ad69a114e1121df0755fa868d9f5ef
2020-05-03 16:11:10 +00:00
..
bits.h
clocksource.h UPSTREAM: vdso: Fix clocksource.h macro detection 2020-05-03 16:11:10 +00:00
const.h
datapage.h BACKPORT: lib/vdso: Enable common headers 2020-04-27 22:52:01 -07:00
helpers.h
jiffies.h UPSTREAM: linux/jiffies.h: Extract common header for vDSO 2020-04-27 22:52:00 -07:00
ktime.h UPSTREAM: linux/ktime.h: Extract common header for vDSO 2020-04-27 22:52:00 -07:00
limits.h UPSTREAM: linux/limits.h: Extract common header for vDSO 2020-04-27 22:51:59 -07:00
math64.h UPSTREAM: linux/math64.h: Extract common header for vDSO 2020-04-27 22:52:00 -07:00
processor.h UPSTREAM: common: Introduce processor.h 2020-04-27 22:52:00 -07:00
time.h BACKPORT: linux/time.h: Extract common header for vDSO 2020-04-27 22:52:00 -07:00
time32.h BACKPORT: linux/time32.h: Extract common header for vDSO 2020-04-27 22:52:00 -07:00
time64.h UPSTREAM: linux/time64.h: Extract common header for vDSO 2020-04-27 22:52:00 -07:00
vsyscall.h