From patchwork Sat Aug 13 22:48:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9279001 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CF53260780 for ; Sun, 14 Aug 2016 11:17:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C049D28937 for ; Sun, 14 Aug 2016 11:17:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5232289B9; Sun, 14 Aug 2016 11:17:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4073728937 for ; Sun, 14 Aug 2016 11:17:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964880AbcHNLR2 (ORCPT ); Sun, 14 Aug 2016 07:17:28 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:35374 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964877AbcHNLR0 (ORCPT ); Sun, 14 Aug 2016 07:17:26 -0400 Received: by mail-pa0-f67.google.com with SMTP id cf3so2055900pad.2; Sun, 14 Aug 2016 04:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5TajglVK8fBfjrq6HRTlsGVXUXEGDLmw+ob9mJVeIp0=; b=c77KeyxuunH8KjAVfPHqPlY5XEAzhUTBx22oUD+Rqfg8Ahv2Ow1C+X3uasYgx1NFzr bG5LTEkgWNFzQW7VQDOxXBFhca8zTCYj2MtGWYL4qa8YwYEb0wVtWTpUSQx1GuxlTRp6 0Dg09OlezIPGELQ5fqb3iV17hg9UaZa8h39ndwNuSjQuHHKNfXXl4WVZNgxvgQLZbQl7 7YGs5dXJbetnqhvDHh1tP07UojzxuCxR5hUe/xCytunCd7EKWAcdP12qMr7URTAAf4+2 ce3UQ6jf9a1Pkof2+OP+GP40FwLnIhIq81YK7j6YAmbwha/4+0TbVfD+FQK4+9s/vX09 afTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5TajglVK8fBfjrq6HRTlsGVXUXEGDLmw+ob9mJVeIp0=; b=W6gzgm4MOnLSTvzKfqgLqOboOrguTYdN4Add5F/X+dN9OIKgjn/vN6S7RFO9LpFtD7 YoKNoGiqr7+nyUaypIvXqaQlr2c6fsetSWjd1Pd0tzcmAwWBFB6CEu0vlpZQ5/jsYbQ8 hPwNO6vfW1AsKcn+8WVegG6FN2+xGkJFttGmfJxyNr0+ji42tHqUZIT+ayuYNS4UdTf4 2XdSknqOcXA7a2fzYehTL9gCkuz+XEL+x/wIQNASDIV2goHX/UDg88umPp0qPC0w4xO9 AsEYLP+vsHIs3CoPP+hTDZr1bRVxIWufhHLZw0qswvrXvYJa2eX+7Dnd5zDzBHNztS8C EFig== X-Gm-Message-State: AEkooushNESOfl3x3AImtfsrppK7hz5RGE30Kjk7Sibgy2IUe1xBYI2ONWmd5EGx8ov5yA== X-Received: by 10.66.177.7 with SMTP id cm7mr40222698pac.132.1471128585340; Sat, 13 Aug 2016 15:49:45 -0700 (PDT) Received: from deepa-ubuntu.hsd1.ca.comcast.net (c-73-252-251-201.hsd1.ca.comcast.net. [73.252.251.201]) by smtp.gmail.com with ESMTPSA id 81sm22528007pfm.90.2016.08.13.15.49.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 13 Aug 2016 15:49:44 -0700 (PDT) From: Deepa Dinamani To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, tglx@linutronix.de, torvalds@linux-foundation.org, tytso@mit.edu, viro@zeniv.linux.org.uk, y2038@lists.linaro.org Subject: [PATCH v4 26/26] time: Delete CURRENT_TIME_SEC and CURRENT_TIME Date: Sat, 13 Aug 2016 15:48:38 -0700 Message-Id: <1471128518-24075-27-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471128518-24075-1-git-send-email-deepa.kernel@gmail.com> References: <1471128518-24075-1-git-send-email-deepa.kernel@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All uses of CURRENT_TIME_SEC and CURRENT_TIME macros have been replaced by other time functions. These macros are also not y2038 safe. And, all their use cases can be fulfilled by y2038 safe ktime_get_* variants. Signed-off-by: Deepa Dinamani Acked-by: John Stultz Reviewed-by: Arnd Bergmann Cc: Thomas Gleixner --- include/linux/time.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/time.h b/include/linux/time.h index 4cea09d..a5a07c0 100644 --- a/include/linux/time.h +++ b/include/linux/time.h @@ -151,9 +151,6 @@ static inline bool timespec_inject_offset_valid(const struct timespec *ts) return true; } -#define CURRENT_TIME (current_kernel_time()) -#define CURRENT_TIME_SEC ((struct timespec) { get_seconds(), 0 }) - /* Some architectures do not supply their own clocksource. * This is mainly the case in architectures that get their * inter-tick times by reading the counter on their interval