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/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>
1 parent de93245 commit 58f0226

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)