Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/817108/?format=api
{ "id": 817108, "url": "http://patchwork.ozlabs.org/api/patches/817108/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1506013525-29291-34-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-34-git-send-email-allen.lkml@gmail.com>", "list_archive_url": null, "date": "2017-09-21T17:04:54", "name": "[33/64] drivers: net: amd8111e: use setup_timer() helper.", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "3b0116831fa48de8f04ac3f7782aca6fc0c075ca", "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-34-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/817108/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/817108/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=\"Clr1RAXI\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xykC53dV6z9s3T\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 22 Sep 2017 03:30:09 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752633AbdIURJP (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 21 Sep 2017 13:09:15 -0400", "from mail-pf0-f195.google.com ([209.85.192.195]:32981 \"EHLO\n\tmail-pf0-f195.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752624AbdIURJM (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 21 Sep 2017 13:09:12 -0400", "by mail-pf0-f195.google.com with SMTP id h4so2726398pfk.0;\n\tThu, 21 Sep 2017 10:09:12 -0700 (PDT)", "from localhost.localdomain ([103.42.74.194])\n\tby smtp.gmail.com with ESMTPSA id\n\tp12sm3174090pgn.90.2017.09.21.10.09.04\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 21 Sep 2017 10:09:10 -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=fzHkJ14UqO8ZEFlgpkMM/Vthg24FFzKQCVTxZU/s7yw=;\n\tb=Clr1RAXIhMLHE+WOIls4qlgkcupWUXgCwtG1vSTneWS0bbAKjIrhew61iC8j1apJD4\n\toeDQoXtjQDzOwvkaWeohb4McmVgo2AGpW1LPnY0VPtQUaKNetQtEiGqel6aFSxQcyN0t\n\ttHTK6cYds+rv2iuw94ThcEvSVSdhwlERgfHM9MC4GVhCQb69BaxGA2eodsa1D6rCO1RR\n\t14g3meD7Ak0k8IKoAB/88QtYDZ19HBAID8cgVG5faskhzaKUbikw5+K4vnX4eQ866DB9\n\t0XNszVxOV56Ei/mXFZyVQCsk/zwA8dyHD+cED2r0Y4QcvXe9BjgVHwjh1tPRot/onu2J\n\t+saQ==", "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=fzHkJ14UqO8ZEFlgpkMM/Vthg24FFzKQCVTxZU/s7yw=;\n\tb=WLR1+q+BwqVakzpT9AX4t6/hvvG/KM3/+O9pw0QNotR8ZOFTlyfZ7h3fhRvVfGCw3e\n\tjUKK6/GCiHqAq9RTok0UrNO1WTSbzK11dEt4oAGyPUDaafqMsAuKeEmLKYePeBEKqav8\n\t7dFHsFxjfIwFl4Zbu8elRHpP/QoiJP6qpkIvdG2Vq+EXsA3x2YLOLY9NUhRyzuRMXbBU\n\tHkflaWxLQqZyJGyXmCzTWIv4bI7Xq+AdMRULZUM6S3gD8qYpR6bT5D08xidFdINS/Css\n\tcxJANeI2qU9dKZArVATVu1FSjE3Occ5AfvOVJGRbxMyt/Kf9mbNbsWaZSfPTOkwI5s0Y\n\thDcQ==", "X-Gm-Message-State": "AHPjjUiYylQRRq8sVBWeX/fdKL+uHpxZ1U29Gdj0AZheiTGOyqGIrF1l\n\tDnOFDalLb3Y/MQjXkf1U67rUT+o6", "X-Google-Smtp-Source": "AOwi7QCK7u2aeaZSYSXHHUKqp/L6g+GvJzFRtf0biOqJ5pQOaidf2Lr9gAJjVREdyMj2C/uXHhxDfA==", "X-Received": "by 10.99.121.135 with SMTP id u129mr6351800pgc.250.1506013751509;\n\tThu, 21 Sep 2017 10:09:11 -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 33/64] drivers: net: amd8111e: use setup_timer() helper.", "Date": "Thu, 21 Sep 2017 22:34:54 +0530", "Message-Id": "<1506013525-29291-34-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/amd/amd8111e.c | 5 ++---\n 1 file changed, 2 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/amd/amd8111e.c b/drivers/net/ethernet/amd/amd8111e.c\nindex 7b5df56..7f22af6 100644\n--- a/drivers/net/ethernet/amd/amd8111e.c\n+++ b/drivers/net/ethernet/amd/amd8111e.c\n@@ -1883,9 +1883,8 @@ static int amd8111e_probe_one(struct pci_dev *pdev,\n \n \t/* Initialize software ipg timer */\n \tif(lp->options & OPTION_DYN_IPG_ENABLE){\n-\t\tinit_timer(&lp->ipg_data.ipg_timer);\n-\t\tlp->ipg_data.ipg_timer.data = (unsigned long) dev;\n-\t\tlp->ipg_data.ipg_timer.function = (void *)&amd8111e_config_ipg;\n+\t\tsetup_timer(&lp->ipg_data.ipg_timer,\n+\t\t\t (void *)&amd8111e_config_ipg, (unsigned long)dev);\n \t\tlp->ipg_data.ipg_timer.expires = jiffies +\n \t\t\t\t\t\t IPG_CONVERGE_JIFFIES;\n \t\tlp->ipg_data.ipg = DEFAULT_IPG;\n", "prefixes": [ "33/64" ] }