From patchwork Tue Jun 27 07:55:16 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: 106405 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp926385qge; Tue, 27 Jun 2017 00:55:27 -0700 (PDT) X-Received: by 10.98.211.140 with SMTP id z12mr4042168pfk.231.1498550127389; Tue, 27 Jun 2017 00:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498550127; cv=none; d=google.com; s=arc-20160816; b=LP47ZmjCx9dBy5U4Pcivz6fFVWTJGkdsMvRkzVQNsSCVtAUT1HDxEbK9DGLEBUWd7C v//YQJp/Lk7NuQs+4uOR7IqW/hI8Sbk3KOmHYRJHp3w3oxf1v2c9KQJnmaylLljTO4Bw MPx0wZWgKYB+AAW0Q0jmpohtiardXygjXE/C8lAB7ZRZGQOc5NG9mnQiKnrE/GY4kaR9 55E2SgklLmFyFc5dym4Vhz5goNLQcVF4BDjOAbR1wl+35V9gDh6yZ6hnnU3gN8RQHd6S +f43a+UNZycGOdOGOxYEUXaGg2A2//k3M647ybsPdkw2bbImJdmibbSElcghBjOGEPRm 2/mQ== 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=hxi8LrHfpunvbjdJBins4A8l0esRjEHbF/dXHfLudNY=; b=DnZf4jeVrcJa+m8KPT9SkX6mSbI/CXO0H2jGB62FnM4AWxxeRPrUV3TMytxnm+gWmR giPG7t4gXsdQ4STNwpWkg5pvANzpsK9Wk95Ara8+ReKF2mLm5WdEZY/xDj/lUD64nTZS ebQcT99H1KBYEwtfxQ0g7y1h9/sqlu4D6TfGnqKYVec7o78T4xg8opM8KEz/tpYA6JIL 8Z6rcQN0SAJesG590QKgOCxq843+HL6z69U8FsEJqGX+iwYAh2n+ZJNvFYJYuBa4XVFw qhASfaOLPIUsdmxdFQ2pHusgMEwCddJi/4cUyFqCUM9VR+wkuFCI3uCEnDH12SvCudE7 OH+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 z2si1511185pge.55.2017.06.27.00.55.27; Tue, 27 Jun 2017 00:55:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751659AbdF0HzZ (ORCPT + 1 other); Tue, 27 Jun 2017 03:55:25 -0400 Received: from foss.arm.com ([217.140.101.70]:52814 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723AbdF0HzY (ORCPT ); Tue, 27 Jun 2017 03:55:24 -0400 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 5ED7B2B; Tue, 27 Jun 2017 00:55:24 -0700 (PDT) Received: from gby.kfn.arm.com (unknown [10.45.48.148]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 939063F581; Tue, 27 Jun 2017 00:55:22 -0700 (PDT) From: Gilad Ben-Yossef To: Andy Whitcroft , Joe Perches , linux-kernel@vger.kernel.org Cc: Ofir Drang , linux-crypto@vger.kernel.org Subject: [PATCH] checkpatch: add *_ON_STACK to $declaration_macros Date: Tue, 27 Jun 2017 10:55:16 +0300 Message-Id: <1498550116-12475-1-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@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.1.4 diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 4b9569f..b42eb62 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -733,6 +733,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+)?LIST_HEAD\s*\(| + (?:$Storage\s+)?[A-Z_]*_ON_STACK\(| (?:$Storage\s+)?${Type}\s+uninitialized_var\s*\( )};