Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/10354/?format=api
https://patches.dpdk.org/api/patches/10354/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1454525799-25552-2-git-send-email-thomas.monjalon@6wind.com/", "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": "<1454525799-25552-2-git-send-email-thomas.monjalon@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1454525799-25552-2-git-send-email-thomas.monjalon@6wind.com", "date": "2016-02-03T18:56:37", "name": "[dpdk-dev,1/3] eal/x86: fix build with clang for old AVX", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "b12caa4ecdab27ef1285d18ae07571e15ee4cf54", "submitter": { "id": 1, "url": "https://patches.dpdk.org/api/people/1/?format=api", "name": "Thomas Monjalon", "email": "thomas.monjalon@6wind.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1454525799-25552-2-git-send-email-thomas.monjalon@6wind.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/10354/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/10354/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 239909A81;\n\tWed, 3 Feb 2016 19:58:02 +0100 (CET)", "from mail-wm0-f45.google.com (mail-wm0-f45.google.com\n\t[74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 68CB595D9\n\tfor <dev@dpdk.org>; Wed, 3 Feb 2016 19:58:00 +0100 (CET)", "by mail-wm0-f45.google.com with SMTP id 128so179725290wmz.1\n\tfor <dev@dpdk.org>; Wed, 03 Feb 2016 10:58:00 -0800 (PST)", "from localhost.localdomain (136-92-190-109.dsl.ovh.fr.\n\t[109.190.92.136]) by smtp.gmail.com with ESMTPSA id\n\tqs1sm7823424wjc.2.2016.02.03.10.57.58\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tWed, 03 Feb 2016 10:57:59 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=k6BnYOA/mDQu10JYKqh4oiLft7tbXjuNebwaEyQlRMU=;\n\tb=r64jpsszMelDpqQD0kRQnDDgNNVVXoUmdF2fdIj5/9afwp00Vx7Lr/eXjyt9nn1JNs\n\tCkX2c7Kj8i0vEMaze+V3gm5wL/67hHkeB7aUSqcKvycRZP6Q9tnuCNL6WsgZ815DK9yV\n\tUhspnq/D0ZLsDO7RCLJX0oxlrg0tAyX3jUY7VpsAHE9JsllJrCSasJlx1D7V4+qjwPvT\n\torgOmGOFSu8LNpq67wFTqAbPSvWaY/jsovkUjKdFZT2AK//KtAkf5KFJj1f295ZTQLI9\n\trplq1+esantVymZrHCEvk2wnUOFYC3E6QBZj+N73gJK8qqplby4Mkb8o0qqnNZ4pEYkc\n\tAfKg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=k6BnYOA/mDQu10JYKqh4oiLft7tbXjuNebwaEyQlRMU=;\n\tb=ERT5iBCjV+KxoBpsuAin1eGpfm7lEk4xH9R5UBW6f3+PODJGS5DVw4JYJ+79nreguk\n\tLtil3sgEr4lNint1XPT5EwTVNnKF/zIRaM5YsV3kl6Bj294ShMJ1UqsB2Sd5QnQPVDd5\n\tyFUMjiMxDWaqxv9xoC4M+wbBYtPadRSp2By6uu+WzEN2IpNLvB8b+XMoIElQxnCzHhL3\n\tZlhp2hLwTIQZYP3izCySBy8OilC5kKsW4kHru4LSHaIIyQSOF4abvYjGT/Fpi4yt8st7\n\tlcrsnlZQUvFMVnS4n9l5qjVlhDpBeHbMYQ+9szOIcdMxh+nailYErJWjcJpLeeJKkKB3\n\tXlNQ==", "X-Gm-Message-State": "AG10YOSyJ0dzUhjpb4/loepAsm+a6Nk4xJq9fWLcarsCIxqdoZ8G0RZ5UxkjY7QPEQSbPQnZ", "X-Received": "by 10.194.87.201 with SMTP id ba9mr3640635wjb.128.1454525880229; \n\tWed, 03 Feb 2016 10:58:00 -0800 (PST)", "From": "Thomas Monjalon <thomas.monjalon@6wind.com>", "To": "dev@dpdk.org", "Date": "Wed, 3 Feb 2016 19:56:37 +0100", "Message-Id": "<1454525799-25552-2-git-send-email-thomas.monjalon@6wind.com>", "X-Mailer": "git-send-email 2.7.0", "In-Reply-To": "<1454525799-25552-1-git-send-email-thomas.monjalon@6wind.com>", "References": "<1454525799-25552-1-git-send-email-thomas.monjalon@6wind.com>", "Subject": "[dpdk-dev] [PATCH 1/3] eal/x86: fix build with clang for old AVX", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/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 configuring RTE_MACHINE to \"default\", rte_memcpy implementation\nis the default one (old AVX).\nIn this code, clang raises a warning thanks to -Wsometimes-uninitialized:\n\nrte_memcpy.h:838:6: error:\nvariable 'srcofs' is used uninitialized whenever 'if' condition is false\n if (dstofss > 0) {\n ^~~~~~~~~~~\nrte_memcpy.h:849:6: note: uninitialized use occurs here\n if (srcofs == 0) {\n ^~~~~~\n\nIt is fixed by initializing srcofs to 0.\n\nFixes: 1ae817f9f887 (\"eal/x86: tune memcpy for platforms without AVX512\")\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\n lib/librte_eal/common/include/arch/x86/rte_memcpy.h | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h b/lib/librte_eal/common/include/arch/x86/rte_memcpy.h\nindex 8e2c53c..5badfbc 100644\n--- a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h\n+++ b/lib/librte_eal/common/include/arch/x86/rte_memcpy.h\n@@ -739,7 +739,7 @@ rte_memcpy(void *dst, const void *src, size_t n)\n \tuintptr_t srcu = (uintptr_t)src;\n \tvoid *ret = dst;\n \tsize_t dstofss;\n-\tsize_t srcofs;\n+\tsize_t srcofs = 0;\n \n \t/**\n \t * Copy less than 16 bytes\n", "prefixes": [ "dpdk-dev", "1/3" ] }{ "id": 10354, "url": "