mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] checkpatch: adopt new coding style of type-aware kmalloc-family
@ 2026-09-09 14:07 Manuel Ebner
  0 siblings, 0 replies; only message in thread
From: Manuel Ebner @ 2026-09-09 14:07 UTC (permalink / raw)
  To: Andy Whitcroft, Joe Perches, Dwaipayan Ray, Lukas Bulwahn
  Cc: Manuel Ebner, linux-kernel

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.

Signed-off-by: Manuel Ebner <manuelebnerli@mailbox.org>
---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index f424dafce..66e2b5a01 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -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)? |
-- 
2.54.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-09 14:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-09 14:07 [PATCH] checkpatch: adopt new coding style of type-aware kmalloc-family Manuel Ebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®