Received: by 10.223.176.5 with SMTP id f5csp359942wra; Mon, 5 Feb 2018 23:42:03 -0800 (PST) X-Google-Smtp-Source: AH8x227i5vmIIQSNmfNomFSc2K3yc26BJ01HFw7MT95vcnd4OBsH38rqxaKLjIoP8nNjJdXvNwXq X-Received: by 2002:a17:902:396a:: with SMTP id e39-v6mr1096215plg.324.1517902923512; Mon, 05 Feb 2018 23:42:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517902923; cv=none; d=google.com; s=arc-20160816; b=rd5ZSHxhgCAlEhk21jk4EmSAoc5IWS5/sRBgalVFwQgSzVO6z0XnJCk/oeSWxjHORo gxKfIktIyppScZA+J8WU3uUkC/gQg6RhZ7gN1wpWIBRItdosHLVIc+Y0Otfn9/IvVEuk b4vGNazVC/aN8B+vJH11iunbpu4nVoWIo+RV954Z7/9QNGcEefHAN1fdHQwbyeDr9Cz/ a4cYMya88YuI91JXb6vY8JJJPEaaG2WmuRcYhhS5IFkoLF9hSvdPteNlTJSr1imjg80e 8fsq8a/eEhYIduqB5BTELM1LBdFh7iVdT6kvdQPX/hpKypYac1Adi5NqM6QP+56iRqVz re1g== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=KQ9yLceww5/wefMG/uy1a6a/MNfsXVt86zWTYCL+2CQ=; b=Hws7/35ubOt5sScXgUIT1G+xuMQPKHlfzN+9iP2OcHJnilS/v2BWLjTgn1ei7w0Blm kq2e8wstcAlA1Lnl450xcAObY41mHOTsWzhKu4pUh3j1k8FiNmYwjDxARDWEh2EoXJC1 Le4vnOmUB8WHi7P6kZTamPnJEyL0nwNWUc0UHzHooDDtVNuOsnS4lGP20d5PadFagMdx /ygUaA6kMM/K5xlaE8Xh0hJiMbmkIZnm+EyTwfINPu0ytoS1B7vWjIen0kL56urVL2zs 8h98ejwFFL+5R4f9C0/btBIvzANomWExyv2sBYH0tI7OPFnOYSgyJdBg85wAQwoqu/Zl XADA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r4AWF50t; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si907520pgf.354.2018.02.05.23.41.49; Mon, 05 Feb 2018 23:42:03 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r4AWF50t; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752531AbeBFHlW (ORCPT + 99 others); Tue, 6 Feb 2018 02:41:22 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:40815 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751835AbeBFHlS (ORCPT ); Tue, 6 Feb 2018 02:41:18 -0500 Received: by mail-it0-f68.google.com with SMTP id 196so1330156iti.5; Mon, 05 Feb 2018 23:41:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KQ9yLceww5/wefMG/uy1a6a/MNfsXVt86zWTYCL+2CQ=; b=r4AWF50tbeVbOfr9+P1F/PJZCeHrdwwdsWzh0gxkkNY9ZxLDfj7r1RpyjX1e5bTkqE PBArHqFzy3w1iuQHGC92ze50ADOAhS9GqTTGze1Kf3rvxfZbRRMXgLGQk24a5CAHEKlR r7pGOIbjKIf9QvqngZlW1cp1mZB2Iy3dMYt4/LiA8M+Ydj+/jj5eDR+/a1coO2Ws3pws HKRudiBmEMm6pXMs2ZUynrGjJKLPH9n7gE1/yu+1ftUkiYluJasynSaVlNgFQixyz4bc UswgK7e8ttkV3UiHYu9tP7leZreApdSRi6Z1ylgMgZy5ZYpfPF8FArz5KwgFQ34bIiVO U5zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KQ9yLceww5/wefMG/uy1a6a/MNfsXVt86zWTYCL+2CQ=; b=Ih5zYXw287tozDMv6siqkNgRZM8x68o+Y9x/tl56ZvkgXCCte7g8vIj2rl0Ca0VvHj YR8lKHWVNPuOG4IsaRhfM3DZHpDmPIh4gOYEKysRaI5McDF5DyA9ZbYOUyHppoBZYny4 AKuYy9wysPpGLusLxi6w4dGMmwbG5rOtxlx5YGUWMz7pDdUX+XXVNXjxrG/JTnjdOvfw LchCdNZ3JDAOMsn3mQzmFKOD0EjHPRBSGOIxjdbUqzaMZMSdIypqQM+sxUqjWwpjmAU/ if2pSj+68daxutvjDw9VoaazeODRUFSiqZ6eh4SGi5rYVXuz8EqavMoAKnqH/3yJjIJL o/1A== X-Gm-Message-State: APf1xPAFlNck/iJFXzlOtMUN0jTytVODfHl1GhylQu4MZF8QmcqLnlOh r4NxwfUqcItW+hOV2p0uUu5GD9MzRagJWkF/p44= X-Received: by 10.36.66.14 with SMTP id i14mr1920672itb.32.1517902877434; Mon, 05 Feb 2018 23:41:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.175.34 with HTTP; Mon, 5 Feb 2018 23:41:16 -0800 (PST) In-Reply-To: References: <4a602db0a58cc858515c3c669d5ac34c567b061c.1515766253.git.green.hu@gmail.com> From: Vincent Chen Date: Tue, 6 Feb 2018 15:41:16 +0800 Message-ID: Subject: Re: [PATCH v6 19/36] nds32: VDSO support To: Arnd Bergmann Cc: Greentime Hu , Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , DTML , Al Viro , David Howells , Will Deacon , Daniel Lezcano , linux-serial@vger.kernel.org, Geert Uytterhoeven , Linus Walleij , Mark Rutland , Greg KH , Guo Ren , Randy Dunlap , David Miller , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Vincent Chen 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 2018-01-18 18:28 GMT+08:00 Arnd Bergmann : > On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: >> From: Greentime Hu >> >> This patch adds VDSO support. The VDSO code is currently used for >> sys_rt_sigreturn() and optimised gettimeofday() (using the SoC timer counter). >> >> Signed-off-by: Vincent Chen >> Signed-off-by: Greentime Hu > > Acked-by: Arnd Bergmann Dear Arnd Bergmann: We find a small bug here which make LTP 20170929 clock_getres01 fail. The bug is in __vdso_clock_getres() function. When argument res is NULL, -EFAULT error code is returned now. But, the returned value is 0 for SyS_clock_getres under the same conditions. Therefore, testcase thinks it is a bug. I will modify the code as below and add it in the next version patch if you think it is OK. @@ -209,7 +209,7 @@ static notrace int clock_getres_fallback( ... { if (res == NULL) - return -EFAULT; + return 0; Thanks Vincnet