From patchwork Sun Feb 18 08:13:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 128771 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2280136ljc; Sun, 18 Feb 2018 00:15:00 -0800 (PST) X-Google-Smtp-Source: AH8x226WvTtt2eSGkV18fxxHj5RSot8PGjlKpNWooy8VVKUUYDNeR6zbn1+k7+wt2PY+K/6IImRq X-Received: by 10.99.55.65 with SMTP id g1mr9373879pgn.284.1518941700664; Sun, 18 Feb 2018 00:15:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518941700; cv=none; d=google.com; s=arc-20160816; b=TmX37mbW/3KGpGnGwfcS9sISrgbXboqdW2dbb0EWOgZIM/aoKqDx3NSRCDkxb52CgJ +yTInBpOPCzXfTD9NByR/kpdFTGPUoqyM33rWTnPiVgzZIs3QAutXGSAII4bsp6m7el4 V3doM8C+gh6EHcjnIsyXeWxljvOkMk5DiLRJqOiqJb9Hvko8xr+KthR/Rj+dt/bfVoLG BmwFD3WwJkcmTJckG70y1av2T/GVMxrkSeYscYhFO8dL2LFpNJYwAV1yWrztsLhfY8pJ Ep3deaR6X46gJ0FKybfL/58VhyYNBeUtJCJfUNXBXXV1m3CbW7boT+kccUcWKjBXRio/ VWzw== 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=/BrcmitW92LF2zSSYfpqn7xNbdeSu9qld++HQ6eKhMs=; b=q1yTrgPuhDJmrwNisTSVwye4lFVjAVpzDjZO32YPLssKH1uSyLyPBMHcSEQiwUtxsn PfmsV60JpU/wKYvWOsF7o0//i0+udXVmTfebvJYsEj07cgV86sx1pRjS6u1ajBjMthTc wN0UPGaDSy2ELrorkYKBbzxnlocM9jULFK8gArjo7D51uAWZg7sCWUMj7NvvmfpAZWuN 4DpYW6/456NzuEVgw4UszSIiscfR97snlll940d6x6glyb2ZdT/OBHk5Jx8FX/zFI0Ip eOQJWIzjAbO2MBI60qRbzA+yIBrxoQxasPZBZIT5TC3liM6PL30qItpXW2Caftpu0v51 ZMJw== 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 z2-v6si671340pln.702.2018.02.18.00.15.00; Sun, 18 Feb 2018 00:15:00 -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 S1751353AbeBRIOz (ORCPT + 28 others); Sun, 18 Feb 2018 03:14:55 -0500 Received: from foss.arm.com ([217.140.101.70]:50854 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbeBRIOy (ORCPT ); Sun, 18 Feb 2018 03:14:54 -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 B71FC1529; Sun, 18 Feb 2018 00:14:53 -0800 (PST) Received: from sugar.benyossef.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1AE773F53D; Sun, 18 Feb 2018 00:14:51 -0800 (PST) From: Gilad Ben-Yossef To: Andy Whitcroft , Joe Perches Cc: Ofir Drang , linux-kernel@vger.kernel.org Subject: [RESEND PATCH v2] checkpatch: add Crypto ON_STACK to declaration_macros Date: Sun, 18 Feb 2018 08:13:55 +0000 Message-Id: <1518941636-4484-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); Acked-by: Greg Kroah-Hartman Signed-off-by: Gilad Ben-Yossef --- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 Signed-off-by: Joe Perches diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 3d40403..7d632645 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -791,7 +791,8 @@ 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+)?${Type}\s+uninitialized_var\s*\( + (?:$Storage\s+)?${Type}\s+uninitialized_var\s*\(| + (?:SKCIPHER_REQUEST|SHASH_DESC|AHASH_REQUEST)_ON_STACK\s*\( )}; sub deparenthesize {