lkml.org 
[lkml]   [2026]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] i2c: atr: use kzalloc_flex
Hi Rosen,

> > > - alias_pool = kzalloc_obj(*alias_pool);
> > > + alias_pool = kzalloc_flex(*alias_pool, aliases, num_aliases);
> > > if (!alias_pool)
> > > return ERR_PTR(-ENOMEM);
> > >
> > > alias_pool->size = num_aliases;
> >
> > this line is not needed anymore because kzalloc_flex will resolve
> > to alias_pool size and will set it tu num_aliases.
> I believe that only works with GCC15 and above.

Yes, you're right, it works with clang.

Merged to i2c/i2c-host.

Thanks,
Andi

\
 
 \ /
  Last update: 2026-04-10 01:23    [W:0.065 / U:8.653 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog