v1
2026-09-15
devm_kmalloc 增加 _obj 系列 API · v1
为 devm_kmalloc 家族增加 _obj/_objs/_flex 类型化分配包装,配合 coccinelle 脚本把大量驱动代码迁移到新的 kmalloc_obj 风格接口。
原始补丁链接
子 Patch(2)
1/2
mm: Move default_gfp() into gfp_types.h
Using default_gfp() only depends on the GFP_KERNEL value. Move default_gfp() into gfp_types.h so that future use in devres.h doesn’t require pulling in all of gfp.h. Signed-off-by: Kees Cook <kees@ke
2/2
devres: Provide kmalloc_obj*-style API for devm_kmalloc
[devres: Provide kmalloc_obj*-style API for devm_kmalloc] [patchwork series v1] submitter=Kees Cook patches (2): [1/2] mm: Move default_gfp() into gfp_types.h [2/2] devres: Provide kmalloc_obj*-st