Re: [PATCH] IB/hfi1: kzalloc to kzalloc_flex
From: Rosen Penev
Date: Sun Mar 08 2026 - 16:10:29 EST
On Sun, Mar 8, 2026 at 9:00 AM Leon Romanovsky <leon@xxxxxxxxxx> wrote:
>
> On Sat, Mar 07, 2026 at 07:19:56PM -0800, Rosen Penev wrote:
> > Combine kzalloc and kcalloc with a flexible array member. Avoids having
> > to free separately.
> >
> > Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> > ---
> > drivers/infiniband/hw/hfi1/user_exp_rcv.c | 10 +---------
> > drivers/infiniband/hw/hfi1/user_exp_rcv.h | 2 +-
> > 2 files changed, 2 insertions(+), 10 deletions(-)
>
> This patch needs to be rebased to latest rdma-next, due to the conflict
> with already merged 94ff7c59cdfd ("RDMA: Complete k[z|m|c]alloc-to-k[z|m]alloc_obj conversion").
https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/commit/?id=94ff7c59cdfd
Notice: this object is not reachable from any branch.
I'll take your word for it and rebase based on that.
>
> Thanks