Re: [PATCH v2 wireless-next 2/9] carl9170: remove unnecessary (void*) conversions

From: Dan Carpenter
Date: Fri Sep 29 2023 - 08:30:51 EST


On Fri, Sep 29, 2023 at 03:26:17PM +0300, Dan Carpenter wrote:
> On Fri, Sep 29, 2023 at 09:23:26AM +0200, Christian Lamparter wrote:
> > I would like to take the chance to again point to this beauty:
> > <https://lore.kernel.org/linux-wireless/TYAP286MB03154F9AAFD4C35BEEDE4A99BC4CA@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/T/#mf1b8919a000fe661803c17073f48b3c410888541>
> > @Dan, @Jeff can you please comment on that too?
>
> I don't know how Shiji Yang generated this warning. The warning doesn't
> make sense and I don't see how the patch helps. I tested with GCC (v12)
> and Clang (random from git) and neither one generates a warning. What's
> the point of having all the struct members in a group when struct itself
> already forms a group?
>
> #confused

Wait, all this was in the email thread from June but I didn't scroll
down beyond the end of the patch... It was just a compiler bug in a
GCC dot release.

regards,
dan carpenter