[v3,12/24] lib: vdso: Add compat support
diff mbox series

Message ID 20181213165746.56930-13-vincenzo.frascino@arm.com
State New
Headers show
  • Unify vDSOs across more architectures
Related show

Commit Message

Vincenzo Frascino Dec. 13, 2018, 4:57 p.m. UTC
Some 64 bit architectures have support for 32 bit applications that
require a separate version of the vDSOs.

This patch adds support to the generic code for compat fallback

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
 lib/vdso/gettimeofday.c | 4 ++++
 1 file changed, 4 insertions(+)

diff mbox series

diff --git a/lib/vdso/gettimeofday.c b/lib/vdso/gettimeofday.c
index 30010d25bf5b..e21bd58139c8 100644
--- a/lib/vdso/gettimeofday.c
+++ b/lib/vdso/gettimeofday.c
@@ -28,7 +28,11 @@ 
  * - clock_gettime_fallback(): fallback for clock_gettime.
  * - clock_getres_fallback(): fallback for clock_getres.
+#include <asm/vdso/compat_gettimeofday.h>
 #include <asm/vdso/gettimeofday.h>
+#endif /* ENABLE_COMPAT_VDSO */
 static notrace int do_hres(const struct vdso_data *vd,