Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/817092/?format=api
{ "id": 817092, "url": "http://patchwork.ozlabs.org/api/patches/817092/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1506013525-29291-46-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": "<1506013525-29291-46-git-send-email-allen.lkml@gmail.com>", "list_archive_url": null, "date": "2017-09-21T17:05:06", "name": "[45/64] drivers: net: fealnx: use setup_timer() helper.", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "599b2f25ea346a049b0054ccdd97f6716cb11340", "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/1506013525-29291-46-git-send-email-allen.lkml@gmail.com/mbox/", "series": [ { "id": 4448, "url": "http://patchwork.ozlabs.org/api/series/4448/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=4448", "date": "2017-09-21T17:04:27", "name": "use setup_timer() helper function.", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/4448/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/817092/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/817092/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=\"n47HVofn\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyk2J20z3z9sRq\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 22 Sep 2017 03:22:32 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752858AbdIURKd (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 21 Sep 2017 13:10:33 -0400", "from mail-pf0-f195.google.com ([209.85.192.195]:37875 \"EHLO\n\tmail-pf0-f195.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752854AbdIURK2 (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 21 Sep 2017 13:10:28 -0400", "by mail-pf0-f195.google.com with SMTP id e69so2714813pfg.4;\n\tThu, 21 Sep 2017 10:10:27 -0700 (PDT)", "from localhost.localdomain ([103.42.74.194])\n\tby smtp.gmail.com with ESMTPSA id\n\tp12sm3174090pgn.90.2017.09.21.10.10.20\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 21 Sep 2017 10:10:25 -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=To2qV7pfrEjAew22cl01/sZMj6CsRtr+0gTzo3iCRzA=;\n\tb=n47HVofnnPlASwwnZQBG1SL+S83vpr+NQpwMzTshJhJhR1WydZIMdyUDdMh0VpBqGD\n\tTIlbQPKUSN41SZ/ynZgR6TvwTSVWYpu0nYJZtinoYSak8OH+iBHI4QEGEHIOyqMMU2TO\n\tY/QbXOM58pfTmBwIJXFhnTYE3F8VEhiDR6vMrvqXfl8VSaZy0U0OMkAxlsjajMbIPTqs\n\tavEB+b0RWZhyDsfCvCkmCj8GTbFwE7EQBuoTZnku9GJ0D7Fg2qRex3b1AFvsU15hln1X\n\t2x7nzfLYuue0O1RWirqJEp/V/ry0KUGRKBdJxzKX0dtKX0GQSg4MGv/g4B1qNsGp4CIy\n\t2qUA==", "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=To2qV7pfrEjAew22cl01/sZMj6CsRtr+0gTzo3iCRzA=;\n\tb=KA3VGZkOOM1tkHPPXUGD3sd/v7UdFm8+MRsm9TGg8zd0WLE7kI/peeznyPyKLVl4Z7\n\tCEYmv2tDUny69ED1Nnf7LpOsMOPs67d/nLnZhCqIW8QCTUCCzIfLApxpo2ziLH/K6KYh\n\tqJVaFxa87qccl42mLVSufuZACi7XCwNJMCirpDGcBuYogCUw9o/EeEmQrUkad3VsTV32\n\t0oBACAkJbh/ndXjgdC4Rki1uTJm4Kz65bcSoI0+qRRcD/d5/54ctUkKU7j6RyUmqAxWF\n\tyd4qq34RV1AYmRHjuA+aBLHSN7DsdUMvbGW2FdpzPdPctQcz4Xl3TiU35gExRZyT7tCL\n\tCZUg==", "X-Gm-Message-State": "AHPjjUjL12ol9/TSeD+pPR9C4LVVP7YYnLMU/O3/75X/NSfjOTBFIwPb\n\txUJ1SkgpLivK4fm1G/sulgzxsLxc", "X-Google-Smtp-Source": "AOwi7QALSk/u/6sVeN7QuWpJVZD+G0bJBVWqHL9YTjJhPvb4R0qPEfgqldmoqCnIDaQXzhxdCRi4ng==", "X-Received": "by 10.99.126.84 with SMTP id o20mr6395865pgn.201.1506013827049; \n\tThu, 21 Sep 2017 10:10:27 -0700 (PDT)", "From": "Allen Pais <allen.lkml@gmail.com>", "To": "netdev@vger.kernel.org", "Cc": "linux-kernel@vger.kernel.org, m.grzeschik@pengutronix.de,\n\tdmitry.tarnyagin@lockless.no, wg@grandegger.com,\n\tmkl@pengutronix.de, mark.einon@gmail.com, linux@armlinux.org.uk,\n\tpcnet32@frontier.com, f.fainelli@gmail.com,\n\tbcm-kernel-feedback-list@broadcom.com, venza@brownhat.org,\n\tajk@comnets.uni-bremen.de, jes@trained-monkey.org,\n\tromieu@fr.zoreil.com, khc@pm.waw.pl, simon@thekelleys.org.uk,\n\tdavem@davemloft.net, linux-can@vger.kernel.org,\n\tadi-buildroot-devel@lists.sourceforge.net,\n\tAllen Pais <allen.lkml@gmail.com>", "Subject": "[PATCH 45/64] drivers: net: fealnx: use setup_timer() helper.", "Date": "Thu, 21 Sep 2017 22:35:06 +0530", "Message-Id": "<1506013525-29291-46-git-send-email-allen.lkml@gmail.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1506013525-29291-1-git-send-email-allen.lkml@gmail.com>", "References": "<1506013525-29291-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 drivers/net/ethernet/fealnx.c | 8 ++------\n 1 file changed, 2 insertions(+), 6 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/fealnx.c b/drivers/net/ethernet/fealnx.c\nindex e92859d..c898231 100644\n--- a/drivers/net/ethernet/fealnx.c\n+++ b/drivers/net/ethernet/fealnx.c\n@@ -909,17 +909,13 @@ static int netdev_open(struct net_device *dev)\n \t\tprintk(KERN_DEBUG \"%s: Done netdev_open().\\n\", dev->name);\n \n \t/* Set the timer to check for link beat. */\n-\tinit_timer(&np->timer);\n+\tsetup_timer(&np->timer, netdev_timer, (unsigned long)dev);\n \tnp->timer.expires = RUN_AT(3 * HZ);\n-\tnp->timer.data = (unsigned long) dev;\n-\tnp->timer.function = netdev_timer;\n \n \t/* timer handler */\n \tadd_timer(&np->timer);\n \n-\tinit_timer(&np->reset_timer);\n-\tnp->reset_timer.data = (unsigned long) dev;\n-\tnp->reset_timer.function = reset_timer;\n+\tsetup_timer(&np->reset_timer, reset_timer, (unsigned long)dev);\n \tnp->reset_timer_armed = 0;\n \treturn rc;\n }\n", "prefixes": [ "45/64" ] }