From patchwork Wed Jun 20 08:17:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 139291 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp498882lji; Wed, 20 Jun 2018 01:31:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL5cfxaUfB/cqHCquBHAQv8HHUHGvqPNDYSgKSh4E0iT92LNO2siD/uN7cmLvShjlPTtqUJ X-Received: by 2002:a63:40c7:: with SMTP id n190-v6mr17986156pga.248.1529483495841; Wed, 20 Jun 2018 01:31:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529483495; cv=none; d=google.com; s=arc-20160816; b=CvdIk7imY5JpteXwKhsp+Ai+WaLbLQjEqNDUpbaqKzvFMY7bVWwn/jwB7lSjKwxrUs YRfej/31pjhR0Mi0UQ9tuWAnmhfI8aNwzaYEkDuLgYnMuAhbsrdyFG4D7SNhlvtYsFre BdNGgpd+BnAxj+sPGai1UWBaQ99AbfTfxaUL2Lt+7RUjaKvg8leN2O2ChyroIZPxTAXf Tnb2DiXx5Pfgm/UfqmyVq2CtQBQDe4W4REWOpBNep3X6CvKp2ksZ0AdU6zIGX+R5L0ai RqMQsiYESLwV8YaowkwL/N7S9LJhs2Z8dwfMUsOkBgGKHSHitCoUbUD7pdxmCB/ASCjB T37g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=rQAFL32WZUONLfeI1C8HS/fGtPFvq6d6xPey9yE4TdA=; b=fCltY4tYAFm7Tdv6llb51PkKKxoR714M5BuEtTGBh7thixak6BJE2wPASj8J1Eyds1 R5oabm6ytD9CcGdmNxENgttj5hNwbjzaJeZfKEqvkZ3Ti+WwaIj8AYRFUuifo5/Z8c8U CvVHCG/e5l7kmkxK5oR+8i5v+zLVZqxgEUM9y4HEUOJHQgkEB+i8fSbEaJr96vVJdgob gtY0yUFFXpqCekXXsCqunOl4iMDeDsJRT/cWs2ip212nKrv93OcKA33MJnNYkZqW3zND G2mKUykUQrBqTgvWN9i0mHict9r9Ova84MuQPOyhLQM2XHbCM9r/ChhvfNTy6hXsfh1R +BrQ== 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 j14-v6si1943831pfd.207.2018.06.20.01.31.35; Wed, 20 Jun 2018 01:31:35 -0700 (PDT) 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 S932422AbeFTIbd (ORCPT + 30 others); Wed, 20 Jun 2018 04:31:33 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:49057 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752595AbeFTIbb (ORCPT ); Wed, 20 Jun 2018 04:31:31 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MJkO4-1fWeEr1yCq-0018NJ; Wed, 20 Jun 2018 10:17:49 +0200 From: Arnd Bergmann To: Al Viro , Andrew Morton Cc: y2038@lists.linaro.org, Arnd Bergmann , Thomas Gleixner , Deepa Dinamani , linux-kernel@vger.kernel.org Subject: [PATCH] procfs: uptime: use ktime_get_boottime_ts64 Date: Wed, 20 Jun 2018 10:17:31 +0200 Message-Id: <20180620081746.282742-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:pwAj7eEw82m/gGe+74HXzzKRg4+7GieAut8Yu2Zf5uqU9ZIT8Uu yAfie19HelIP8VIv0nL83ctky5pIFIBTMndxyJkg+JvpW3BPTCeDGGQXDWbDmTp1qa/gFIg Y6DfN5eJd2GnyuPGxZc4XASnVFVN2SWeTuhRqFYoqQ3rYiV07wNh/P9qC4aQJtA1WDVvsGc WE11GAil5+EaEnlYqQa1Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:8q9V/tKs4Oo=:YFWYE1Wda9x35pT8f7EkV2 VyS+RKJgPU/vKq/VvTgJvysqct4G2k7gQqkt4H0ebRZ4Y3ka2ORIyT9hQSACaC6wQHR6TnjEi KoS/lwUFClxe7gdiA0aQeO1NRU6oWfAMhc0kcOKBcC0T3ixOlHgHxa0RmEke2N5htwoCz3WDU AMJ8ahJIpKWshI1KdoMk++DJpmyKilQgaRqf4LE3rX+Qp5pOfMbDAIPrnvAr0HIahiUl1YECL LeLDl2hklQ0jOqqPXo4pPDw8Gzd9KVl9EcXWommq3ltsU4oFBBPcSW7wONxivH5SqlYQKV1tv A48HRsYN/cVJhtIhFT5wy/6FRKkHKSH/SQRt3k4z/yFzHhAsVnji9W54J/VvPPsftkQLu3rR2 pLRUj5ZxubwecW+8d/AkGYJZbQEUm5jRaoxLPh5TFzhdofdtOYDdH/sxA7Ej9vuZg1c5dLuCN YbqUwmkApKUdMoPDF2KPZIeDMCfypFj42KMvreoFc3LzCL5lmA6Tt5CCUBtwgK7yJPN1eiEqd Y62qpFig4p/kBbUMq81VkHtvmy8cZ1aNsszvT9il5JaYkqbOEEp0HxAQgoXB2bPGYdg7OYVqO d7pGi9A74eXOYRzXQzZkESF39CiHSJpbE4dU6xXij9rLdB63b/HqKxCc5fMDKPnYF9OPG+1mC uNbJf+4azzE/ivcrL1kjNHK/FKk1k/59Im5v04L5rLBm/1jKQwQGT/d6rQ2MSdzPFyLk= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org get_monotonic_boottime() is deprecated and uses the old timespec type. Let's convert /proc/uptime to use ktime_get_boottime_ts64(). Signed-off-by: Arnd Bergmann --- fs/proc/uptime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 Acked-by: Thomas Gleixner diff --git a/fs/proc/uptime.c b/fs/proc/uptime.c index 3f723cb478af..a4c2791ab70b 100644 --- a/fs/proc/uptime.c +++ b/fs/proc/uptime.c @@ -9,7 +9,7 @@ static int uptime_proc_show(struct seq_file *m, void *v) { - struct timespec uptime; + struct timespec64 uptime; struct timespec64 idle; u64 nsec; u32 rem; @@ -19,7 +19,7 @@ static int uptime_proc_show(struct seq_file *m, void *v) for_each_possible_cpu(i) nsec += (__force u64) kcpustat_cpu(i).cpustat[CPUTIME_IDLE]; - get_monotonic_boottime(&uptime); + ktime_get_boottime_ts64(&uptime); idle.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); idle.tv_nsec = rem; seq_printf(m, "%lu.%02lu %lu.%02lu\n",