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

Reply via email to