Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/127177/?format=api
http://patches.dpdk.org/api/patches/127177/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230522184951.452626-1-kamilx.godzwon@intel.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": "<20230522184951.452626-1-kamilx.godzwon@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230522184951.452626-1-kamilx.godzwon@intel.com", "date": "2023-05-22T18:49:51", "name": "lib/cryptodev: fix assertion to remove GCC compilation warning", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "721ad7daf696abb644ce9dd5426dcdac2519b554", "submitter": { "id": 3074, "url": "http://patches.dpdk.org/api/people/3074/?format=api", "name": "Kamil Godzwon", "email": "kamilx.godzwon@intel.com" }, "delegate": { "id": 6690, "url": "http://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230522184951.452626-1-kamilx.godzwon@intel.com/mbox/", "series": [ { "id": 28116, "url": "http://patches.dpdk.org/api/series/28116/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28116", "date": "2023-05-22T18:49:51", "name": "lib/cryptodev: fix assertion to remove GCC compilation warning", "version": 1, "mbox": "http://patches.dpdk.org/series/28116/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/127177/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/127177/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 8226842B76;\n\tMon, 22 May 2023 20:51:41 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 118B540EE7;\n\tMon, 22 May 2023 20:51:41 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id EC7B240EE5\n for <dev@dpdk.org>; Mon, 22 May 2023 20:51:39 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 May 2023 11:51:18 -0700", "from fedora37.igk.intel.com ([10.237.87.194])\n by orsmga008.jf.intel.com with ESMTP; 22 May 2023 11:51:17 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1684781500; x=1716317500;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=4OPL+n9M5xkDDKtX+qReK5dF2uOH21xHaNOCIG62Mdo=;\n b=Y9SAjg0fX/SPaaweUk2u1LQgbwkqzcCIIdckrd3C0rItyUr+aHFsxJCa\n fUZKl9KFVD3BQbfXwqN3FABQjunW6Sn1HJmbOc8Wew1GLeD1MpUB24dxy\n cQcdJeUhebHaIolfY33VYMtXjWVWpYm9Wt7QjO+/NU9JeF+3gVoYwZxQS\n clRDVWrZ+MmXN/Qx3EG5jdrA2cp7nfJ2rjrjzL5fMq/21mSMNMZDGt0zz\n lSPP+moUclrA8ZpiymmzKkBsSqh6lrcbGpzYkE3VX8GYpfu+WaZ/3mJqu\n UPjmyEF6WTETVYQUnfm3hhzTojawb/3DbQggG8oiqEHUkjNrxFOV5dQC/ w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10718\"; a=\"342464474\"", "E=Sophos;i=\"6.00,184,1681196400\"; d=\"scan'208\";a=\"342464474\"", "E=McAfee;i=\"6600,9927,10718\"; a=\"734383837\"", "E=Sophos;i=\"6.00,184,1681196400\"; d=\"scan'208\";a=\"734383837\"" ], "X-ExtLoop1": "1", "From": "Kamil Godzwon <kamilx.godzwon@intel.com>", "To": "dev@dpdk.org", "Cc": "Akhil Goyal <gakhil@marvell.com>,\n\tFan Zhang <fanzhang.oss@gmail.com>", "Subject": "[PATCH] lib/cryptodev: fix assertion to remove GCC compilation\n warning", "Date": "Mon, 22 May 2023 14:49:51 -0400", "Message-Id": "<20230522184951.452626-1-kamilx.godzwon@intel.com>", "X-Mailer": "git-send-email 2.40.1", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "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": "/home/vagrant/dpdk/build/include/rte_crypto_sym.h:1009:4: warning: Value stored to 'left' is never read [deadcode.DeadStores]\n left = 0;\n ^ ~\n 1 warning generated.\n\nCompilator sees that the variable 'left' is never read after\nassignment a '0' value. To get rid of this warning message, use 'if'\ncondition to verify the 'left' value before RTE_ASSERT.\n\nSigned-off-by: Kamil Godzwon <kamilx.godzwon@intel.com>\n---\n lib/cryptodev/rte_crypto_sym.h | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)", "diff": "diff --git a/lib/cryptodev/rte_crypto_sym.h b/lib/cryptodev/rte_crypto_sym.h\nindex b43174dbec..d7183a0b9e 100644\n--- a/lib/cryptodev/rte_crypto_sym.h\n+++ b/lib/cryptodev/rte_crypto_sym.h\n@@ -1016,7 +1016,10 @@ rte_crypto_mbuf_to_vec(const struct rte_mbuf *mb, uint32_t ofs, uint32_t len,\n \t\tleft -= seglen;\n \t}\n \n-\tRTE_ASSERT(left == 0);\n+\tif (left != 0) {\n+\t\tRTE_ASSERT(false);\n+\t}\n+\n \treturn i;\n }\n \n", "prefixes": [] }{ "id": 127177, "url": "