Messages in this thread |  | | Date | Fri, 10 Apr 2026 01:22:31 +0200 | | From | Andi Shyti <> | | Subject | Re: [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
|  |