Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/536327/?format=api
{ "id": 536327, "url": "http://patchwork.ozlabs.org/api/patches/536327/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1445897893-19723-1-git-send-email-jacob.e.keller@intel.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": "<1445897893-19723-1-git-send-email-jacob.e.keller@intel.com>", "list_archive_url": null, "date": "2015-10-26T22:18:13", "name": "[next-queue,v2] fm10k: conditionally compile DCB and DebugFS support", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "f99ee77a48c3be08d2f4d5a8228d50628930b276", "submitter": { "id": 9784, "url": "http://patchwork.ozlabs.org/api/people/9784/?format=api", "name": "Jacob Keller", "email": "jacob.e.keller@intel.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/1445897893-19723-1-git-send-email-jacob.e.keller@intel.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/536327/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/536327/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@lists.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\tby ozlabs.org (Postfix) with ESMTP id C6EE4141347\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 27 Oct 2015 09:18:21 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id BA2B28AD50;\n\tMon, 26 Oct 2015 22:18:20 +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 m+XuIQpfDEqo; Mon, 26 Oct 2015 22:18:19 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 5181A884D8;\n\tMon, 26 Oct 2015 22:18:19 +0000 (UTC)", "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id A61161C1083\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 26 Oct 2015 22:18:17 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 9A8718BC23\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 26 Oct 2015 22:18:17 +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 Qpjbks4tO0Kj for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 26 Oct 2015 22:18:16 +0000 (UTC)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id B1DAE8BC0A\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 26 Oct 2015 22:18:16 +0000 (UTC)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga102.jf.intel.com with ESMTP; 26 Oct 2015 15:18:16 -0700", "from jekeller-desk.amr.corp.intel.com ([134.134.3.123])\n\tby fmsmga002.fm.intel.com with ESMTP; 26 Oct 2015 15:18:15 -0700" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.20,201,1444719600\"; d=\"scan'208\";a=\"836053192\"", "From": "Jacob Keller <jacob.e.keller@intel.com>", "To": "Intel Wired LAN <intel-wired-lan@lists.osuosl.org>", "Date": "Mon, 26 Oct 2015 15:18:13 -0700", "Message-Id": "<1445897893-19723-1-git-send-email-jacob.e.keller@intel.com>", "X-Mailer": "git-send-email 2.6.1.264.gbab76a9", "Subject": "[Intel-wired-lan] [next-queue v2] fm10k: conditionally compile DCB\n\tand DebugFS support", "X-BeenThere": "intel-wired-lan@lists.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.lists.osuosl.org>", "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>", "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.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@lists.osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>" }, "content": "Rather than wrapping fm10k_dcbnl.c and fm10k_debugfs.c support with\n #ifdef blocks, just conditionally include the .o files in the Makefile.\nAlso, since we're modifying it, update the copyright year on the\nMakefile.\n\nSigned-off-by: Jacob Keller <jacob.e.keller@intel.com>\nSigned-off-by: Bruce Allan <bruce.w.allan@intel.com>\n---\nThis replaces in-place the previous version of the patch currently in\nthe queue, fixing a compilation error\n\n-v2\n* Fix issue when DCB is disabled, since the function didn't take the\n same parameters.\n\n drivers/net/ethernet/intel/fm10k/Makefile | 20 +++++++++++++++-----\n drivers/net/ethernet/intel/fm10k/fm10k.h | 4 ++++\n drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c | 4 ----\n drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c | 4 ----\n 4 files changed, 19 insertions(+), 13 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/fm10k/Makefile b/drivers/net/ethernet/intel/fm10k/Makefile\nindex 08859dd220a8..b006ff66d028 100644\n--- a/drivers/net/ethernet/intel/fm10k/Makefile\n+++ b/drivers/net/ethernet/intel/fm10k/Makefile\n@@ -1,7 +1,7 @@\n ################################################################################\n #\n # Intel Ethernet Switch Host Interface Driver\n-# Copyright(c) 2013 - 2014 Intel Corporation.\n+# Copyright(c) 2013 - 2015 Intel Corporation.\n #\n # This program is free software; you can redistribute it and/or modify it\n # under the terms and conditions of the GNU General Public License,\n@@ -27,7 +27,17 @@\n \n obj-$(CONFIG_FM10K) += fm10k.o\n \n-fm10k-objs := fm10k_main.o fm10k_common.o fm10k_pci.o \\\n-\t fm10k_netdev.o fm10k_ethtool.o fm10k_pf.o fm10k_vf.o \\\n-\t fm10k_mbx.o fm10k_iov.o fm10k_tlv.o \\\n-\t fm10k_debugfs.o fm10k_ptp.o fm10k_dcbnl.o\n+fm10k-y := fm10k_main.o \\\n+\t fm10k_common.o \\\n+\t fm10k_pci.o \\\n+\t fm10k_ptp.o \\\n+\t fm10k_netdev.o \\\n+\t fm10k_ethtool.o \\\n+\t fm10k_pf.o \\\n+\t fm10k_vf.o \\\n+\t fm10k_mbx.o \\\n+\t fm10k_iov.o \\\n+\t fm10k_tlv.o\n+\n+fm10k-$(CONFIG_DEBUG_FS) += fm10k_debugfs.o\n+fm10k-$(CONFIG_DCB) += fm10k_dcbnl.o\ndiff --git a/drivers/net/ethernet/intel/fm10k/fm10k.h b/drivers/net/ethernet/intel/fm10k/fm10k.h\nindex 48809e5d3f79..2e1e3e9c59c9 100644\n--- a/drivers/net/ethernet/intel/fm10k/fm10k.h\n+++ b/drivers/net/ethernet/intel/fm10k/fm10k.h\n@@ -551,5 +551,9 @@ int fm10k_get_ts_config(struct net_device *netdev, struct ifreq *ifr);\n int fm10k_set_ts_config(struct net_device *netdev, struct ifreq *ifr);\n \n /* DCB */\n+#ifdef CONFIG_DCB\n void fm10k_dcbnl_set_ops(struct net_device *dev);\n+#else\n+static inline void fm10k_dcbnl_set_ops(struct net_device __always_unused *dev) {}\n+#endif\n #endif /* _FM10K_H_ */\ndiff --git a/drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c b/drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c\nindex 5c7a4d7662d8..2be4361839db 100644\n--- a/drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c\n+++ b/drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c\n@@ -20,7 +20,6 @@\n \n #include \"fm10k.h\"\n \n-#ifdef CONFIG_DCB\n /**\n * fm10k_dcbnl_ieee_getets - get the ETS configuration for the device\n * @dev: netdev interface for the device\n@@ -155,7 +154,6 @@ static const struct dcbnl_rtnl_ops fm10k_dcbnl_ops = {\n \t.setdcbx\t= fm10k_dcbnl_setdcbx,\n };\n \n-#endif /* CONFIG_DCB */\n /**\n * fm10k_dcbnl_set_ops - Configures dcbnl ops pointer for netdev\n * @dev: netdev interface for the device\n@@ -164,11 +162,9 @@ static const struct dcbnl_rtnl_ops fm10k_dcbnl_ops = {\n **/\n void fm10k_dcbnl_set_ops(struct net_device *dev)\n {\n-#ifdef CONFIG_DCB\n \tstruct fm10k_intfc *interface = netdev_priv(dev);\n \tstruct fm10k_hw *hw = &interface->hw;\n \n \tif (hw->mac.type == fm10k_mac_pf)\n \t\tdev->dcbnl_ops = &fm10k_dcbnl_ops;\n-#endif /* CONFIG_DCB */\n }\ndiff --git a/drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c b/drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c\nindex 5304bc1fbecd..5d6137faf7d1 100644\n--- a/drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c\n+++ b/drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c\n@@ -18,8 +18,6 @@\n * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497\n */\n \n-#ifdef CONFIG_DEBUG_FS\n-\n #include \"fm10k.h\"\n \n #include <linux/debugfs.h>\n@@ -258,5 +256,3 @@ void fm10k_dbg_exit(void)\n \tdebugfs_remove_recursive(dbg_root);\n \tdbg_root = NULL;\n }\n-\n-#endif /* CONFIG_DEBUG_FS */\n", "prefixes": [ "next-queue", "v2" ] }