Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp302627ybi; Fri, 31 May 2019 01:34:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPF4bhCw5A7VwYhASzpd8easJheqXwEb4T5rXN8tBewNupw4rkLEJLmU1R6hlRD09m+qxr X-Received: by 2002:a63:4104:: with SMTP id o4mr7893370pga.345.1559291647751; Fri, 31 May 2019 01:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559291647; cv=none; d=google.com; s=arc-20160816; b=Owqvyx2UaN6GeKeEe1xsH1vh2ztxA5bQPwxdO0+pvXlO+AQqjw9KagaO4ALE6jqxw0 LGdscBwLSRHV3KI5XaEuaE6ZOzUc7LzaKuqKgplZTHJB6f5fthH9W6boEVQjLHh7Iw1F Efu7PZBMFoYy5YFMK57fWKkkolYQL5uPYgOcb2ouamIfhVusUqZqT06HAqykP7jskAuZ vf0ed3E6DQHu5YksJq+5Y7HDiGYwnWbnU2fJDWsdDTdOz0yh1BEgiXWEKKXuGo2TmWfx I9s8rEOai4E2AvN7mXrxoMKl+ufo3aTZznA6W8Yqf5tSjdTCpkfy1gEj+17MD7RF7CTw rBPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=igjuJGXMsnGZDhorJwfUv0+nOH3lmOMpPh5Fkg034nY=; b=EvKm+YCb9jbIbiklIiesXMSTjjvA7A6LsTj/JWFmxYt9pBim7CCqhpUZsckyLM4/Nc gIJKQocXxptQ/PVddarI5lxt5rTuKWskHIgifBAajm4nidxlVrvLIhSPXnKWhR7fJRpj RlUfwX3oaJUGFWfspQrEsuP8uPKzbXud9ib0pTiImTUagatF3rxDvRHUHfNg0yFRY6wM UoimJkDJbtHT88CFwNaleUOH0StUyK6KEeBoQGkOjTNtQ0XO98Hzhr4l7WdF7cicGTEf Ss9cGOvMOprAblRBb2k1grLtiyEr29hR53SrdzQvgQPEWdQ4DVrH6oPNSq3KVG9e5tn6 th3w== 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 3si5390329pfp.288.2019.05.31.01.33.51; Fri, 31 May 2019 01:34:07 -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 S1726798AbfEaIck (ORCPT + 99 others); Fri, 31 May 2019 04:32:40 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:46086 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbfEaIcj (ORCPT ); Fri, 31 May 2019 04:32:39 -0400 Received: by mail-qt1-f195.google.com with SMTP id z19so10334793qtz.13; Fri, 31 May 2019 01:32:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=igjuJGXMsnGZDhorJwfUv0+nOH3lmOMpPh5Fkg034nY=; b=uQzHWqI/4n7WQG8Knyd+6VFA9p/5C2AoVmmzMD3u/8Bsbt1DRPul91CW4nlDvBUOOJ D9NoAfnBj9XykWe7CYVyo/eyaqWW6tyKl9hYNKXSIiAS3KS1gSnW4+AnEuJ5RIA0ED1I /Zu8YLd457x8YKugDUghld9yALZW3fZ9e6ygQBsU6wLuj76tqZCyldWIBIcR3zxVRo/r j75DKKmtuQcHC9huDYCxJDaT4xC3zUvN9mFOOobFuFZ7ykz3OPJ7sECgZgEr2NV5GG/n lYX6WAcJhzmnwYlBG/yFhIBXeui3m78mpObwmGqftm3a0bpI93787Fd0o6RlF2hy3xR6 8r5A== X-Gm-Message-State: APjAAAWHbibYO0xBA6Y8g2dRbg4BM0anSwitaigTcRspFY+MepoIRyKe YmGeOpdh2IIS/kP0VbnjY3aLf00WyhoQmGr23rs= X-Received: by 2002:a0c:9e0f:: with SMTP id p15mr7572827qve.176.1559291558659; Fri, 31 May 2019 01:32:38 -0700 (PDT) MIME-Version: 1.0 References: <20190530141531.43462-1-vincenzo.frascino@arm.com> <20190530141531.43462-17-vincenzo.frascino@arm.com> In-Reply-To: <20190530141531.43462-17-vincenzo.frascino@arm.com> From: Arnd Bergmann Date: Fri, 31 May 2019 10:32:22 +0200 Message-ID: Subject: Re: [PATCH v6 16/19] arm: Add support for generic vDSO To: Vincenzo Frascino Cc: linux-arch , Linux ARM , Linux Kernel Mailing List , linux-mips@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" , Catalin Marinas , Will Deacon , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 30, 2019 at 4:16 PM Vincenzo Frascino wrote: > diff --git a/arch/arm/include/asm/vdso/gettimeofday.h b/arch/arm/include/asm/vdso/gettimeofday.h > new file mode 100644 > index 000000000000..eeeb319840ba > --- /dev/null > +++ b/arch/arm/include/asm/vdso/gettimeofday.h > @@ -0,0 +1,96 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Copyright (C) 2018 ARM Limited > + */ > +#ifndef __ASM_VDSO_GETTIMEOFDAY_H > +#define __ASM_VDSO_GETTIMEOFDAY_H > + > +#ifndef __ASSEMBLY__ > + > +#include > +#include > +#include > +#include > + > +#ifndef CONFIG_AEABI > +#error This code depends on AEABI system call conventions > +#endif Instead of an #error here, I would use a Kconfig conditional and make it 'select HAVE_GENERIC_VDSO if AEABI' > diff --git a/arch/arm/vdso/vdso.lds.S b/arch/arm/vdso/vdso.lds.S > index 89ca89f12d23..05581140fd12 100644 > --- a/arch/arm/vdso/vdso.lds.S > +++ b/arch/arm/vdso/vdso.lds.S > @@ -82,6 +82,8 @@ VERSION > global: > __vdso_clock_gettime; > __vdso_gettimeofday; > + __vdso_clock_getres; > + __vdso_clock_gettime64; > local: *; > }; Why are you adding __vdso_clock_getres here? I would probably leave the addition of the new entry point(s) for a separate patch at the end, adding __vdso_clock_gettime64 to all 32-bit ABIs at once, since while that part is a trivial change, it's also user visible and deserves its own changelog text. Arnd