Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/833383/?format=api
{ "id": 833383, "url": "http://patchwork.ozlabs.org/api/1.2/patches/833383/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/patch/20171102143435.882290-1-arnd@arndb.de/", "project": { "id": 21, "url": "http://patchwork.ozlabs.org/api/1.2/projects/21/?format=api", "name": "Linux Tegra Development", "link_name": "linux-tegra", "list_id": "linux-tegra.vger.kernel.org", "list_email": "linux-tegra@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20171102143435.882290-1-arnd@arndb.de>", "list_archive_url": null, "date": "2017-11-02T14:34:27", "name": "usb: xhci: tegra: use time64_t for printing timestamp", "commit_ref": null, "pull_url": null, "state": "deferred", "archived": false, "hash": "d474d4f10a3ca745e3c58f4f3cd416dcc6f3b47f", "submitter": { "id": 30, "url": "http://patchwork.ozlabs.org/api/1.2/people/30/?format=api", "name": "Arnd Bergmann", "email": "arnd@arndb.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-tegra/patch/20171102143435.882290-1-arnd@arndb.de/mbox/", "series": [ { "id": 11518, "url": "http://patchwork.ozlabs.org/api/1.2/series/11518/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/list/?series=11518", "date": "2017-11-02T14:34:27", "name": "usb: xhci: tegra: use time64_t for printing timestamp", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/11518/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/833383/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/833383/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-tegra-owner@vger.kernel.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-tegra-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3ySSKV5ZvQz9sNw\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 3 Nov 2017 01:34:54 +1100 (AEDT)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S933123AbdKBOex (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tThu, 2 Nov 2017 10:34:53 -0400", "from mout.kundenserver.de ([217.72.192.75]:53152 \"EHLO\n\tmout.kundenserver.de\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S933034AbdKBOew (ORCPT\n\t<rfc822; linux-tegra@vger.kernel.org>); Thu, 2 Nov 2017 10:34:52 -0400", "from wuerfel.lan ([109.193.157.232]) by mrelayeu.kundenserver.de\n\t(mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id\n\t0Letrj-1dM3RC3Ph9-00qn77; Thu, 02 Nov 2017 15:34:37 +0100" ], "From": "Arnd Bergmann <arnd@arndb.de>", "To": "Mathias Nyman <mathias.nyman@intel.com>,\n\tGreg Kroah-Hartman <gregkh@linuxfoundation.org>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tJonathan Hunter <jonathanh@nvidia.com>", "Cc": "Arnd Bergmann <arnd@arndb.de>, Chunfeng Yun <chunfeng.yun@mediatek.com>,\n\tlinux-usb@vger.kernel.org, linux-tegra@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org", "Subject": "[PATCH] usb: xhci: tegra: use time64_t for printing timestamp", "Date": "Thu, 2 Nov 2017 15:34:27 +0100", "Message-Id": "<20171102143435.882290-1-arnd@arndb.de>", "X-Mailer": "git-send-email 2.9.0", "X-Provags-ID": "V03:K0:DoLILdCQWRTyOpyW1+cFXXKGH+UbxJ1Hf5J+nN0t3qpnAd9d5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owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<linux-tegra.vger.kernel.org>", "X-Mailing-List": "linux-tegra@vger.kernel.org" }, "content": "The time_t type and time_to_tm() function are deprecated because\nof y2038 problems. In this driver, they are used to pretty-print\nthe timestamp of the firmware build. This is fine as long as\nwe don't get a firmware build past 2038.\n\nConverting to time64_t and time64_to_tm() avoids the deprecated\ninterfaces and works until 2106, when the firmware-defined\ndata structure overflows.\n\nSigned-off-by: Arnd Bergmann <arnd@arndb.de>\n---\n drivers/usb/host/xhci-tegra.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c\nindex 74436f8ca538..39b6e93130d3 100644\n--- a/drivers/usb/host/xhci-tegra.c\n+++ b/drivers/usb/host/xhci-tegra.c\n@@ -771,7 +771,7 @@ static int tegra_xusb_load_firmware(struct tegra_xusb *tegra)\n \tstruct device *dev = tegra->dev;\n \tconst struct firmware *fw;\n \tunsigned long timeout;\n-\ttime_t timestamp;\n+\ttime64_t timestamp;\n \tstruct tm time;\n \tu64 address;\n \tu32 value;\n@@ -877,7 +877,7 @@ static int tegra_xusb_load_firmware(struct tegra_xusb *tegra)\n \t}\n \n \ttimestamp = le32_to_cpu(header->fwimg_created_time);\n-\ttime_to_tm(timestamp, 0, &time);\n+\ttime64_to_tm(timestamp, 0, &time);\n \n \tdev_info(dev, \"Firmware timestamp: %ld-%02d-%02d %02d:%02d:%02d UTC\\n\",\n \t\t time.tm_year + 1900, time.tm_mon + 1, time.tm_mday,\n", "prefixes": [] }