diff options
| author | Gilad Ben-Yossef <gilad@benyossef.com> | 2018-04-10 19:33:17 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-11 13:28:35 -0400 |
| commit | 3d102fc0e7b02d4e16752c15aa92923405b01388 (patch) | |
| tree | 5c9bf03b0e9819ebb39a29747f86e97edc04fe42 /scripts | |
| parent | 9f3a89926d6dfc30a4fd1bbcb92cc7b218d3786d (diff) | |
checkpatch: add Crypto ON_STACK to declaration_macros
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);
Link: http://lkml.kernel.org/r/1518941636-4484-1-git-send-email-gilad@benyossef.com
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/checkpatch.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 0f022b56f117..43322bd8f66a 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -791,7 +791,8 @@ our $FuncArg = qr{$Typecast{0,1}($LvalOrFunc|$Constant|$String)}; | |||
| 791 | our $declaration_macros = qr{(?x: | 791 | our $declaration_macros = qr{(?x: |
| 792 | (?:$Storage\s+)?(?:[A-Z_][A-Z0-9]*_){0,2}(?:DEFINE|DECLARE)(?:_[A-Z0-9]+){1,6}\s*\(| | 792 | (?:$Storage\s+)?(?:[A-Z_][A-Z0-9]*_){0,2}(?:DEFINE|DECLARE)(?:_[A-Z0-9]+){1,6}\s*\(| |
| 793 | (?:$Storage\s+)?[HLP]?LIST_HEAD\s*\(| | 793 | (?:$Storage\s+)?[HLP]?LIST_HEAD\s*\(| |
| 794 | (?:$Storage\s+)?${Type}\s+uninitialized_var\s*\( | 794 | (?:$Storage\s+)?${Type}\s+uninitialized_var\s*\(| |
| 795 | (?:SKCIPHER_REQUEST|SHASH_DESC|AHASH_REQUEST)_ON_STACK\s*\( | ||
| 795 | )}; | 796 | )}; |
| 796 | 797 | ||
| 797 | sub deparenthesize { | 798 | sub deparenthesize { |
