History

checkpatch: add kmalloc_array_node to unnecessary OOM message check

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.

Joe Perches committed 5 years ago

Commit 58f02261 parent de932451 file · +1 −1Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+1−1
@@ -487,7 +487,7 @@ our $logFunctions = qr{(?x: · 486 unmodified lines
487 487
488our $allocFunctions = qr{(?x:488our $allocFunctions = qr{(?x:
489 (?:(?:devm_)?489 (?:(?:devm_)?
490 (?:kv|k|v)[czm]alloc(?:_node|_array)? |490 (?:kv|k|v)[czm]alloc(?:_array)?(?:_node)? |
491 kstrdup(?:_const)? |491 kstrdup(?:_const)? |
492 kmemdup(?:_nul)?) |492 kmemdup(?:_nul)?) |
493 (?:\w+)?alloc_skb(?:_ip_align)? |493 (?:\w+)?alloc_skb(?:_ip_align)? |