From: Joe Perches Date: Fri, 26 Feb 2021 01:22:01 +0000 (-0800) Subject: checkpatch: add kmalloc_array_node to unnecessary OOM message check X-Git-Tag: v5.12-rc1~27^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58f02267f04a79a5ef13dfbcf30f5ae080389f87;p=thirdparty%2Fkernel%2Flinux.git 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. Link: https://lkml.kernel.org/r/b9dc4a808b1518e08ab8761480d9872e5d18e7cd.camel@perches.com Signed-off-by: Joe Perches Reported-by: Jakub Kicinski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index d8793bdbc4929..3cdc0703e00f2 100755 --- 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)? |