mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
ARM: 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-5-db9f36d8d432@linutronix.de
This commit is contained in:
committed by
Thomas Gleixner
parent
abb1537388
commit
95216f4647
@@ -70,9 +70,11 @@ VERSION
|
|||||||
{
|
{
|
||||||
LINUX_2.6 {
|
LINUX_2.6 {
|
||||||
global:
|
global:
|
||||||
|
#ifdef CONFIG_COMPAT_32BIT_TIME
|
||||||
__vdso_clock_gettime;
|
__vdso_clock_gettime;
|
||||||
__vdso_gettimeofday;
|
__vdso_gettimeofday;
|
||||||
__vdso_clock_getres;
|
__vdso_clock_getres;
|
||||||
|
#endif /* CONFIG_COMPAT_32BIT_TIME */
|
||||||
__vdso_clock_gettime64;
|
__vdso_clock_gettime64;
|
||||||
__vdso_clock_getres_time64;
|
__vdso_clock_getres_time64;
|
||||||
local: *;
|
local: *;
|
||||||
|
|||||||
@@ -10,16 +10,17 @@
|
|||||||
#include <asm/unwind.h>
|
#include <asm/unwind.h>
|
||||||
#include <vdso/gettime.h>
|
#include <vdso/gettime.h>
|
||||||
|
|
||||||
|
#ifdef CONFIG_COMPAT_32BIT_TIME
|
||||||
int __vdso_clock_gettime(clockid_t clock,
|
int __vdso_clock_gettime(clockid_t clock,
|
||||||
struct old_timespec32 *ts)
|
struct old_timespec32 *ts)
|
||||||
{
|
{
|
||||||
return __cvdso_clock_gettime32(clock, ts);
|
return __cvdso_clock_gettime32(clock, ts);
|
||||||
}
|
}
|
||||||
|
|
||||||
int __vdso_clock_gettime64(clockid_t clock,
|
int __vdso_clock_getres(clockid_t clock_id,
|
||||||
struct __kernel_timespec *ts)
|
struct old_timespec32 *res)
|
||||||
{
|
{
|
||||||
return __cvdso_clock_gettime(clock, ts);
|
return __cvdso_clock_getres_time32(clock_id, res);
|
||||||
}
|
}
|
||||||
|
|
||||||
int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
|
int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
|
||||||
@@ -27,11 +28,12 @@ int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
|
|||||||
{
|
{
|
||||||
return __cvdso_gettimeofday(tv, tz);
|
return __cvdso_gettimeofday(tv, tz);
|
||||||
}
|
}
|
||||||
|
#endif /* CONFIG_COMPAT_32BIT_TIME */
|
||||||
|
|
||||||
int __vdso_clock_getres(clockid_t clock_id,
|
int __vdso_clock_gettime64(clockid_t clock,
|
||||||
struct old_timespec32 *res)
|
struct __kernel_timespec *ts)
|
||||||
{
|
{
|
||||||
return __cvdso_clock_getres_time32(clock_id, res);
|
return __cvdso_clock_gettime(clock, ts);
|
||||||
}
|
}
|
||||||
|
|
||||||
int __vdso_clock_getres_time64(clockid_t clock_id, struct __kernel_timespec *res)
|
int __vdso_clock_getres_time64(clockid_t clock_id, struct __kernel_timespec *res)
|
||||||
|
|||||||
Reference in New Issue
Block a user