Received: by 10.223.164.197 with SMTP id h5csp440624wrb; Sat, 4 Nov 2017 14:52:55 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Syoj7beSrMLeJi4iHS4S/0kqBdF8Dqjt0O2Rp4jTBbS0YMe4rXCBg1QGa8oAgTlBAG3pI7 X-Received: by 10.101.81.131 with SMTP id h3mr11079054pgq.190.1509832374977; Sat, 04 Nov 2017 14:52:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509832374; cv=none; d=google.com; s=arc-20160816; b=u0hEHuVY9QqgVbten7l49sdRi0yxJn2vVR3oWh208oQ8oimoO6rGg4d3stIC3OdQ6U HnUIpTJfhskxpNpEKbekKQnZe27ofoX/P3wSkTaVcfOF0nCwQzHmyHjtIftxf9GC5f68 UMCddC+TJhpTUpSSRzxz4x+h6u7nRFBWfkALT9uTmhTtRafPM3oJpYEz47DMiopn5m5X jX6hHR4A2B2F4baSWM5kqHatLPPohFAmuLXG9TRH8BXBuhY4dcmH48IzQLXainr0eE03 GjM8J69S/h1OkPWe06F8gZHg9U48g3cbt/YmkNwEFE/6WEUHNPYZevaWO0D4OsPoP23L Ncig== 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 :dkim-signature:arc-authentication-results; bh=TYqXxwJJxpUTEGY6Y14dGFNNX7e3aP62u34qmYyUVLk=; b=AR1tjhkJG7slJB/hFh6tkd+mG4D9ZAe1GOeZcU2Nxlf1nbc+4G7cVI1dmyIkhFfyFd NRAf0C5bzQjiY0hb/QyBjmFyp+qI7NENMtvQYchlqBgzafTeWkl9V+/uBhjCFXKwi4DS Pl0UzWHKNBbVfta4E1L8Dzs5h4kF+apU0DB+I2qQ2BVEB9KjG9V0uA4jEswvFOxZ9eg7 5SQVzrjC24ChQ4xsaAhSxPECCFkxbvDYF1xL6LWt+EafEQ0GAln6Ag/lH5YplPeuxJFS oKv2L/ECOV5tinT29jfia02ZAT3CrChc7P+fc9ngs8YsAYCQngbyrWQJ3960Qd8+4Zmc 5PNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DwGq8u7F; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l17si9326344pfj.16.2017.11.04.14.52.40; Sat, 04 Nov 2017 14:52:54 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DwGq8u7F; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751883AbdKDVwC (ORCPT + 94 others); Sat, 4 Nov 2017 17:52:02 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:48948 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751463AbdKDVwB (ORCPT ); Sat, 4 Nov 2017 17:52:01 -0400 Received: by mail-pf0-f193.google.com with SMTP id b79so4859423pfk.5 for ; Sat, 04 Nov 2017 14:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=TYqXxwJJxpUTEGY6Y14dGFNNX7e3aP62u34qmYyUVLk=; b=DwGq8u7FFZxKssRD2Nf5TRg/gCaVk+WKCS1F2EZLZ3ecuPqB/3pQ4vhAMuZQYKYfvd fmgZ1b2+QAm8ih+8jv58Z3R3XecrjKrgKnf2k3PEftMg1HHAwW+4LKh5/9NPGESkIQM1 zMTOJLwLQ1cNFonRSS2S+73/JdtNIB+KcGPhfjl+KdEVivyZ3H2QrDcoakSWAzrPSEI3 FEsvX9z/cuf6TO8NadpXoNwgxtAn32OqSUPMbL8Dq4medE9UUuCt+Nhtki4TsOrCrOey i14cayjdhgNG86TZPraMZOslO1NMNl7jp8EjNb7EvpOha7GbmFoiOfOvpvee0MWjyLA1 qpdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TYqXxwJJxpUTEGY6Y14dGFNNX7e3aP62u34qmYyUVLk=; b=oH0fkfidxeXuMf5SGw5+K1C6mzKDucX2AksC8xvW8ViQt20jxrODNI3wL6uN9ateaC zxLnSjXv3ktbzDiGryo9s9FPX3HRDLUilHjHnIZ9vJ+rueX+loZ45hONaKRw77sQoFEu aRnNlBdXzzTqJRhZe6sa4fuI1PIwT7JiZE6AnRTSp0RhObbdrJcfq9rTSFApnf05MdEI yym4uwfW0x9tPAjIavF95K+i/7dPgsfysKOheM1vVZl8TSUOaR/m4OBtLG0zO4SOX5dO k6cFlWxp9YIumcLb3dzFIMhHPF4+5jUBqpgN1r7AfQ3LYroadnMG8CHCBZiDhz3+WPfh d5Cg== X-Gm-Message-State: AMCzsaVheikTpRhxSyjvxBY/Nrgsbn2v9/Ua0nGBx6hXCKjvF0z/w8vf nG2B2OR/M0oUCYjQYglBPFs9OQ== X-Received: by 10.101.72.1 with SMTP id h1mr11205524pgs.249.1509832320147; Sat, 04 Nov 2017 14:52:00 -0700 (PDT) Received: from localhost.localdomain ([103.46.195.129]) by smtp.gmail.com with ESMTPSA id f1sm16031430pfe.150.2017.11.04.14.51.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 04 Nov 2017 14:51:58 -0700 (PDT) From: Himanshu Jha To: linux-kernel@vger.kernel.org Cc: mcgrof@kernel.org, Himanshu Jha Subject: [PATCH] firmware: raspberrypi: Eliminate use of time_to_tm Date: Sun, 5 Nov 2017 03:21:46 +0530 Message-Id: <1509832306-1104-1-git-send-email-himanshujha199640@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org time_to_tm function is deprecated due to y2038 problem, therefore use time64_to_tm instead. Signed-off-by: Himanshu Jha --- drivers/firmware/raspberrypi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/raspberrypi.c b/drivers/firmware/raspberrypi.c index dd506cd..aa4c797 100644 --- a/drivers/firmware/raspberrypi.c +++ b/drivers/firmware/raspberrypi.c @@ -166,7 +166,7 @@ EXPORT_SYMBOL_GPL(rpi_firmware_property); static void rpi_firmware_print_firmware_revision(struct rpi_firmware *fw) { - u32 packet; + time64_t packet; int ret = rpi_firmware_property(fw, RPI_FIRMWARE_GET_FIRMWARE_REVISION, &packet, sizeof(packet)); @@ -174,7 +174,7 @@ rpi_firmware_print_firmware_revision(struct rpi_firmware *fw) if (ret == 0) { struct tm tm; - time_to_tm(packet, 0, &tm); + time64_to_tm(packet, 0, &tm); dev_info(fw->cl.dev, "Attached to firmware from %04ld-%02d-%02d %02d:%02d\n", -- 2.7.4 From 1592407743320938179@xxx Wed Feb 14 19:59:26 +0000 2018 X-GM-THRID: 1583338358922479186 X-Gmail-Labels: Inbox,Category Forums,Downloaded_2018-02