path: root/include/vdso/clocksource.h
Commit message (Collapse)AuthorAgeFilesLines
* vdso: Fix clocksource.h macro detectionVincenzo Frascino2020-03-231-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 <> Signed-off-by: Vincenzo Frascino <> Signed-off-by: Borislav Petkov <> Link:
* linux/clocksource.h: Extract common header for vDSOVincenzo Frascino2020-03-211-0/+23
The vDSO library should only include the necessary headers required for a userspace library (UAPI and a minimal set of kernel headers). To make this possible it is necessary to isolate from the kernel headers the common parts that are strictly necessary to build the library. Split clocksource.h into linux and common headers to make the latter suitable for inclusion in the vDSO library. Signed-off-by: Vincenzo Frascino <> Signed-off-by: Thomas Gleixner <> Link: