Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/789704/?format=api
{ "id": 789704, "url": "http://patchwork.ozlabs.org/api/patches/789704/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1500303678-5403-1-git-send-email-bhumirks@gmail.com/", "project": { "id": 46, "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api", "name": "Intel Wired Ethernet development", "link_name": "intel-wired-lan", "list_id": "intel-wired-lan.osuosl.org", "list_email": "intel-wired-lan@osuosl.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1500303678-5403-1-git-send-email-bhumirks@gmail.com>", "list_archive_url": null, "date": "2017-07-17T15:01:18", "name": "ixgbe: declare ixgbe_mac_operations structures as const", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "ad3a047b722fdcd7cb8b4427a7acf1bdbf2434fd", "submitter": { "id": 69882, "url": "http://patchwork.ozlabs.org/api/people/69882/?format=api", "name": "Bhumika Goyal", "email": "bhumirks@gmail.com" }, "delegate": { "id": 68, "url": "http://patchwork.ozlabs.org/api/users/68/?format=api", "username": "jtkirshe", "first_name": "Jeff", "last_name": "Kirsher", "email": "jeffrey.t.kirsher@intel.com" }, "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1500303678-5403-1-git-send-email-bhumirks@gmail.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/789704/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/789704/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@osuosl.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Received": [ "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xBDv75bY1z9sNx\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 18 Jul 2017 06:10:58 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id DBC5E871D3;\n\tMon, 17 Jul 2017 20:10:56 +0000 (UTC)", "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id g0m0+Gwb6U59; Mon, 17 Jul 2017 20:10:56 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 20AFB86C0C;\n\tMon, 17 Jul 2017 20:10:56 +0000 (UTC)", "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 75A1F1C0D8C\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 17 Jul 2017 15:01:31 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 65CFD864B6\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 17 Jul 2017 15:01:31 +0000 (UTC)", "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id Lma57Hdx0M3L for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 17 Jul 2017 15:01:31 +0000 (UTC)", "from mail-pf0-f193.google.com (mail-pf0-f193.google.com\n\t[209.85.192.193])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id E4357864AA\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 17 Jul 2017 15:01:30 +0000 (UTC)", "by mail-pf0-f193.google.com with SMTP id a11so3591338pfj.3\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 17 Jul 2017 08:01:30 -0700 (PDT)", "from gmail.com ([59.94.201.251]) by smtp.gmail.com with ESMTPSA id\n\tq88sm41147385pfa.10.2017.07.17.08.01.26\n\t(version=TLS1 cipher=AES128-SHA bits=128/128);\n\tMon, 17 Jul 2017 08:01:29 -0700 (PDT)", "by gmail.com (sSMTP sendmail emulation);\n\tMon, 17 Jul 2017 20:31:23 +0530" ], "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"G912sDQe\"; dkim-atps=neutral", "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=7xUJxXJNOY/V+bNNhx2eGFF3srY9dumkoYq1cCK0JKY=;\n\tb=G912sDQe7B+dsJsa6bTJgENpv05qR3MGsVK6Xo4iF4mHKQhsNeuP4o3PSvQ9yUteJz\n\twuuO55/NQpiUMkNlNBt+MB387lmHqQlme0M9u+caeahYhcKMzq7rOMU15klIKygbFhqr\n\tuwXqYefizbzn67FGsNZom/kentj/0xIg/GK58juLvoYoSSaxF8C1gnudhtNtwHRTSVz3\n\tg/yj1F6uxVqWxiXB7X7ObEro261kJ9TLYAqLPtUDvasEXj5j0wE9zMfPCJq4g2lJKFew\n\tk7QKyzEUpCHgu1zxCutt8PuVS2b5u+NvUt1xzvY3WZhF13QXPdDC3Jnh7iIE1OhBDJkU\n\ttEvA==", "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;\n\tbh=7xUJxXJNOY/V+bNNhx2eGFF3srY9dumkoYq1cCK0JKY=;\n\tb=HAZf8kD0HHed4dhGZ24MOkMkPDrzD0NnGpMiXDdNozfOjjw5XyfZmlLPPJ4E2gZxon\n\tm8/SUFnl5m5kmULTfQKoAtYVTVMPoSjr+6c5n7dQPxvZvap4LRuEZQxpE9Si4YJzqYrG\n\toolcTudjrY28GnbnHOqMQoOHNRJIAQBesXf6VdCyFxZtZryAO4uxASl1S8xq00zIFjVW\n\td539aAmOA8YAb7xQs8RsEQUOQkV096srFvNIth5mQsYNWsDkFB2hDWv5kOYW+9L6YAnN\n\tB9nTMu1shEUv8JUPmAJRy53/BeSICqM7z1DaSRhn+kGudAgksLtFLTtMw5Ak7d7fVtZf\n\tQMEA==", "X-Gm-Message-State": "AIVw111T84Rpt/gm1cB6A8mjlewYVwJtWV/axKhZfVr/JR6LaHYer40K\n\ttlWln2h8VyGNBw==", "X-Received": "by 10.98.64.129 with SMTP id f1mr19304273pfd.225.1500303690457; \n\tMon, 17 Jul 2017 08:01:30 -0700 (PDT)", "From": "Bhumika Goyal <bhumirks@gmail.com>", "To": "julia.lawall@lip6.fr, jeffrey.t.kirsher@intel.com,\n\tintel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org", "Date": "Mon, 17 Jul 2017 20:31:18 +0530", "Message-Id": "<1500303678-5403-1-git-send-email-bhumirks@gmail.com>", "X-Mailer": "git-send-email 1.9.1", "X-Mailman-Approved-At": "Mon, 17 Jul 2017 20:10:55 +0000", "Cc": "Bhumika Goyal <bhumirks@gmail.com>", "Subject": "[Intel-wired-lan] [PATCH] ixgbe: declare ixgbe_mac_operations\n\tstructures as const", "X-BeenThere": "intel-wired-lan@osuosl.org", "X-Mailman-Version": "2.1.18-1", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>", "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>", "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "intel-wired-lan-bounces@osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>" }, "content": "Declare ixgbe_mac_operations structures as const as they are only stored\nin the mac_ops field of ixgbe_info structure. This field is of type\nconst and therefore ixgbe_mac_operations structure can be made const\ntoo.\n\nSigned-off-by: Bhumika Goyal <bhumirks@gmail.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\nindex 72d84a0..b290a0d 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\n@@ -3858,7 +3858,7 @@ static s32 ixgbe_write_phy_reg_x550a(struct ixgbe_hw *hw, u32 reg_addr,\n \t.write_iosf_sb_reg\t= ixgbe_write_iosf_sb_reg_x550,\n };\n \n-static struct ixgbe_mac_operations mac_ops_x550em_a = {\n+static const struct ixgbe_mac_operations mac_ops_x550em_a = {\n \tX550_COMMON_MAC\n \t.led_on\t\t\t= ixgbe_led_on_t_x550em,\n \t.led_off\t\t= ixgbe_led_off_t_x550em,\n@@ -3879,7 +3879,7 @@ static s32 ixgbe_write_phy_reg_x550a(struct ixgbe_hw *hw, u32 reg_addr,\n \t.write_iosf_sb_reg\t= ixgbe_write_iosf_sb_reg_x550a,\n };\n \n-static struct ixgbe_mac_operations mac_ops_x550em_a_fw = {\n+static const struct ixgbe_mac_operations mac_ops_x550em_a_fw = {\n \tX550_COMMON_MAC\n \t.led_on\t\t\t= ixgbe_led_on_generic,\n \t.led_off\t\t= ixgbe_led_off_generic,\n", "prefixes": [] }