Skip to content

Commit 58f0226

Browse files
JoePerchestorvalds
authored andcommitted
checkpatch: add kmalloc_array_node to unnecessary OOM message check
commit 5799b25 ("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/[email protected] Signed-off-by: Joe Perches <[email protected]> Reported-by: Jakub Kicinski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent de93245 commit 58f0226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/checkpatch.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ sub hash_show_words {
487487

488488
our $allocFunctions = qr{(?x:
489489
(?:(?:devm_)?
490-
(?:kv|k|v)[czm]alloc(?:_node|_array)? |
490+
(?:kv|k|v)[czm]alloc(?:_array)?(?:_node)? |
491491
kstrdup(?:_const)? |
492492
kmemdup(?:_nul)?) |
493493
(?:\w+)?alloc_skb(?:_ip_align)? |

0 commit comments

Comments
 (0)