From patchwork Wed Dec 20 08:31:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 122449 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5283931qgn; Wed, 20 Dec 2017 00:32:21 -0800 (PST) X-Google-Smtp-Source: ACJfBoto6IA5idFXF51xbLFO64x2ZZNx+yYZ8GiFqFItcWiSl9Dn7w/N8NoChbLhJC8m+nZOMYFx X-Received: by 10.98.93.210 with SMTP id n79mr6191966pfj.215.1513758741400; Wed, 20 Dec 2017 00:32:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513758741; cv=none; d=google.com; s=arc-20160816; b=TYydh+IH46YoE6feuotKce/ouFCIBUVY6WiC35jRrsLJEP5MU6JeRH8MCuHnkNLmW8 bf8jN4lvo9zgESiq/5I10XSvCiKh9E/sHTc0DV0dSG39bQObpLbb7m2Ed2ar31kRJJn1 vL1SNl4iJG6Dngh6PTHkqn2wYgMMWYzKiI/aGsdoVxbsim2KmbDkTBN/k1xzrMfrRP49 U9jxmMY/z5CB2oHN/2dywJRhoBm1SDbl51n41z14MjpAX7vPwlLOVS/AQsbTcu1D+G9s zUgi9jdzoEVBr24XBAUwxh8zunyPOUfrvqDeq42KMZFdoPgakXJ4kVQ1p29oP3syVzDG 0t9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BgYAnMG4Rie6+gaQ3fHIEtY8YAeLsOc3twIPLsOI/+Y=; b=Au65sFgmJD7mP6+8BebXTeM0kuz1aOf+HXggmA0uWXxkiklm9yX3Zf8YtTJyJzFQHv cJaiaszHsLRw7NtMS6D1Qfz9Hyl9G+uD9IuIaTgtLDAgklXvi7Cdxq0hl6Rrc/bsuuFw oIIesb+HFxoNAbIhuHEocojV/QRDinPwX8c3zmJck/hoc3nACgNUhnRHd+uNYJldjJ/v 7qZ0Hs82yYEj5d/PJHJMeMJ7cJdLkIVGE9POp20N148+xXkdroCq2f5tqgqiSeeUpqDg L4rXnh9iC/7J7sAguFgzXwiJysVppKDhtS2gtGOCl9WWZTzz60hX/8CiIX/Nb8rY58Pc 1LVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b35si12094261plh.729.2017.12.20.00.32.21; Wed, 20 Dec 2017 00:32:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754697AbdLTIcQ (ORCPT + 28 others); Wed, 20 Dec 2017 03:32:16 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:48512 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753886AbdLTIcO (ORCPT ); Wed, 20 Dec 2017 03:32:14 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7202B80D; Wed, 20 Dec 2017 00:32:13 -0800 (PST) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 802773F487; Wed, 20 Dec 2017 00:32:11 -0800 (PST) From: Gilad Ben-Yossef To: Andy Whitcroft , Joe Perches Cc: Ofir Drang , linux-crypto@vger.kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH RESEND] checkpatch: add *_ON_STACK to declaration_macros Date: Wed, 20 Dec 2017 08:31:19 +0000 Message-Id: <1513758679-14532-1-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the crypto API *_ON_STACK to $declaration_macros. Resolves the following false warning: WARNING: Missing a blank line after declarations + int err; + SHASH_DESC_ON_STACK(desc, ctx_p->shash_tfm); Signed-off-by: Gilad Ben-Yossef --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 Acked-by: Greg Kroah-Hartman diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 168687a..e7fa1a2 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -759,6 +759,7 @@ our $FuncArg = qr{$Typecast{0,1}($LvalOrFunc|$Constant|$String)}; our $declaration_macros = qr{(?x: (?:$Storage\s+)?(?:[A-Z_][A-Z0-9]*_){0,2}(?:DEFINE|DECLARE)(?:_[A-Z0-9]+){1,6}\s*\(| (?:$Storage\s+)?[HLP]?LIST_HEAD\s*\(| + (?:$Storage\s+)?[A-Z_]*_ON_STACK\(| (?:$Storage\s+)?${Type}\s+uninitialized_var\s*\( )};