Skip to contentSkip to conversation

checkpatch: adopt new coding style of type-aware kmalloc-family

PATCH New Manuel Ebner 1 participant 1 message Sep 9 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checkpatch: adopt new coding style of type-aware kmalloc-family

Update checkpatch.pl to reflect new type-aware kmalloc-family as suggested in commit 2932ba8d9c99 ("slab: Introduce kmalloc_obj() and family")

Add suffix '_obj(s)' and '_flex' to (km)alloc regex-term.

---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
index f424dafce..66e2b5a01 100755
@@ -639,7 +639,7 @@ our $logFunctions = qr{(?x:
 
 our $allocFunctions = qr{(?x:
 	(?:(?:devm_)?
-		(?:kv|k|v)[czm]alloc(?:_array)?(?:_node)? |
+		(?:kv|k|v)[czm]alloc(?:_array)?(?:_node)?(?:_objs?)?(?:_flex)? |
 		kstrdup(?:_const)? |
 		kmemdup(?:_nul)?) |
 	(?:\w+)?alloc_skb(?:_ip_align)? |
Signature · 1 line
2.54.0