Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/862506/?format=api
{ "id": 862506, "url": "http://patchwork.ozlabs.org/api/patches/862506/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20180117161607.49344-10-avinash.dayanand@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": "<20180117161607.49344-10-avinash.dayanand@intel.com>", "list_archive_url": null, "date": "2018-01-17T16:16:04", "name": "[v2,next-queue,09/12] virtchnl: Add a macro to check the size of a union", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "44471768f656e33c6395abc2b21dc536b7d49682", "submitter": { "id": 67689, "url": "http://patchwork.ozlabs.org/api/people/67689/?format=api", "name": "Dayanand, Avinash", "email": "avinash.dayanand@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/20180117161607.49344-10-avinash.dayanand@intel.com/mbox/", "series": [ { "id": 23980, "url": "http://patchwork.ozlabs.org/api/series/23980/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=23980", "date": "2018-01-17T16:15:55", "name": "Enable queue channel and cloud filter support on i40evf", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/23980/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/862506/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/862506/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" ], "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.137; helo=fraxinus.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\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 3zMH0W40Lcz9t5Q\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 18 Jan 2018 06:17:31 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id DF8B588822;\n\tWed, 17 Jan 2018 19:17:29 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id VB0QMhpehai3; Wed, 17 Jan 2018 19:17:29 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 639D288825;\n\tWed, 17 Jan 2018 19:17:29 +0000 (UTC)", "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 09B2E1C156B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 17 Jan 2018 19:17:26 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 06BFD89425\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 17 Jan 2018 19:17:26 +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 KERy9CKOKiCK for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 17 Jan 2018 19:17:24 +0000 (UTC)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 99B8989429\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 17 Jan 2018 19:17:24 +0000 (UTC)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t17 Jan 2018 11:17:24 -0800", "from avi-linux2.jf.intel.com ([10.166.244.156])\n\tby fmsmga005.fm.intel.com with ESMTP; 17 Jan 2018 11:17:24 -0800" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.46,372,1511856000\"; d=\"scan'208\";a=\"196382223\"", "From": "Avinash Dayanand <avinash.dayanand@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Wed, 17 Jan 2018 08:16:04 -0800", "Message-Id": "<20180117161607.49344-10-avinash.dayanand@intel.com>", "X-Mailer": "git-send-email 2.9.4", "In-Reply-To": "<20180117161607.49344-1-avinash.dayanand@intel.com>", "References": "<20180117161607.49344-1-avinash.dayanand@intel.com>", "Subject": "[Intel-wired-lan] [PATCH v2 next-queue 09/12] virtchnl: Add a macro\n\tto check the size of a union", "X-BeenThere": "intel-wired-lan@osuosl.org", "X-Mailman-Version": "2.1.24", "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": "From: Harshitha Ramamurthy <harshitha.ramamurthy@intel.com>\n\nThis patch adds a macro to check if the size of a union is correct.\nIt throws a divide by zero error if the union is not of the correct\nsize.\n\nSigned-off-by: Harshitha Ramamurthy <harshitha.ramamurthy@intel.com>\n---\n include/linux/avf/virtchnl.h | 8 +++++---\n 1 file changed, 5 insertions(+), 3 deletions(-)", "diff": "diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h\nindex 1f652ce..6fe630e 100644\n--- a/include/linux/avf/virtchnl.h\n+++ b/include/linux/avf/virtchnl.h\n@@ -140,13 +140,15 @@ enum virtchnl_ops {\n \tVIRTCHNL_OP_DISABLE_CHANNELS = 31,\n };\n \n-/* This macro is used to generate a compilation error if a structure\n+/* These macros are used to generate compilation errors if a structure/union\n * is not exactly the correct length. It gives a divide by zero error if the\n- * structure is not of the correct size, otherwise it creates an enum that is\n- * never used.\n+ * structure/union is not of the correct size, otherwise it creates an enum\n+ * that is never used.\n */\n #define VIRTCHNL_CHECK_STRUCT_LEN(n, X) enum virtchnl_static_assert_enum_##X \\\n \t{ virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }\n+#define VIRTCHNL_CHECK_UNION_LEN(n, X) enum virtchnl_static_asset_enum_##X \\\n+\t{ virtchnl_static_assert_##X = (n)/((sizeof(union X) == (n)) ? 1 : 0) }\n \n /* Virtual channel message descriptor. This overlays the admin queue\n * descriptor. All other data is passed in external buffers.\n", "prefixes": [ "v2", "next-queue", "09/12" ] }