Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/45006/?format=api
http://patches.dpdk.org/api/patches/45006/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180920111905.20107-1-bruce.richardson@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": "<20180920111905.20107-1-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20180920111905.20107-1-bruce.richardson@intel.com", "date": "2018-09-20T11:19:05", "name": "eal: fix unused parameter errors on FreeBSD", "commit_ref": null, "pull_url": null, "state": "rejected", "archived": true, "hash": "c3695bc17670bb6252efbd19c7d5dad5e941a6f0", "submitter": { "id": 20, "url": "http://patches.dpdk.org/api/people/20/?format=api", "name": "Bruce Richardson", "email": "bruce.richardson@intel.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/20180920111905.20107-1-bruce.richardson@intel.com/mbox/", "series": [ { "id": 1413, "url": "http://patches.dpdk.org/api/series/1413/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1413", "date": "2018-09-20T11:19:05", "name": "eal: fix unused parameter errors on FreeBSD", "version": 1, "mbox": "http://patches.dpdk.org/series/1413/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/45006/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/45006/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 CDA83326C;\n\tThu, 20 Sep 2018 13:19:34 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 608BBF04\n\tfor <dev@dpdk.org>; Thu, 20 Sep 2018 13:19:32 +0200 (CEST)", "from orsmga006.jf.intel.com ([10.7.209.51])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t20 Sep 2018 04:19:31 -0700", "from silpixa00399126.ir.intel.com (HELO\n\tsilpixa00399126.ger.corp.intel.com) ([10.237.223.223])\n\tby orsmga006.jf.intel.com with ESMTP; 20 Sep 2018 04:19:09 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.53,398,1531810800\"; d=\"scan'208\";a=\"75879496\"", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "anatoly.burakov@intel.com", "Cc": "dev@dpdk.org,\n\tBruce Richardson <bruce.richardson@intel.com>", "Date": "Thu, 20 Sep 2018 12:19:05 +0100", "Message-Id": "<20180920111905.20107-1-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dpdk-dev] [PATCH] eal: fix unused parameter errors on FreeBSD", "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": "When compiling with clang on FreeBSD, lots of warnings/errors are\nthrown for unused parameter. Fix these by marking the parameters\nas unused in the code.\n\nFixes: 3a44687139eb (\"mem: allow querying offset into segment fd\")\nFixes: 046aa5c4477b (\"mem: add memalloc init stage\")\nFixes: 1009ba1704f9 (\"mem: add internal API to get and set segment fd\")\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n lib/librte_eal/bsdapp/eal/eal_memalloc.c | 8 +++++---\n 1 file changed, 5 insertions(+), 3 deletions(-)", "diff": "diff --git a/lib/librte_eal/bsdapp/eal/eal_memalloc.c b/lib/librte_eal/bsdapp/eal/eal_memalloc.c\nindex 06afbcc99..524bc0593 100644\n--- a/lib/librte_eal/bsdapp/eal/eal_memalloc.c\n+++ b/lib/librte_eal/bsdapp/eal/eal_memalloc.c\n@@ -49,19 +49,21 @@ eal_memalloc_sync_with_primary(void)\n }\n \n int\n-eal_memalloc_get_seg_fd(int list_idx, int seg_idx)\n+eal_memalloc_get_seg_fd(int list_idx __rte_unused, int seg_idx __rte_unused)\n {\n \treturn -ENOTSUP;\n }\n \n int\n-eal_memalloc_set_seg_fd(int list_idx, int seg_idx, int fd)\n+eal_memalloc_set_seg_fd(int list_idx __rte_unused, int seg_idx __rte_unused, \n+\t\tint fd __rte_unused)\n {\n \treturn -ENOTSUP;\n }\n \n int\n-eal_memalloc_get_seg_fd_offset(int list_idx, int seg_idx, size_t *offset)\n+eal_memalloc_get_seg_fd_offset(int list_idx __rte_unused, \n+\t\tint seg_idx __rte_unused, size_t *offset __rte_unused)\n {\n \treturn -ENOTSUP;\n }\n", "prefixes": [] }{ "id": 45006, "url": "