projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f3a899
)
checkpatch: add Crypto ON_STACK to declaration_macros
author
Gilad Ben-Yossef
<
[email protected]
>
Tue, 10 Apr 2018 23:33:17 +0000
(16:33 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Apr 2018 17:28:35 +0000
(10:28 -0700)
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/
[email protected]
Signed-off-by: Gilad Ben-Yossef <
[email protected]
>
Signed-off-by: Joe Perches <
[email protected]
>
Acked-by: Greg Kroah-Hartman <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
scripts/checkpatch.pl
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index 0f022b56f11717e27bc6b84f8b4f51492ba62028..43322bd8f66ab496ba5a8d4f0396814924e9a91b 100755
(executable)
--- 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 {