public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* New memory allocation API
@ 2026-02-26  7:19 Leon Romanovsky
  0 siblings, 0 replies; only message in thread
From: Leon Romanovsky @ 2026-02-26  7:19 UTC (permalink / raw)
  To: RDMA mailing list, Jason Gunthorpe

Hi,

Please be aware that v7.0-rc1 has two commits:
bf4afc53b77a ("Convert 'alloc_obj' family to use the new default GFP_KERNEL argument")
69050f8d6d07 ("treewide: Replace kmalloc with kmalloc_obj for non-scalar types")

Which changes old and well known kmalloc*() calls to kmalloc_obj():

    Single allocations:     kmalloc(sizeof(TYPE), ...)
    are replaced with:      kmalloc_obj(TYPE, ...)

    Array allocations:      kmalloc_array(COUNT, sizeof(TYPE), ...)
    are replaced with:      kmalloc_objs(TYPE, COUNT, ...)

    Flex array allocations: kmalloc(struct_size(PTR, FAM, COUNT), ...)
    are replaced with:      kmalloc_flex(*PTR, FAM, COUNT, ...)

    (where TYPE may also be *VAR)

    The resulting allocations no longer return "void *", instead returning
    "TYPE *".

Thanks

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

only message in thread, other threads:[~2026-02-26  7:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-26  7:19 New memory allocation API Leon Romanovsky

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