projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de93245
)
checkpatch: add kmalloc_array_node to unnecessary OOM message check
author
Joe Perches
<joe@perches.com>
Fri, 26 Feb 2021 01:22:01 +0000
(17:22 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 26 Feb 2021 17:41:04 +0000
(09:41 -0800)
commit
5799b255c491
("include/linux/slab.h: add kmalloc_array_node() and
kcalloc_node()") was added in 2017. Update the unnecessary OOM message
test to include it.
Link:
https://lkml.kernel.org/r/b9dc4a808b1518e08ab8761480d9872e5d18e7cd.camel@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Reported-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index d8793bdbc49294cdd10a2b5c2feea4de934938c5..3cdc0703e00f2a8b89efad658571f16110b2972e 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
scripts/checkpatch.pl
@@
-487,7
+487,7
@@
our $logFunctions = qr{(?x:
our $allocFunctions = qr{(?x:
(?:(?:devm_)?
- (?:kv|k|v)[czm]alloc(?:_
node|_array
)? |
+ (?:kv|k|v)[czm]alloc(?:_
array)?(?:_node
)? |
kstrdup(?:_const)? |
kmemdup(?:_nul)?) |
(?:\w+)?alloc_skb(?:_ip_align)? |