]> git.ipfire.org Git - thirdparty/linux.git/commit
checkpatch: Suggest kmalloc_obj family for sizeof allocations
authorKees Cook <kees@kernel.org>
Wed, 3 Dec 2025 23:30:32 +0000 (15:30 -0800)
committerKees Cook <kees@kernel.org>
Wed, 14 Jan 2026 22:43:01 +0000 (14:43 -0800)
commit070580b0b1740a4b930f367d21fdb5b253a8b3fb
tree152887123b266a178226297cd9004944e3f87c9d
parent2932ba8d9c99875b98c951d9d3fd6d651d35df3a
checkpatch: Suggest kmalloc_obj family for sizeof allocations

To support shifting away from sized allocation towards typed
allocations, suggest the kmalloc_obj family of macros when a sizeof() is
present in the argument lists.

Link: https://patch.msgid.link/20251203233036.3212363-2-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
scripts/checkpatch.pl