Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/88244/?format=api
https://patches.dpdk.org/api/patches/88244/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210225182250.1149592-6-thomas@monjalon.net/", "project": { "id": 1, "url": "https://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": "<20210225182250.1149592-6-thomas@monjalon.net>", "list_archive_url": "https://inbox.dpdk.org/dev/20210225182250.1149592-6-thomas@monjalon.net", "date": "2021-02-25T18:22:38", "name": "[v5,05/17] eal/linux: fix build with musl", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "8c3e57c2016dbda432bac208809cacdf65c333d3", "submitter": { "id": 685, "url": "https://patches.dpdk.org/api/people/685/?format=api", "name": "Thomas Monjalon", "email": "thomas@monjalon.net" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210225182250.1149592-6-thomas@monjalon.net/mbox/", "series": [ { "id": 15388, "url": "https://patches.dpdk.org/api/series/15388/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=15388", "date": "2021-02-25T18:22:33", "name": "Alpine/musl build support", "version": 5, "mbox": "https://patches.dpdk.org/series/15388/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/88244/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/88244/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 687E0A034F;\n\tThu, 25 Feb 2021 19:23:54 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0E82A16084A;\n\tThu, 25 Feb 2021 19:23:33 +0100 (CET)", "from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com\n [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 54AB8160840;\n Thu, 25 Feb 2021 19:23:31 +0100 (CET)", "from compute2.internal (compute2.nyi.internal [10.202.2.42])\n by mailout.nyi.internal (Postfix) with ESMTP id F234C5C00C5;\n Thu, 25 Feb 2021 13:23:30 -0500 (EST)", "from mailfrontend1 ([10.202.2.162])\n by compute2.internal (MEProxy); Thu, 25 Feb 2021 13:23:30 -0500", "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n by mail.messagingengine.com (Postfix) with ESMTPA id 1ABD224005C;\n Thu, 25 Feb 2021 13:23:30 -0500 (EST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding; s=fm3; bh=oUeHKLd9qA7KE\n nk84Ylwd5smFBY2GMDVgWeQkQjjniI=; b=YaGH9iovMO2n96hBcitlLZ6qBE9ua\n YvqqJMInwLMFKm5uT40MFFSM1fHzSuGOaopUsr6Yzy3dJeWH5amPjLrwTqDQ2xzw\n +nwepKDfiQg0y7bGNqav6sN6pPxCIuyUuk9XVKFzkuhHlGKotIkEQNYx340pWtvO\n 64lHcx+bx+zd4KOqDkLJ9DwhcLRecqU7DHCZgdZDBzi4e+J6fq3XZT7fPIms9RB4\n OZa9uM4vZ+GRJB/bac+LE8uOOd4Zq6A3B9DFaIDWTTta+uMTQPWIqWX2Blh9i1rm\n dlIS5wsi3z2MzTRjuZrBFdXwgqMdJwDvKKeaCLHCR21p1kZodTzlMVedA==", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:content-transfer-encoding:date:from\n :in-reply-to:message-id:mime-version:references:subject:to\n :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=\n fm2; bh=oUeHKLd9qA7KEnk84Ylwd5smFBY2GMDVgWeQkQjjniI=; b=fnhKMvW1\n qrROBkTh8G9goA/8X5KNHP6HUtXU6pK4CigmG1/UBZDGvX02MvG3Ess0+5agR5iO\n 71AO4qwO2DCnF9GnCTeHF5bLmoeKG7YO5gw69uCzh2dHmxwoiWnKO4lgxzXZkoyT\n 3BXI+lB/rIwV8VjS+T410BI9pJ3FrSj9H1A/VSJ/ES6GieFVszMIb4MQidYavLiW\n yuhBVguJIPFnTEIH86Ds3WyhKmZA03IuBiQcHBiIyUk6Pf3k97ul2w+MfxgbLWNV\n UUDGUdz9D1uolM/C3Nq0q0NVizVhQ3awl0quHlVZuytfgSBfQMKG8esBKFl1M5n0\n 1pzNRa+T+k3UIg==" ], "X-ME-Sender": "<xms:Ius3YN7m6YsPAsd25B8mNSOlQJ0_F_q007zPHqd7YvtznPwduK8erA>\n <xme:Ius3YK7coFinIIueAnBSv43tpBrPRJ-R4Yrtig91UnL7yP8uQZSbJZFzJlr6VabXd\n _8WqcinrGKle95v-w>", "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgeduledrkeelgdduudegucetufdoteggodetrfdotf\n fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen\n uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne\n cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr\n shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg\n ftrfgrthhtvghrnhepvdehgfeivdejgedtveehfefhteelfefgieevgfffveefjeegtdfg\n uedthedtgeevnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf\n hiiigvpedvnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl\n ohhnrdhnvght", "X-ME-Proxy": "<xmx:Ius3YEeiio4y2ajO_MQH4-tFdLhm1pbzEXetvf38_YpQ8rwOVHFsng>\n <xmx:Ius3YGJOKq9-fCd5y9outcB7RhtKfyVB-GRCdqkR1Mgjv5vThhGS4g>\n <xmx:Ius3YBIwCxJcARxvJ-eSZLGpDQP6WAH11XN_ARBj1J2rlPYUbP7dOA>\n <xmx:Ius3YB0pjPaLcm8jxlC_JLQRCtOKgM6yPkkUpS1j2toAx99GrMf80w>", "From": "Thomas Monjalon <thomas@monjalon.net>", "To": "dev@dpdk.org", "Cc": "ncopa@alpinelinux.org, stable@dpdk.org,\n Ferruh Yigit <ferruh.yigit@intel.com>,\n Jerin Jacob <jerin.jacob@caviumnetworks.com>,\n Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>", "Date": "Thu, 25 Feb 2021 19:22:38 +0100", "Message-Id": "<20210225182250.1149592-6-thomas@monjalon.net>", "X-Mailer": "git-send-email 2.30.1", "In-Reply-To": "<20210225182250.1149592-1-thomas@monjalon.net>", "References": "<20190313170657.16688-1-ncopa@alpinelinux.org>\n <20210225182250.1149592-1-thomas@monjalon.net>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v5 05/17] eal/linux: fix build with musl", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "In musl libc, cpu_set_t is defined only if _GNU_SOURCE is defined.\nIn case _GNU_SOURCE is undefined, as in eal_common_errno.c,\nit was not possible to include rte_os.h which uses cpu_set_t.\n\nThis limitation is removed: if _GNU_SOURCE is not defined,\ncpu_set_t related definitions are skipped.\nNote: such definitions are unneeded in eal_common_errno.c.\n\nA missing include of fcntl.h is also added.\n\nBugzilla ID: 35\nFixes: 11b57c698005 (\"eal: fix error string function\")\nFixes: 176bb37ca6f3 (\"eal: introduce internal wrappers for file operations\")\nCc: stable@dpdk.org\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\nSigned-off-by: Natanael Copa <ncopa@alpinelinux.org>\n---\n lib/librte_eal/linux/include/rte_os.h | 2 ++\n lib/librte_eal/unix/eal_file.c | 1 +\n 2 files changed, 3 insertions(+)", "diff": "diff --git a/lib/librte_eal/linux/include/rte_os.h b/lib/librte_eal/linux/include/rte_os.h\nindex 390b87b3a1..f3f9982f40 100644\n--- a/lib/librte_eal/linux/include/rte_os.h\n+++ b/lib/librte_eal/linux/include/rte_os.h\n@@ -12,6 +12,7 @@\n \n #include <sched.h>\n \n+#ifdef _GNU_SOURCE\n typedef cpu_set_t rte_cpuset_t;\n #define RTE_CPU_AND(dst, src1, src2) CPU_AND(dst, src1, src2)\n #define RTE_CPU_OR(dst, src1, src2) CPU_OR(dst, src1, src2)\n@@ -28,5 +29,6 @@ typedef cpu_set_t rte_cpuset_t;\n \tRTE_CPU_FILL(&tmp); \\\n \tCPU_XOR(dst, &tmp, src); \\\n } while (0)\n+#endif\n \n #endif /* _RTE_OS_H_ */\ndiff --git a/lib/librte_eal/unix/eal_file.c b/lib/librte_eal/unix/eal_file.c\nindex 1b26475ba4..ec554e0096 100644\n--- a/lib/librte_eal/unix/eal_file.c\n+++ b/lib/librte_eal/unix/eal_file.c\n@@ -4,6 +4,7 @@\n \n #include <sys/file.h>\n #include <sys/mman.h>\n+#include <fcntl.h>\n #include <unistd.h>\n \n #include <rte_errno.h>\n", "prefixes": [ "v5", "05/17" ] }{ "id": 88244, "url": "