Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/9036/?format=api
http://patches.dpdk.org/api/patches/9036/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1448242808-16101-2-git-send-email-thomas.monjalon@6wind.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": "<1448242808-16101-2-git-send-email-thomas.monjalon@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1448242808-16101-2-git-send-email-thomas.monjalon@6wind.com", "date": "2015-11-23T01:40:07", "name": "[dpdk-dev,v2,1/2] scripts: add checkpatch wrapper", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "b425f892bb683b13387529b468a73051e029c2ef", "submitter": { "id": 1, "url": "http://patches.dpdk.org/api/people/1/?format=api", "name": "Thomas Monjalon", "email": "thomas.monjalon@6wind.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1448242808-16101-2-git-send-email-thomas.monjalon@6wind.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/9036/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/9036/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 C0DBC8E82;\n\tMon, 23 Nov 2015 02:41:33 +0100 (CET)", "from mail-wm0-f43.google.com (mail-wm0-f43.google.com\n\t[74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 71D3F688E\n\tfor <dev@dpdk.org>; Mon, 23 Nov 2015 02:41:30 +0100 (CET)", "by wmuu63 with SMTP id u63so36299915wmu.0\n\tfor <dev@dpdk.org>; Sun, 22 Nov 2015 17:41:30 -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\tq6sm10802275wjx.28.2015.11.22.17.41.29\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tSun, 22 Nov 2015 17:41:29 -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=B8baYyXdOIsULRG79MMDFAvVbqorI/UGPCEGctxcaJA=;\n\tb=AORAC9YCs2C1Xqj9Drq3BWfbUkO0XH+CuQrwcFtnE+7ZQgCvBHOScPiD/WrTcqFCon\n\tGsIa3k8yzIUTlPC43/C8Hq8e4eDYRNuBYP3xvhlf+N+hH7KUDL3ihKwTEG+oO7N2ac4a\n\tvYUeko3ey8pWDUlaLixiodoyZU+2sbZHyox6sTqw07PBssTw59NUa554VQ3Ogpq2/Rfu\n\t0uwdgt6v8Ms/66xNuVdjUYv/qTPsoiElmZKGy+PaWnuosLljG3khxt7P3NTSwVNK8zok\n\tF7EqlJg38vFR31bQVTFD9yiyw8vWgHVgMTBEEYrqBxdXQ1jwn7xOKlid1KO9rGOlBmOy\n\tyxJw==", "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=B8baYyXdOIsULRG79MMDFAvVbqorI/UGPCEGctxcaJA=;\n\tb=GBIE5i7cYkJ3qjTffy6XnYeEdOG+aNwWxKxqTxmtOhpRAEMRKpFkbydvS4dO1giLYx\n\tohtLI0oPrbWm9mV0sP7R7fV/UBvbvRlalMfHxYeqId2IMhAOPEZlAGdX5P/wbBVjRxAw\n\toVox+KfO/2eXLxfkl6JtUSXOqskpi8Au6UEZBciPkAuumfrSXUvQinyLjuJY3CxKCOUQ\n\tUTCTaZwEmUohhV4uL6umX7LE0xV/uxPcIvj3G34J85lvSP2Y7jc5KCNE2u7MQsuE81y2\n\tLCiT+kdyBR6O06NX8Tsz9Ct+naijb0f8KAWwJJJDo8NmYaw0cEnvOf2zqo8hEBYCTx2j\n\twnwA==", "X-Gm-Message-State": "ALoCoQmvxaktQ6HjINkQtUTYY5+zErDcuAzxBrNzHrHhPQYJr4XKN9WqaBviAxIUSFOwk+01f56T", "X-Received": "by 10.28.177.10 with SMTP id a10mr13039557wmf.4.1448242890288;\n\tSun, 22 Nov 2015 17:41:30 -0800 (PST)", "From": "Thomas Monjalon <thomas.monjalon@6wind.com>", "To": "dev@dpdk.org", "Date": "Mon, 23 Nov 2015 02:40:07 +0100", "Message-Id": "<1448242808-16101-2-git-send-email-thomas.monjalon@6wind.com>", "X-Mailer": "git-send-email 2.5.2", "In-Reply-To": "<1448242808-16101-1-git-send-email-thomas.monjalon@6wind.com>", "References": "<1445615606-3885-1-git-send-email-thomas.monjalon@6wind.com>\n\t<1448242808-16101-1-git-send-email-thomas.monjalon@6wind.com>", "Subject": "[dpdk-dev] [PATCH v2 1/2] scripts: add checkpatch wrapper", "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": "This script can be used to call checkpatch.pl from Linux with some\ncustom DPDK options.\n\nThe path to the original Linux script must be set in an environment\nvariable. A script is added to load any configuration variables\nrequired by development tools from a file .develconfig, or\n~/.config/dpdk/devel.config or /etc/dpdk/devel.config.\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\nv2:\n- do not ignore COMPLEX_MACRO\n- use option --no-tree to avoid silent failure\n- add -q and -v options\n\n scripts/checkpatches.sh | 82 ++++++++++++++++++++++++++++++++++++++++++++\n scripts/load-devel-config.sh | 14 ++++++++\n 2 files changed, 96 insertions(+)\n create mode 100755 scripts/checkpatches.sh\n create mode 100755 scripts/load-devel-config.sh", "diff": "diff --git a/scripts/checkpatches.sh b/scripts/checkpatches.sh\nnew file mode 100755\nindex 0000000..afc611b\n--- /dev/null\n+++ b/scripts/checkpatches.sh\n@@ -0,0 +1,82 @@\n+#! /bin/sh\n+\n+# BSD LICENSE\n+#\n+# Copyright 2015 6WIND S.A.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions\n+# are met:\n+#\n+# * Redistributions of source code must retain the above copyright\n+# notice, this list of conditions and the following disclaimer.\n+# * Redistributions in binary form must reproduce the above copyright\n+# notice, this list of conditions and the following disclaimer in\n+# the documentation and/or other materials provided with the\n+# distribution.\n+# * Neither the name of 6WIND S.A. nor the names of its\n+# contributors may be used to endorse or promote products derived\n+# from this software without specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+# \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+# Load config options:\n+# - DPDK_CHECKPATCH_PATH\n+# - DPDK_CHECKPATCH_LINE_LENGTH\n+. scripts/load-devel-config.sh\n+if [ ! -x \"$DPDK_CHECKPATCH_PATH\" ] ; then\n+\techo 'Cannot execute DPDK_CHECKPATCH_PATH' >&2\n+\texit 1\n+fi\n+\n+length=${DPDK_CHECKPATCH_LINE_LENGTH:-80}\n+\n+# override default Linux options\n+options=\"--no-tree\"\n+options=\"$options --max-line-length=$length\"\n+options=\"$options --show-types\"\n+options=\"$options --ignore=LINUX_VERSION_CODE,FILE_PATH_CHANGES,\\\n+VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,PREFER_KERNEL_TYPES,\\\n+SPLIT_STRING,LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\\\n+NEW_TYPEDEFS,COMPARISON_TO_NULL\"\n+\n+print_usage () {\n+\techo \"usage: $(basename $0) [-q] [-v] [patch1 [patch2] ...]]\"\n+}\n+\n+quiet=false\n+verbose=false\n+while getopts hqv ARG ; do\n+\tcase $ARG in\n+\t\tq ) quiet=true ;;\n+\t\tv ) verbose=true ;;\n+\t\th ) print_usage ; exit 0 ;;\n+\t\t? ) print_usage ; exit 1 ;;\n+\tesac\n+done\n+shift $(($OPTIND - 1))\n+\n+status=0\n+for p in \"$@\" ; do\n+\t! $verbose || printf '\\n### %s\\n\\n' \"$p\"\n+\treport=$($DPDK_CHECKPATCH_PATH $options \"$p\" 2>/dev/null)\n+\t[ $? -ne 0 ] || continue\n+\t$verbose || printf '\\n### %s\\n\\n' \"$p\"\n+\tprintf '%s\\n' \"$report\" | head -n -6\n+\tstatus=$(($status + 1))\n+done\n+pass=$(($# - $status))\n+$quiet || printf '%d/%d valid patch' $pass $#\n+$quiet || [ $pass -le 1 ] || printf 'es'\n+$quiet || printf '\\n'\n+exit $status\ndiff --git a/scripts/load-devel-config.sh b/scripts/load-devel-config.sh\nnew file mode 100755\nindex 0000000..489f007\n--- /dev/null\n+++ b/scripts/load-devel-config.sh\n@@ -0,0 +1,14 @@\n+#! /bin/echo must be loaded with .\n+\n+# Load DPDK devel config and allow override\n+# from system file\n+test ! -r /etc/dpdk/devel.config ||\n+ . /etc/dpdk/devel.config\n+# from user file\n+test ! -r ~/.config/dpdk/devel.config ||\n+ . ~/.config/dpdk/devel.config\n+# from local file\n+test ! -r $(dirname $(readlink -m $0))/../.develconfig ||\n+ . $(dirname $(readlink -m $0))/../.develconfig\n+\n+# The config files must export variables in the shell style\n", "prefixes": [ "dpdk-dev", "v2", "1/2" ] }{ "id": 9036, "url": "