RE: [PATCH 1/1] linux/container_of.h: Warn about loss of constness
From: David Laight
Date: Mon Oct 24 2022 - 06:05:24 EST
From: Greg Kroah-Hartman
> Sent: 24 October 2022 11:02
>
> On Mon, Oct 24, 2022 at 09:46:40AM +0000, David Laight wrote:
> > From: 'Andy Shevchenko'
> > > Sent: 24 October 2022 10:37
> > > ...
> > >
> > > > > > > Wait, no one uses this macro, so why not just remove it entirely?
...
> > It might be interesting to check how many of the function
> > can actually have a NULL pointer?
> > Especially in staging code might be being 'defensive'.
>
> This is a pointless discussion, this macro will now be deleted, sorry.
I think we actually agree :-)
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)