mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
sparc: vdso: Respect COMPAT_32BIT_TIME
If CONFIG_COMPAT_32BIT_TIME is disabled then the vDSO should not provide any 32-bit time related functionality. This is the intended effect of the kconfig option and also the fallback system calls would also not be implemented. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Link: https://patch.msgid.link/20260702-vdso-compat_32bit_time-v3-8-db9f36d8d432@linutronix.de
This commit is contained in:
committed by
Thomas Gleixner
parent
377e3f2d41
commit
2700297b69
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "../../../../lib/vdso/gettimeofday.c"
|
||||
|
||||
#if defined(CONFIG_SPARC64) || defined(CONFIG_COMPAT_32BIT_TIME)
|
||||
int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
|
||||
{
|
||||
return __cvdso_gettimeofday(tv, tz);
|
||||
@@ -28,6 +29,7 @@ int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
|
||||
|
||||
int gettimeofday(struct __kernel_old_timeval *, struct timezone *)
|
||||
__weak __alias(__vdso_gettimeofday);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SPARC64)
|
||||
int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
|
||||
@@ -40,6 +42,7 @@ int clock_gettime(clockid_t, struct __kernel_timespec *)
|
||||
|
||||
#else
|
||||
|
||||
#if defined(CONFIG_COMPAT_32BIT_TIME)
|
||||
int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts)
|
||||
{
|
||||
return __cvdso_clock_gettime32(clock, ts);
|
||||
@@ -47,6 +50,7 @@ int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts)
|
||||
|
||||
int clock_gettime(clockid_t, struct old_timespec32 *)
|
||||
__weak __alias(__vdso_clock_gettime);
|
||||
#endif
|
||||
|
||||
int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts)
|
||||
{
|
||||
|
||||
@@ -15,12 +15,14 @@
|
||||
VERSION {
|
||||
LINUX_2.6 {
|
||||
global:
|
||||
#ifdef CONFIG_COMPAT_32BIT_TIME
|
||||
clock_gettime;
|
||||
__vdso_clock_gettime;
|
||||
clock_gettime64;
|
||||
__vdso_clock_gettime64;
|
||||
gettimeofday;
|
||||
__vdso_gettimeofday;
|
||||
#endif
|
||||
clock_gettime64;
|
||||
__vdso_clock_gettime64;
|
||||
local: *;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user