From patchwork Fri Dec 7 13:48:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 153158 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp521991ljp; Fri, 7 Dec 2018 05:50:02 -0800 (PST) X-Google-Smtp-Source: AFSGD/VyJLHuNnxquer7pAqwolbUTY+wht+wlZzWLIfYD9OcHlCG8LPRsyTmuymWN9fQLNGFhRpJ X-Received: by 2002:a62:68c5:: with SMTP id d188mr2405433pfc.194.1544190601994; Fri, 07 Dec 2018 05:50:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544190601; cv=none; d=google.com; s=arc-20160816; b=pVHjJnlKrr3LZM1e7fnaUBFmJq6e7b/epuY0EL6GL+ljZhupMk0XWo2u3p3gjHttBe xAUOkJIb4/tDc3lVt/+/HhzT9woFA3vQssA4Xeb6CBaxSqQad+noskEQsd8L1cbkxXtY 9pVBDM/LnH0cPkxgTGBz1qYOmIS4wmUUsIKjzNXjNigch8GsIUuIJFCPZTQr0/a73YUI FB5V5d9qC8QyliPkzfGxcfAg07ETXDYN+Muk1n/cZtWDmuhJjRaz082q7DVnqi84TcS4 OEvyw4rIeqY/E8553UjV0Dy3en5Fax2FxyrvOySyl/zOeM8Bt5dAw6ro7UISiRjaF/y4 l3+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=zALRb/s+sAgSsHleRHdWk1otOrdxAfnvMWgumqX4trk=; b=oTNML8HKXlTtFL6H3fsJrOVw/Fg8Q/uXJn1iLxwFLiukzT6cJPL25YxS9OPJ0Totsr rnHSwSgmnFw28imgNt8adYI3jxT4Wtqk7X4G+blnlBi3amR9ihjk5pbuQMhud0wW2Dz9 YWo3xAQxpLrFglHc+UhQtxoF8O0Y6AmPHn5xpTTldDNCihD9KGNHqxlW6bQ0pLQAnuSU D8oPkntD9Ibfzviz649jsW7Zv+gkWUspIkFNGJa+0CKdQTq54dOqqLQ4HTRiwPmDvvC5 dZjud3/u2Z898AMxlplX6WOUGJ8LteaXUv9E0F9KNJ1Nhg6aNTecFb8u6LoHMzVHCeil rIyA== 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 q18si2874689pls.30.2018.12.07.05.50.01; Fri, 07 Dec 2018 05:50:01 -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 S1726080AbeLGNtz (ORCPT + 31 others); Fri, 7 Dec 2018 08:49:55 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:53479 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbeLGNt0 (ORCPT ); Fri, 7 Dec 2018 08:49:26 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1MNtGq-1goy972j72-00OE8Q; Fri, 07 Dec 2018 14:49:01 +0100 From: Arnd Bergmann To: y2038@lists.linaro.org Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-sh@vger.kernel.org, Baolin Wang , Andrew Morton , John Stultz , Alexander Viro , Thomas Gleixner , Rich Felker , Yoshinori Sato , Arnd Bergmann Subject: [PATCH 8/8] timekeeping: remove obsolete time accessors Date: Fri, 7 Dec 2018 14:48:24 +0100 Message-Id: <20181207134824.300024-9-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181207134824.300024-1-arnd@arndb.de> References: <20181207134824.300024-1-arnd@arndb.de> X-Provags-ID: V03:K1:4q8hGpFp0fG5EmYuKhTDqJXQLIB2ZrNwqYnzxKG4qaFm5RvWFyl NGBIj/D44nLXSFSYGO9DFv9hUXH+3GzYV2CVw/qHxKSzsZ0vtbf7NEkHbTn42eHwCUDRoPA 4YOEdqvE3d8qnJGRx7hzTpPuXkp2r8z6hzMMDdC76JOLVZjdMRPa/aNxoFjaYQJPgO6IwVC xCVGH01REyEosZhzRplmg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:eDPw5ra8pQk=:j+wBAUu+B10noLnFh/U+Ez wVigcBAnD2/GpGoPJolk4KhTu1dL1TIUiexqQuFS0FTMOodJWIPxmRlqYS9kuAkVJmwzTaUo2 CnmMMkehrO3asT/lPK7tVNHo9cMeciaHYqLy0WHy2gTyvypXaa0HoUo82Hf7DlhqvSe0AhtPi ilVj5ZurhAhSY0dkJroBHR4LHgWppmr5JZORPG19Ud3/O24kmeshUHg9G337GkgdrPrTzBuLI uvPYFJXi+dLcDz9VEVZkVu2Rm+VvDsa9H9F07H1+EpDWmOc0odH46irKlu00F+J+kDf857Jem Hwh8tzkDoiZpdiz/I+uL5VF2djy0alEtzzlxJiVv9UpFWT00CRO6VaacUXkhshpz07qvc8mqH r38Db2iOGJWTXHzWLEAISjQPG3c848sDuTcp+yRCYMZubGHSeQH8jieA0Tb+9SU0sOZ4LKqlc B+NL0DLxH/eku6YmfLNXQ00uoxPF9FI1oja+p9XY1CXhjOZo3nqjnktGBxvI7hLB6rFPth904 isb9B9PofCW2/FuxbY6HO0VrDZztP66k8gakTnOFcKz+0qpUBImMpf9KL7ypDOENUaP6a+Tss wGVbniz52ZyEWek5rSxxVum+1GvJ7c381gtXPcUaPEmVov5gr4choYjri7IEzau2DcLksjJch n02/tAzGF0BgEBrqxS0G89o1d/TQ+M/8wo1O49sdSiGjbH/uQ+k5MCj8emIGyguRVwIaxE1so 3U98EbDn6RgRmLp8pHrGuILA5p1RXEvOrGV9Ow== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are no more remaining users of these deprecated wrappers, so let's remove them before new users have a chance to make it in. See Documentation/core-api/timekeeping.rst for replacements when porting old drivers that contain calls to this function. Signed-off-by: Arnd Bergmann --- include/linux/timekeeping.h | 14 -------------- include/linux/timekeeping32.h | 9 --------- 2 files changed, 23 deletions(-) -- 2.18.0 Acked-by: John Stultz diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index 29975e93fcb8..a8ab0f143ac4 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -262,18 +262,4 @@ void read_persistent_wall_and_boot_offset(struct timespec64 *wall_clock, struct timespec64 *boot_offset); extern int update_persistent_clock64(struct timespec64 now); -/* - * deprecated aliases, don't use in new code - */ -#define getnstimeofday64(ts) ktime_get_real_ts64(ts) - -static inline struct timespec64 current_kernel_time64(void) -{ - struct timespec64 ts; - - ktime_get_coarse_real_ts64(&ts); - - return ts; -} - #endif diff --git a/include/linux/timekeeping32.h b/include/linux/timekeeping32.h index 0036ff314ac5..cc59cc9e0e84 100644 --- a/include/linux/timekeeping32.h +++ b/include/linux/timekeeping32.h @@ -6,15 +6,6 @@ * over time so we can remove the file here. */ -static inline void do_gettimeofday(struct timeval *tv) -{ - struct timespec64 now; - - ktime_get_real_ts64(&now); - tv->tv_sec = now.tv_sec; - tv->tv_usec = now.tv_nsec/1000; -} - static inline unsigned long get_seconds(void) { return ktime_get_real_seconds();