Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/51095/?format=api
http://patches.dpdk.org/api/patches/51095/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190311173702.24471-12-ncopa@alpinelinux.org/", "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": "<20190311173702.24471-12-ncopa@alpinelinux.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20190311173702.24471-12-ncopa@alpinelinux.org", "date": "2019-03-11T17:36:58", "name": "[11/15] bus/dpaa: fix warning: \"__WORDSIZE\" is not defined, evaluates to 0", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "dcc16f459ab1aba76326135e69f1e61e4907ba3b", "submitter": { "id": 1242, "url": "http://patches.dpdk.org/api/people/1242/?format=api", "name": "Natanael Copa", "email": "ncopa@alpinelinux.org" }, "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/20190311173702.24471-12-ncopa@alpinelinux.org/mbox/", "series": [ { "id": 3705, "url": "http://patches.dpdk.org/api/series/3705/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=3705", "date": "2019-03-11T17:36:47", "name": "Build fixes for musl libc", "version": 1, "mbox": "http://patches.dpdk.org/series/3705/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/51095/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/51095/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id BE3F75A6E;\n\tMon, 11 Mar 2019 18:37:50 +0100 (CET)", "from mx1.tetrasec.net (mx1.tetrasec.net [74.117.190.25])\n\tby dpdk.org (Postfix) with ESMTP id 7B0DA4F9A\n\tfor <dev@dpdk.org>; Mon, 11 Mar 2019 18:37:41 +0100 (CET)", "from mx1.tetrasec.net (mail.local [127.0.0.1])\n\tby mx1.tetrasec.net (Postfix) with ESMTP id 007369E1F68;\n\tMon, 11 Mar 2019 17:37:41 +0000 (UTC)", "from ncopa-desktop.lan (67.63.200.37.customer.cdi.no\n\t[37.200.63.67])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\tkey-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits)\n\tserver-digest SHA256) (No client certificate requested)\n\t(Authenticated sender: n@tanael.org)\n\tby mx1.tetrasec.net (Postfix) with ESMTPSA id 418469E1F6A;\n\tMon, 11 Mar 2019 17:37:40 +0000 (UTC)" ], "From": "Natanael Copa <ncopa@alpinelinux.org>", "To": "dev@dpdk.org", "Cc": "Natanael Copa <ncopa@alpinelinux.org>", "Date": "Mon, 11 Mar 2019 18:36:58 +0100", "Message-Id": "<20190311173702.24471-12-ncopa@alpinelinux.org>", "X-Mailer": "git-send-email 2.21.0", "In-Reply-To": "<20190311173702.24471-1-ncopa@alpinelinux.org>", "References": "<20190311173702.24471-1-ncopa@alpinelinux.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "quoted-printable", "Subject": "[dpdk-dev] [PATCH 11/15] bus/dpaa: fix warning: \"__WORDSIZE\" is not\n\tdefined, evaluates to 0", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "There is no standard saying that __WORDSIZE should be be defined or in\nwhat include it should be defined. Use a portable way to detect 64 bit\nenvironment.\n\nThis fixes a warning when building with musl libc:\n\n warning: \"__WORDSIZE\" is not defined, evaluates to 0 [-Wundef]\n\nSigned-off-by: Natanael Copa <ncopa@alpinelinux.org>\n---\n\nThis was not really a compile error but the warning looked scary enough.\n\nThere are various alternative ways to detect 64bit user-space at compile time,\nbut this is the most portable way I think.\n\n drivers/bus/dpaa/include/fsl_qman.h | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/bus/dpaa/include/fsl_qman.h b/drivers/bus/dpaa/include/fsl_qman.h\nindex e43841499..7f3f40d49 100644\n--- a/drivers/bus/dpaa/include/fsl_qman.h\n+++ b/drivers/bus/dpaa/include/fsl_qman.h\n@@ -11,11 +11,12 @@\n extern \"C\" {\n #endif\n \n+#include <limits.h>\n #include <dpaa_rbtree.h>\n #include <rte_eventdev.h>\n \n /* FQ lookups (turn this on for 64bit user-space) */\n-#if (__WORDSIZE == 64)\n+#if (ULONG_MAX == 0xffffffffffffffff)\n #define CONFIG_FSL_QMAN_FQ_LOOKUP\n /* if FQ lookups are supported, this controls the number of initialised,\n * s/w-consumed FQs that can be supported at any one time.\n", "prefixes": [ "11/15" ] }{ "id": 51095, "url": "