We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d04bb08 commit 3965292Copy full SHA for 3965292
scripts/checkpatch.pl
@@ -7146,7 +7146,7 @@ sub process {
7146
}
7147
7148
# check for alloc argument mismatch
7149
- if ($line =~ /\b((?:devm_)?(?:kcalloc|kmalloc_array))\s*\(\s*sizeof\b/) {
+ if ($line =~ /\b((?:devm_)?((?:k|kv)?(calloc|malloc_array)(?:_node)?))\s*\(\s*sizeof\b/) {
7150
WARN("ALLOC_ARRAY_ARGS",
7151
"$1 uses number as first arg, sizeof is generally wrong\n" . $herecurr);
7152
0 commit comments