From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com ([217.140.101.70]:40016 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730385AbeK3EMg (ORCPT ); Thu, 29 Nov 2018 23:12:36 -0500 From: Vincenzo Frascino Subject: [PATCH v2 16/28] lib: vdso: Add compat support Date: Thu, 29 Nov 2018 17:05:18 +0000 Message-ID: <20181129170530.37789-17-vincenzo.frascino@arm.com> In-Reply-To: <20181129170530.37789-1-vincenzo.frascino@arm.com> References: <20181129170530.37789-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: <20181129170518.rTuRjwkBIBbXs9BRQiIBoDXtupXwT9qx8qZG2uxlomI@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 a8cfeeb1f40a..19a5337fd066 100644 --- a/lib/vdso/gettimeofday.c +++ b/lib/vdso/gettimeofday.c @@ -15,7 +15,11 @@ #include #include +#ifdef ENABLE_COMPAT_VDSO +#include +#else #include +#endif /* ENABLE_COMPAT_VDSO */ /* To improve performances, in this file, __always_inline it is used * for the functions called multiple times. -- 2.19.2