Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp822619ybi; Thu, 30 May 2019 07:18:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqTIP7TmhFfIVOMOH6vK508RpW8bNGfCyCf8zPVBH6+Lr2SWpBshx6Gi/Y4YoB2ln2FJrz X-Received: by 2002:a62:bd0e:: with SMTP id a14mr4035881pff.44.1559225897079; Thu, 30 May 2019 07:18:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559225897; cv=none; d=google.com; s=arc-20160816; b=SIlZ42EmRQdEGrQJfbzcJX5+PbohYpug4tGSUJxfV6DKlRv+Wbdj9IEQsF2m17xxP+ xE27xm0oKs5NKPy2OJq3unPpzfBqKPmZtUswKZhcOpKSgrrEbZXC3WZIzuGF/2dha570 kf/ay+/UB19Z6q49yLTJWWhj47aUhZTVnA4HMIW1shkGFrkmMxXAln+2EPC9LF732Z9I uK8tW6KFm5uly4U9p52W7sxY1BVEYz94bV/T4QLAM2H0tg0oJAsUyZV5a9f9duDyvULq N5maf/M2J3uVNpOLAKQRxmN7Feqs3VjZU/LV0IXTpL9k4iiDahaaMqaMJYZ5xI9BntQX 6g+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4d67tEcWpYL2uedvqlRFVZ57mwup7kMSj9ZrFyirgTg=; b=02Lf+6nA8wU7pvu+3t7mJ0CvnoQjQ2XFxKH3UiAhIw0CRBJF8ter5Wwl23UG9xDRf8 Kmk5NGEvTEpzlMoI2lfEh1pWUGbxKofWQYe+kNHm/9qxVa6JZpjsE5Aj5xB2fTdU6YG7 EhFPUoarWSnXHOBTMnGhy7G2YAc4slUrBNsFvTch2iwhkkRgOuZ1VDPBa9E+V3oKDC9/ 9Y0CHgYZoDOEoNo/Gustgao2Xv9HfxAiHSrrWc4iuaFgZcGSV4OpiWt2a03Gkfn6Fsrx Mu5tKvTMJ9IQ3WQI50com3wiI9SsJiEwXFwlqwT5balusrHowCjCaLqs06L0QfJj4vLZ v2pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t5si3254208pgj.258.2019.05.30.07.17.57; Thu, 30 May 2019 07:18:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727387AbfE3OQR (ORCPT + 99 others); Thu, 30 May 2019 10:16:17 -0400 Received: from foss.arm.com ([217.140.101.70]:36654 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727368AbfE3OQQ (ORCPT ); Thu, 30 May 2019 10:16:16 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B42C7165C; Thu, 30 May 2019 07:16:15 -0700 (PDT) Received: from e119884-lin.cambridge.arm.com (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9C8AF3F59C; Thu, 30 May 2019 07:16:12 -0700 (PDT) From: Vincenzo Frascino To: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: Catalin Marinas , Will Deacon , Arnd Bergmann , Russell King , Ralf Baechle , Paul Burton , Daniel Lezcano , Thomas Gleixner , Mark Salyzyn , Peter Collingbourne , Shuah Khan , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , Huw Davies Subject: [PATCH v6 09/19] lib: vdso: Add compat support Date: Thu, 30 May 2019 15:15:21 +0100 Message-Id: <20190530141531.43462-10-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530141531.43462-1-vincenzo.frascino@arm.com> References: <20190530141531.43462-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some 64 bit architectures have support for 32 bit applications that require a separate version of the vDSOs. Add 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 a226675731f4..44b9c6a0cb95 100644 --- a/lib/vdso/gettimeofday.c +++ b/lib/vdso/gettimeofday.c @@ -21,7 +21,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 */ static notrace int do_hres(const struct vdso_data *vd, clockid_t clk, -- 2.21.0