mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 08:02:07 +00:00
ca214e2c17
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: 14ee2ac618
("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
23 lines
479 B
C
23 lines
479 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __VDSO_CLOCKSOURCE_H
|
|
#define __VDSO_CLOCKSOURCE_H
|
|
|
|
#include <vdso/limits.h>
|
|
|
|
#ifdef CONFIG_GENERIC_GETTIMEOFDAY
|
|
#include <asm/vdso/clocksource.h>
|
|
#endif /* CONFIG_GENERIC_GETTIMEOFDAY */
|
|
|
|
enum vdso_clock_mode {
|
|
VDSO_CLOCKMODE_NONE,
|
|
#ifdef CONFIG_GENERIC_GETTIMEOFDAY
|
|
VDSO_ARCH_CLOCKMODES,
|
|
#endif
|
|
VDSO_CLOCKMODE_MAX,
|
|
|
|
/* Indicator for time namespace VDSO */
|
|
VDSO_CLOCKMODE_TIMENS = INT_MAX
|
|
};
|
|
|
|
#endif /* __VDSO_CLOCKSOURCE_H */
|