Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/817431/?format=api
{ "id": 817431, "url": "http://patchwork.ozlabs.org/api/patches/817431/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1506077902-1796-2-git-send-email-allen.lkml@gmail.com/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api", "name": "Linux network development", "link_name": "netdev", "list_id": "netdev.vger.kernel.org", "list_email": "netdev@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1506077902-1796-2-git-send-email-allen.lkml@gmail.com>", "list_archive_url": null, "date": "2017-09-22T10:58:18", "name": "[1/5] net: nfc: hci: use setup_timer() helper.", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "15ef9f0b02eeda1e5a225e677bfd96b62a515ec5", "submitter": { "id": 72354, "url": "http://patchwork.ozlabs.org/api/people/72354/?format=api", "name": "Allen Pais", "email": "allen.lkml@gmail.com" }, "delegate": { "id": 34, "url": "http://patchwork.ozlabs.org/api/users/34/?format=api", "username": "davem", "first_name": "David", "last_name": "Miller", "email": "davem@davemloft.net" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/1506077902-1796-2-git-send-email-allen.lkml@gmail.com/mbox/", "series": [ { "id": 4595, "url": "http://patchwork.ozlabs.org/api/series/4595/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=4595", "date": "2017-09-22T10:58:17", "name": "use setup_timer() helper function.", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/4595/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/817431/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/817431/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<netdev-owner@vger.kernel.org>", "X-Original-To": "patchwork-incoming@ozlabs.org", "Delivered-To": "patchwork-incoming@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=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"nhMIiwQM\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xz9St5htCz9ryk\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 22 Sep 2017 20:58:38 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752043AbdIVK6h (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tFri, 22 Sep 2017 06:58:37 -0400", "from mail-pg0-f65.google.com ([74.125.83.65]:34843 \"EHLO\n\tmail-pg0-f65.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751903AbdIVK6d (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Fri, 22 Sep 2017 06:58:33 -0400", "by mail-pg0-f65.google.com with SMTP id j16so441010pga.2\n\tfor <netdev@vger.kernel.org>; Fri, 22 Sep 2017 03:58:33 -0700 (PDT)", "from localhost.localdomain ([103.42.74.194])\n\tby smtp.gmail.com with ESMTPSA id\n\ts17sm6283035pgq.25.2017.09.22.03.58.29\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 22 Sep 2017 03:58:31 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=CPMBjfi+JhV5qjE/gEDTUcwnW+glMpK4iMIpXz5KuIs=;\n\tb=nhMIiwQM2B6/Abf24ewNEGmb9k2cSgXmDGDhl7Ai1/4c6lGNRImwgkLlb5uK9jJ7a5\n\tXsfS1ycY0/razkP6XzxAEr8tl1/BsKQlbiNXefz/4FMdIquhmrWqXJi/eCTHkPWnOCF9\n\t8VIyGNreav99IIKNn1et6XZUrFfhHuKgqtkmSuq2lK7zguYmlmDByCqn5hfF5P6Wguph\n\taZraP7ZAXmDtWO4V0e07eV6E1q5icXyVjJM/kyUBhlNezKc8kYVVQ4sPySVUGuCBAfbD\n\t6zvjKl94nqHN1Is4TWHzvShiE7fmne8AnVJRY4098UVwwEOQ2yX++sa6vJ5+lPdRD+e1\n\t6l0w==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=CPMBjfi+JhV5qjE/gEDTUcwnW+glMpK4iMIpXz5KuIs=;\n\tb=VPu4RXMUHcsnZLlC4OSCew4rovWPNIQoWOAj6tWLqt2eZcBDsF36K+phpvhEbn105w\n\tr2+P5hymrToidT4yUMHmgjyiRbBf0PUxqyukSe2jzDgaf0DYqlzHVNeV1Iz0fmWczGGb\n\tkC//DXgpTlx2VfEUsEAVjUSqbzevB90SJ32QGlVNBqZsl/DZBNSbJEfpxPvbvZ/0eTGp\n\tRzpFtyLVWo+olZOcCMHd4uq3lPw3/cpRyqfIxwXxZGIUu1yniM+qpj60lw7LMPCqoayF\n\txRoDVi7uvElnqLpcfx4WefW+8kHqEoP9XBmDiSg9dcJRHDQ2tGOB7/0y8NbgZpo0wtsQ\n\tpSgQ==", "X-Gm-Message-State": "AHPjjUiOA7A2tyk498zM4ynLuKEalROPLCsvC+mGHIduqEHuHXDHV6S+\n\tm4MHEtNKlx21Jn/XHLFbeeLFYGis", "X-Google-Smtp-Source": "AOwi7QDILnW6N1FAFZNYjK1ZYDw1cZE0m0iExdHkf6w49jFWcSh8tnyQ3lkyfk1ikWztTalFmiGBcg==", "X-Received": "by 10.99.151.81 with SMTP id d17mr4715990pgo.13.1506077912601;\n\tFri, 22 Sep 2017 03:58:32 -0700 (PDT)", "From": "Allen Pais <allen.lkml@gmail.com>", "To": "netdev@vger.kernel.org", "Cc": "davem@davemloft.net, sameo@linux.intel.com,\n\tAllen Pais <allen.lkml@gmail.com>", "Subject": "[PATCH 1/5] net: nfc: hci: use setup_timer() helper.", "Date": "Fri, 22 Sep 2017 16:28:18 +0530", "Message-Id": "<1506077902-1796-2-git-send-email-allen.lkml@gmail.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1506077902-1796-1-git-send-email-allen.lkml@gmail.com>", "References": "<1506077902-1796-1-git-send-email-allen.lkml@gmail.com>", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "Use setup_timer function instead of initializing timer with the\n function and data fields.\n\nSigned-off-by: Allen Pais <allen.lkml@gmail.com>\n---\n net/nfc/hci/core.c | 5 ++---\n 1 file changed, 2 insertions(+), 3 deletions(-)", "diff": "diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c\nindex b740fef..a8a6e78 100644\n--- a/net/nfc/hci/core.c\n+++ b/net/nfc/hci/core.c\n@@ -1004,9 +1004,8 @@ int nfc_hci_register_device(struct nfc_hci_dev *hdev)\n \n \tINIT_WORK(&hdev->msg_tx_work, nfc_hci_msg_tx_work);\n \n-\tinit_timer(&hdev->cmd_timer);\n-\thdev->cmd_timer.data = (unsigned long)hdev;\n-\thdev->cmd_timer.function = nfc_hci_cmd_timeout;\n+\tsetup_timer(&hdev->cmd_timer, nfc_hci_cmd_timeout,\n+\t\t (unsigned long)hdev);\n \n \tskb_queue_head_init(&hdev->rx_hcp_frags);\n \n", "prefixes": [ "1/5" ] }