Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4297705ybl; Mon, 13 Jan 2020 11:12:26 -0800 (PST) X-Google-Smtp-Source: APXvYqy8QVoEb3cLdofxvqqC69b3uySqcs1GnrbHbkGhOwHDlhEX5+W1bMOdoVtp/RmvyfCm9k4N X-Received: by 2002:a05:6830:1251:: with SMTP id s17mr13732696otp.108.1578942746057; Mon, 13 Jan 2020 11:12:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578942746; cv=none; d=google.com; s=arc-20160816; b=vConQf+JEIZeYPe65N6VvIqSVnC5cAjMmy/ZxcnsGPyANn8ceWGk7eQ90jcstjz0B1 NmRBOgmbLypdKhOQl13XEPznalxTN8EpjSw24sLJ6QDrdpn/bAKxWXmbqQMi2grKYxtG 1s+lBF+6TRvrzn4zj0C/cMUKs1mlhH68ilf5GYm+Sud8Gdmg58Rqhmv7I7ynuFJ//2Kl Dn9Pah5ruTyVuU7oKuWwLCJ43KYji7BEa50XZZA1p/z8PHxYGUkhTDm/5hwFc2lmE244 6v0jWF96F3WPGHDhzHtHvsjj1oRRM4cFoK3ZF+MxISLx2Y9yIpi3D2bxmh8QjQ6pK2VW lT1Q== 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=YirwhCsqLKsVwzesiD4RTRLMGxlnoTR0kdZpTHM7Xqo=; b=kRQg70el/TR59wnDY1gLVNRL/FoBZ3LWzWSsp2JzO4BpAVEqUXgiE5UX1BExkQ3YzV M8n8Lx/Qcgs8wzJrOeWWBEwWbJDOIyCmdC7sneQ1iTvFyG6jcGr2MACI+Mz+pAGeu9Gq iwC2wDb4b1RawlFKlUSSTL38Xwe7U/we6jr56MKlN1/TyuOVkmPJ54lieKesLR6k+zHv oyqyKozKF6t27JF/GYDadgGApPp5x4QJg9ThrAsnrv6Kq+jhWH/4mHIzlmpPB11kdARb oyodyzw0Qsl7Q4A8ThxWL9R7YudkmiOWdyjenWi9wVD1NTqwjpyv198WzRFrkk0NqGrE 4hMA== 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 h15si6348215oih.130.2020.01.13.11.12.14; Mon, 13 Jan 2020 11:12:26 -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 S1729146AbgAMTKC (ORCPT + 99 others); Mon, 13 Jan 2020 14:10:02 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:40024 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728984AbgAMTJ5 (ORCPT ); Mon, 13 Jan 2020 14:09:57 -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 1ir562-0001DD-36; Mon, 13 Jan 2020 20:09:54 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id EC1861C18F3; 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: Build 32 bit specific functions in the right context Cc: Vincenzo Frascino , Thomas Gleixner , Andy Lutomirski , x86 , LKML In-Reply-To: <20190830135902.20861-3-vincenzo.frascino@arm.com> References: <20190830135902.20861-3-vincenzo.frascino@arm.com> MIME-Version: 1.0 Message-ID: <157894257379.19145.1409609850612324002.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: 760554e20191c449d4bacd4767129262a4a40fba Gitweb: https://git.kernel.org/tip/760554e20191c449d4bacd4767129262a4a40fba Author: Vincenzo Frascino AuthorDate: Fri, 30 Aug 2019 14:58:56 +01:00 Committer: Thomas Gleixner CommitterDate: Fri, 10 Jan 2020 21:14:05 +01:00 lib/vdso: Build 32 bit specific functions in the right context clock_gettime32 and clock_getres_time32 should be compiled only with a 32 bit vdso library. Exclude these symbols when BUILD_VDSO32 is not defined. Signed-off-by: Vincenzo Frascino Signed-off-by: Thomas Gleixner Reviewed-by: Andy Lutomirski Link: https://lore.kernel.org/r/20190830135902.20861-3-vincenzo.frascino@arm.com --- lib/vdso/gettimeofday.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/vdso/gettimeofday.c b/lib/vdso/gettimeofday.c index 42bd8ab..8e77071 100644 --- a/lib/vdso/gettimeofday.c +++ b/lib/vdso/gettimeofday.c @@ -117,6 +117,7 @@ __cvdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) return 0; } +#ifdef BUILD_VDSO32 static __maybe_unused int __cvdso_clock_gettime32(clockid_t clock, struct old_timespec32 *res) { @@ -139,6 +140,7 @@ __cvdso_clock_gettime32(clockid_t clock, struct old_timespec32 *res) } return ret; } +#endif /* BUILD_VDSO32 */ static __maybe_unused int __cvdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) @@ -231,6 +233,7 @@ int __cvdso_clock_getres(clockid_t clock, struct __kernel_timespec *res) return 0; } +#ifdef BUILD_VDSO32 static __maybe_unused int __cvdso_clock_getres_time32(clockid_t clock, struct old_timespec32 *res) { @@ -253,4 +256,5 @@ __cvdso_clock_getres_time32(clockid_t clock, struct old_timespec32 *res) } return ret; } +#endif /* BUILD_VDSO32 */ #endif /* VDSO_HAS_CLOCK_GETRES */