Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4297567ybl; Mon, 13 Jan 2020 11:12:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxdB5HGCujHbPsFnGhulijt7ZPaFQhLRBYzWu6Xh5+cgWE1QBOsG4KBEIvVQ+okkhZz18Zy X-Received: by 2002:a9d:7c8a:: with SMTP id q10mr13072850otn.124.1578942738375; Mon, 13 Jan 2020 11:12:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578942738; cv=none; d=google.com; s=arc-20160816; b=ovCH+qMas03Q88n644l6x0O4A87yjcE3hQt9DYUmtsfASFlJyB25vKdTMpBc5L+mVJ MK5f6lsKf3JUsW5JIfdfa8kkWieIzecavuy7cm17SDMudtjD3DQx3+XnQ1CWfdHj/1aJ v9tfhN9AkFq1E+wUD+cSQd27pjPdC6MTKH9Jn3zLKlvp1vI+mUKiITgizWOKeJQxkCfs sv9I9p8Dr41PZ72f766tVV8MFUZvmvl4VaYQg5RHz4YxoTXinlmzJSvEZ45tLzZ3UavX FowvQQBEhZ31qzdMiW1+myQ6dSXf59uka7Ta6hJ2zKDF6I1tF0VxTpgpmm9f6+6S2E51 EJKw== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=GaowYrIFOeVKZpIAM4XDJrp2i70woIJzBa2ydQcExgw=; b=D22g7436HLhg+GX8r+f2DTQxL2nlikb2oD+E7YuVR/aXtUMH/S0siD0xC9Lp0DuCLo FCMv/pSIa92jgrZhQNjcK2k4VQ/GhpHsPn1Jfs/wg8O8MFP5wsotXgPad+JHIUPkifoS 7NBpwMhhcsAqJRWuUVDG7haHRbq5/2Ftx+AO1J/ZABCkQlCMAkgNCrpTTHgLhg1peKpu tZesAUsMVyw3rH9PmQN9RdTmZ9qmR4DV6lVmqMhCDz6YOUVmz4ejj8hUWgexoQzSNe3I KdRFndirKEAWKSfCrCRuB0JlaBfcaAZSFtpmNSN4NyxDgUdN9aw2dzZGJOSve+gMOqWE QPmQ== 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 r1si7142731otk.251.2020.01.13.11.12.05; Mon, 13 Jan 2020 11:12:18 -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; 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 S1729102AbgAMTJ5 (ORCPT + 99 others); Mon, 13 Jan 2020 14:09:57 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:40007 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729026AbgAMTJy (ORCPT ); Mon, 13 Jan 2020 14:09:54 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ir55y-0001CH-9h; Mon, 13 Jan 2020 20:09:50 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 6915A1C18E2; Mon, 13 Jan 2020 20:09:33 +0100 (CET) Date: Mon, 13 Jan 2020 19:09:33 -0000 From: "tip-bot2 for Vincenzo Frascino" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] lib/vdso: Remove checks on return value for 32 bit vDSO Cc: Vincenzo Frascino , Thomas Gleixner , x86 , LKML In-Reply-To: <20190830135902.20861-6-vincenzo.frascino@arm.com> References: <20190830135902.20861-6-vincenzo.frascino@arm.com> MIME-Version: 1.0 Message-ID: <157894257327.19145.11373398074511205232.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the timers/core branch of tip: Commit-ID: 9dd92f63f94fab4c04a5880a839abe1f74ee906c Gitweb: https://git.kernel.org/tip/9dd92f63f94fab4c04a5880a839abe1f74ee906c Author: Vincenzo Frascino AuthorDate: Fri, 30 Aug 2019 14:58:59 +01:00 Committer: Thomas Gleixner CommitterDate: Fri, 10 Jan 2020 21:14:05 +01:00 lib/vdso: Remove checks on return value for 32 bit vDSO Since all the architectures that support the generic vDSO library have been converted to support the 32 bit fallbacks it is not required anymore to check the return value of __cvdso_clock_get*time32_common() before updating the old_timespec fields. Remove the related checks from the generic vdso library. References: c60a32ea4f45 ("lib/vdso/32: Provide legacy syscall fallbacks") Signed-off-by: Vincenzo Frascino Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20190830135902.20861-6-vincenzo.frascino@arm.com --- lib/vdso/gettimeofday.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/vdso/gettimeofday.c b/lib/vdso/gettimeofday.c index cd3aacf..b676a98 100644 --- a/lib/vdso/gettimeofday.c +++ b/lib/vdso/gettimeofday.c @@ -129,10 +129,10 @@ __cvdso_clock_gettime32(clockid_t clock, struct old_timespec32 *res) if (unlikely(ret)) return clock_gettime32_fallback(clock, res); - if (likely(!ret)) { - res->tv_sec = ts.tv_sec; - res->tv_nsec = ts.tv_nsec; - } + /* For ret == 0 */ + res->tv_sec = ts.tv_sec; + res->tv_nsec = ts.tv_nsec; + return ret; } #endif /* BUILD_VDSO32 */ @@ -240,7 +240,7 @@ __cvdso_clock_getres_time32(clockid_t clock, struct old_timespec32 *res) if (unlikely(ret)) return clock_getres32_fallback(clock, res); - if (likely(!ret && res)) { + if (likely(res)) { res->tv_sec = ts.tv_sec; res->tv_nsec = ts.tv_nsec; }