From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com ([217.140.101.70]:37782 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727984AbeLMQ7V (ORCPT ); Thu, 13 Dec 2018 11:59:21 -0500 From: Vincenzo Frascino Subject: [PATCH v3 12/24] lib: vdso: Add compat support Date: Thu, 13 Dec 2018 16:57:34 +0000 Message-ID: <20181213165746.56930-13-vincenzo.frascino@arm.com> In-Reply-To: <20181213165746.56930-1-vincenzo.frascino@arm.com> References: <20181213165746.56930-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Catalin Marinas , Will Deacon , Arnd Bergmann , Russell King , Ralf Baechle , Paul Burton , Daniel Lezcano , Thomas Gleixner , Mark Salyzyn , Peter Collingbourne Message-ID: <20181213165734.t6VaEXCw0qH5FbN5g8r2TEzDJ0FWWDUKePDnNH6-Bow@z> 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 functions. Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Vincenzo Frascino --- lib/vdso/gettimeofday.c | 4 ++++ 1 file changed, 4 insertions(+) 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. */ +#ifdef ENABLE_COMPAT_VDSO +#include +#else #include +#endif /* ENABLE_COMPAT_VDSO */ #ifdef CONFIG_HAVE_HW_COUNTER static notrace int do_hres(const struct vdso_data *vd, -- 2.19.2