Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/137404/?format=api
http://patches.dpdk.org/api/patches/137404/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1709078215-20292-3-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": "<1709078215-20292-3-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1709078215-20292-3-git-send-email-roretzla@linux.microsoft.com", "date": "2024-02-27T23:56:51", "name": "[v3,2/6] rcu: replace zero length array with flex array", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e0896869d1fcca8d074be32a02a835e15e15340f", "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/1709078215-20292-3-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 31264, "url": "http://patches.dpdk.org/api/series/31264/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31264", "date": "2024-02-27T23:56:51", "name": "more replacement of zero length array", "version": 3, "mbox": "http://patches.dpdk.org/series/31264/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/137404/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/137404/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 852C143BD7;\n\tWed, 28 Feb 2024 00:56:58 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 46B9C402A9;\n\tWed, 28 Feb 2024 00:56:58 +0100 (CET)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id EB62C40295\n for <dev@dpdk.org>; Wed, 28 Feb 2024 00:56:56 +0100 (CET)", "by linux.microsoft.com (Postfix, from userid 1086)\n id 521C420B74C2; Tue, 27 Feb 2024 15:56:56 -0800 (PST)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 521C420B74C2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1709078216;\n bh=sS0fxsFYHt5g+COMzG64UWENaLHUXNX8eD4SomL21Sg=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=XQ1AjJE9zTCeXTuTpVCwI2xQdRI7q9F/yM33spg4eEF9zzGSUQScgcshpg45pB20n\n ay8Zl2nbIoo49Wygvq4b3aU6gNt8qUCF7Uf8MBK9Zq6sPVBdcFUHwb4pFXaTX4es+k\n 8OrHAwmKjMIFHfN1y5MMjLrwEt3blG9vV932uKgE=", "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>,\n Cristian Dumitrescu <cristian.dumitrescu@intel.com>,\n Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>,\n Sameh Gobriel <sameh.gobriel@intel.com>,\n Vladimir Medvedkin <vladimir.medvedkin@intel.com>,\n Yipeng Wang <yipeng1.wang@intel.com>, mb@smartsharesystems.com,\n fengchengwen@huawei.com, Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH v3 2/6] rcu: replace zero length array with flex array", "Date": "Tue, 27 Feb 2024 15:56:51 -0800", "Message-Id": "<1709078215-20292-3-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1709078215-20292-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1706134657-17446-1-git-send-email-roretzla@linux.microsoft.com>\n <1709078215-20292-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": "Zero length arrays are GNU extension. Replace with\nstandard flex array.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\nReviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>\nReviewed-by: Morten Brørup <mb@smartsharesystems.com>\nAcked-by: Chengwen Feng <fengchengwen@huawei.com>\nAcked-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/rcu/rcu_qsbr_pvt.h | 2 +-\n lib/rcu/rte_rcu_qsbr.h | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/lib/rcu/rcu_qsbr_pvt.h b/lib/rcu/rcu_qsbr_pvt.h\nindex 5fd7ca2..96d05e6 100644\n--- a/lib/rcu/rcu_qsbr_pvt.h\n+++ b/lib/rcu/rcu_qsbr_pvt.h\n@@ -52,7 +52,7 @@ struct rte_rcu_qsbr_dq {\n */\n typedef struct {\n \tuint64_t token; /**< Token */\n-\tuint8_t elem[0]; /**< Pointer to user element */\n+\tuint8_t elem[]; /**< Pointer to user element */\n } __attribute__((__may_alias__)) __rte_rcu_qsbr_dq_elem_t;\n \n #endif /* _RTE_RCU_QSBR_PVT_H_ */\ndiff --git a/lib/rcu/rte_rcu_qsbr.h b/lib/rcu/rte_rcu_qsbr.h\nindex e7ef788..af9cbea 100644\n--- a/lib/rcu/rte_rcu_qsbr.h\n+++ b/lib/rcu/rte_rcu_qsbr.h\n@@ -106,7 +106,7 @@ struct rte_rcu_qsbr {\n \tuint32_t max_threads;\n \t/**< Maximum number of threads using this QS variable */\n \n-\tstruct rte_rcu_qsbr_cnt qsbr_cnt[0] __rte_cache_aligned;\n+\tstruct rte_rcu_qsbr_cnt qsbr_cnt[] __rte_cache_aligned;\n \t/**< Quiescent state counter array of 'max_threads' elements */\n \n \t/**< Registered thread IDs are stored in a bitmap array,\n", "prefixes": [ "v3", "2/6" ] }{ "id": 137404, "url": "