Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/138066/?format=api
http://patchwork.dpdk.org/api/patches/138066/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1709763287-10713-2-git-send-email-roretzla@linux.microsoft.com/", "project": { "id": 1, "url": "http://patchwork.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": "<1709763287-10713-2-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1709763287-10713-2-git-send-email-roretzla@linux.microsoft.com", "date": "2024-03-06T22:14:43", "name": "[v3,1/5] eal: add rte pure attribute macro", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "94f8488e47be741a2ba7d083289d9f6136bdce1d", "submitter": { "id": 2077, "url": "http://patchwork.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1709763287-10713-2-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 31407, "url": "http://patchwork.dpdk.org/api/series/31407/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=31407", "date": "2024-03-06T22:14:42", "name": "use rte macros instead of GCC __attribute", "version": 3, "mbox": "http://patchwork.dpdk.org/series/31407/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/138066/comments/", "check": "warning", "checks": "http://patchwork.dpdk.org/api/patches/138066/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 A7EBB43C62;\n\tWed, 6 Mar 2024 23:14:55 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8F1F442EBF;\n\tWed, 6 Mar 2024 23:14:53 +0100 (CET)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 583E9402C0\n for <dev@dpdk.org>; Wed, 6 Mar 2024 23:14:49 +0100 (CET)", "by linux.microsoft.com (Postfix, from userid 1086)\n id 9E23720B74C1; Wed, 6 Mar 2024 14:14:48 -0800 (PST)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 9E23720B74C1", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1709763288;\n bh=hAKbgOjdKYIa1/KjHMhX3WLtW2lNQL2mcyBs/3WsV/A=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=blR2TyW1GM36tHU0k+aVnIb1V6NQLRHH+1u83i24ozJbuKqz4WLaD221jWHhUjA/5\n CYkSVg5KPB+PafXhXbcYsrAoA6eepT1LTBAYARY0TSKYuS0HgWpCZOKU7jXEi8TiOg\n I3S1KUl4SwmzLBvjAgqPZrQl+yGkqLCifiLbEhV8=", "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>,\n Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>,\n Vladimir Medvedkin <vladimir.medvedkin@intel.com>,\n mb@smartsharesystems.com, david.marchand@redhat.com,\n Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH v3 1/5] eal: add rte pure attribute macro", "Date": "Wed, 6 Mar 2024 14:14:43 -0800", "Message-Id": "<1709763287-10713-2-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1709763287-10713-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1709075273-6885-1-git-send-email-roretzla@linux.microsoft.com>\n <1709763287-10713-1-git-send-email-roretzla@linux.microsoft.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "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": "Add __rte_pure for __attribute__((pure)) to permit elimination of\ndirect use of __attribute__((pure)) in other libs.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\nReviewed-by: Morten Brørup <mb@smartsharesystems.com>\n---\n lib/eal/include/rte_common.h | 9 +++++++++\n 1 file changed, 9 insertions(+)", "diff": "diff --git a/lib/eal/include/rte_common.h b/lib/eal/include/rte_common.h\nindex 298a5c6..b15a5b2 100644\n--- a/lib/eal/include/rte_common.h\n+++ b/lib/eal/include/rte_common.h\n@@ -137,6 +137,15 @@\n #define __rte_weak __attribute__((__weak__))\n \n /**\n+ * Mark a function to be pure.\n+ */\n+#ifdef RTE_TOOLCHAIN_MSVC\n+#define __rte_pure\n+#else\n+#define __rte_pure __attribute__((pure))\n+#endif\n+\n+/**\n * Force symbol to be generated even if it appears to be unused.\n */\n #ifdef RTE_TOOLCHAIN_MSVC\n", "prefixes": [ "v3", "1/5" ] }{ "id": 138066, "url": "