Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/125735/?format=api
http://patches.dpdk.org/api/patches/125735/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1680558751-17931-5-git-send-email-roretzla@linux.microsoft.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1680558751-17931-5-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1680558751-17931-5-git-send-email-roretzla@linux.microsoft.com", "date": "2023-04-03T21:52:26", "name": "[4/9] eal: typedef cpu flag enum as int for msvc", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "4933d84dceb063af4dce5ff594d63f05137412c7", "submitter": { "id": 2077, "url": "http://patches.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1680558751-17931-5-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 27611, "url": "http://patches.dpdk.org/api/series/27611/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27611", "date": "2023-04-03T21:52:22", "name": "msvc integration changes", "version": 1, "mbox": "http://patches.dpdk.org/series/27611/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/125735/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/125735/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 5EEB9428C3;\n\tMon, 3 Apr 2023 23:53:00 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3BFDC427E9;\n\tMon, 3 Apr 2023 23:52:43 +0200 (CEST)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 4CB2D410D1\n for <dev@dpdk.org>; Mon, 3 Apr 2023 23:52:37 +0200 (CEST)", "by linux.microsoft.com (Postfix, from userid 1086)\n id 84337210DC6D; Mon, 3 Apr 2023 14:52:36 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 84337210DC6D", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1680558756;\n bh=WfIZcnRYKGDh1nXpqtqJc/Dfdhg/l+26IcDfS6neT/8=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=Jo3sAegOdKhhBPMiodv9gQ2t0XUSodlzAPxXITUCebstckc5zrpYzAtXiSlBercqg\n 8A+W111BnGqQ+NbS3XVME50lKBNrkjX8agrldcpODXMVhok/nWwwMDjThyCPKXy9LM\n gNtkZHa2ovywG59WjOTcxiZZYhu+zwE+iVKuL8QI=", "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "bruce.richardson@intel.com, david.marchand@redhat.com,\n thomas@monjalon.net,\n mb@smartsharesystems.com, Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH 4/9] eal: typedef cpu flag enum as int for msvc", "Date": "Mon, 3 Apr 2023 14:52:26 -0700", "Message-Id": "<1680558751-17931-5-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1680558751-17931-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1680558751-17931-1-git-send-email-roretzla@linux.microsoft.com>", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Forward declaration of a typedef is a non-standard extension and is not\nsupported by msvc. Use an int instead.\n\nAbstract the use of the int/enum rte_cpu_flag_t in function parameter\nlists by re-typdefing the enum rte_cpu_flag_t to the rte_cpu_flag_t\nidentifier.\n\nRemove the use of __extension__ on function prototypes where\nrte_cpu_flag_t appared in parameter lists, it is sufficient to have the\nconditionally compiled __extension__ at the non-standard forward\ndeclaration site.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n---\n lib/eal/include/generic/rte_cpuflags.h | 12 +++++++-----\n 1 file changed, 7 insertions(+), 5 deletions(-)", "diff": "diff --git a/lib/eal/include/generic/rte_cpuflags.h b/lib/eal/include/generic/rte_cpuflags.h\nindex d35551e..87ab03c 100644\n--- a/lib/eal/include/generic/rte_cpuflags.h\n+++ b/lib/eal/include/generic/rte_cpuflags.h\n@@ -44,8 +44,12 @@ struct rte_cpu_intrinsics {\n /**\n * Enumeration of all CPU features supported\n */\n+#ifndef RTE_TOOLCHAIN_MSVC\n __extension__\n-enum rte_cpu_flag_t;\n+typedef enum rte_cpu_flag_t rte_cpu_flag_t;\n+#else\n+typedef int rte_cpu_flag_t;\n+#endif\n \n /**\n * Get name of CPU flag\n@@ -56,9 +60,8 @@ struct rte_cpu_intrinsics {\n * flag name\n * NULL if flag ID is invalid\n */\n-__extension__\n const char *\n-rte_cpu_get_flag_name(enum rte_cpu_flag_t feature);\n+rte_cpu_get_flag_name(rte_cpu_flag_t feature);\n \n /**\n * Function for checking a CPU flag availability\n@@ -70,9 +73,8 @@ struct rte_cpu_intrinsics {\n * 0 if flag is not available\n * -ENOENT if flag is invalid\n */\n-__extension__\n int\n-rte_cpu_get_flag_enabled(enum rte_cpu_flag_t feature);\n+rte_cpu_get_flag_enabled(rte_cpu_flag_t feature);\n \n /**\n * This function checks that the currently used CPU supports the CPU features\n", "prefixes": [ "4/9" ] }{ "id": 125735, "url": "