From patchwork Thu Oct 5 21:33:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Thompson X-Patchwork-Id: 115003 Delivered-To: patches@linaro.org Received: by 10.140.22.163 with SMTP id 32csp1047978qgn; Thu, 5 Oct 2017 14:34:01 -0700 (PDT) X-Received: by 10.223.184.181 with SMTP id i50mr67044wrf.124.1507239241676; Thu, 05 Oct 2017 14:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507239241; cv=none; d=google.com; s=arc-20160816; b=Idt0zbmt0ERgMfN0EsklJFxwBWRdcEcEMXsiKw+pFu1adE7Pu4PAUwYd8xNUOpNVD0 XK39R4lEJg9jaGxH8LlY4nIqvesqBym33k7dfiyAjqcsXpswNUOUBKoKryTsDP1C5/nG bXajdsagcxwBz8sXbo3IyPl+bVAwW20VkBb+w4oMtM3aILWMlDH2JFrgGxlGR16sDaSk mlwtCQpz3wXqDGe4DeofkMU6iFGgpVXXpmOgOF0QV8yEQD01Wz4NqZmZ0G9SXIu4ybf6 xrHtdeLsDb9YGGSiBLlz6Gn1NFNuXgOaqJTRnTGP2jS41RDCjxMhFztnB2/ovXzWQpJq LfSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=azfSFDBJecxKyMOPXcNlJoe8BKFYn0jwn3taJpOZyJs=; b=pdml7K8NOR1HJoPtEa7nFmMfvZEtPf72PWNejlR5vS4yjRyQ+qyZCkoMsXCMVPZafS bp/1sLuSJk5ir/FiYLqZwDEDRQ5GJvrVVoH2K32z7QZ3pTeLxVvMf4rjvQ1GvCN77QoP d/BMTO6S2fzmw4Z5R1j/SWqZNhTTRD/dUCodXVxPPyuPblUsmpzi5/bENGDrDWT2XwgS Hf9Rg5TAVIKU6mA1HrITdLJua7DRMaot5GGZIo5V0VFpPOU0Oruu/ORl+XBdaC0NTLfp YKQOYm+0sbY7p73vj3H9mW3TfUe5z4Gt35N+38Er2nZqiQpiAeAk2bduor8HrnC/LlFM SQ7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jVPFopao; spf=pass (google.com: domain of daniel.thompson@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=daniel.thompson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id p84sor71897wmf.53.2017.10.05.14.34.01 for (Google Transport Security); Thu, 05 Oct 2017 14:34:01 -0700 (PDT) Received-SPF: pass (google.com: domain of daniel.thompson@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jVPFopao; spf=pass (google.com: domain of daniel.thompson@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=daniel.thompson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=azfSFDBJecxKyMOPXcNlJoe8BKFYn0jwn3taJpOZyJs=; b=jVPFopao1BzmzFkndxpP64osmET9Wtwv1XabBtByS4OLOHxSVWWkjIkqai375qlnag XerYVhvITWqtULw3VWu29Kg2U3oVylmx8UU787XYGqZtWjGE125LAOJDFoTjuaLnoIgv /ZX3OumoIXogUtLS/UEI1oCpeePndwkeIeTs0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=azfSFDBJecxKyMOPXcNlJoe8BKFYn0jwn3taJpOZyJs=; b=az50mrsybm4qv9Rw6U4SpX7EBmIr5OZ7XGQHTmvikUlwyYoo0SwfC6pZspa+0m22HV bmh104Th7zxlGUZFbGsq3dwuOJl8vc5WiaI/VIHVOlPtPSGnRkqkoQGNu7VKf/4j1PYC gRgVdsqOZKoBn9eNEEJt+oBLU7vV8M+2Xy47QbLLntvSPNXHRA7rQAY2StHciu6MLloG wz3chSg47epr+4JXkI/ie6glee29oD0625oOMiEM26NVCcTRvmOTjkLcUz2Lpt+JTDCP aSA1R1Uo57KyOPkEhns2fWrbKokjiWdjTsxmvDD212b0iOPpUnSn5kz3km9Fcx8mBEYT KfjA== X-Gm-Message-State: AMCzsaWvF0e3uV05Jlbx9pCtyKnPgR95Z0DJLEHjMtiMrNdSKnUEk3H1 mK/ORpMI7vuVtmSH96GSrSq2ve7n X-Google-Smtp-Source: AOwi7QCF9u1jL29hVa5yKRHJIkYztHcz1UK+jfETWbmo1wwmsJBcRRxnulSW6loeVijmWZuIDp42/w== X-Received: by 10.28.229.149 with SMTP id c143mr47322wmh.156.1507239241243; Thu, 05 Oct 2017 14:34:01 -0700 (PDT) Return-Path: Received: from wychelm.lan (cpc87211-aztw31-2-0-cust196.18-1.cable.virginm.net. [82.46.60.197]) by smtp.gmail.com with ESMTPSA id s123sm281395wmd.29.2017.10.05.14.33.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Oct 2017 14:34:00 -0700 (PDT) From: Daniel Thompson To: Jacob Keller Cc: Daniel Thompson , aiaiai@lists.infradead.org, patches@linaro.org, Lee Jones Subject: [PATCH] test-patchset: Make a copy of const_structs.checkpatch Date: Thu, 5 Oct 2017 22:33:57 +0100 Message-Id: <20171005213357.4369-1-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.9.5 Currently aiaiai issues the following warning for each patch under test because recent versions of checkpatch look for a list of structures in scripts/const_structs.checkpatch . This patch fixes the problem by copying out the extra file (if one is found). Signed-off-by: Daniel Thompson --- aiaiai-test-patchset | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.9.5 diff --git a/aiaiai-test-patchset b/aiaiai-test-patchset index 6193dfcae0f1..0ecbac68e9fd 100755 --- a/aiaiai-test-patchset +++ b/aiaiai-test-patchset @@ -481,12 +481,18 @@ if [ -n "$checkpatch" ]; then git show "$commit_id1:scripts/checkpatch.pl" > "$checkpatch_pl" chmod $verbose u+x "$checkpatch_pl" >&2 - # Also grab the typo corrections if the kernel under test has + # Grab the typo corrections if the kernel under test has # one (no need to report errors... if something is weird # checkpatch will let us know). if git cat-file -e "$commit_id1:scripts/spelling.txt" 2>/dev/null; then git show "$commit_id1:scripts/spelling.txt" > "$tmpdir/checkpatch/spelling.txt" fi + + # Also grab the list of constant structures (if present in this kernel) + if git cat-file -e "$commit_id1:scripts/const_structs.checkpatch" 2>/dev/null; then + git show "$commit_id1:scripts/const_structs.checkpatch" > "$tmpdir/checkpatch/const_structs.checkpatch" + fi + else verbose "Can't find checkpatch.pl.. disabling checkpatch tests." checkpatch=