RE: [PATCH 2/4] net: make sockptr_is_null strict aliasing safe

2020-07-29 Thread Jan Engelhardt
On Wednesday 2020-07-29 10:04, David Laight wrote: >From: Christoph Hellwig >> Sent: 28 July 2020 17:39 >> >> While the kernel in general is not strict aliasing safe we can trivially >> do that in sockptr_is_null without affecting code generation, so always >> check the actually assigned union

RE: [PATCH 2/4] net: make sockptr_is_null strict aliasing safe

2020-07-29 Thread David Laight
From: Christoph Hellwig > Sent: 28 July 2020 17:39 > > While the kernel in general is not strict aliasing safe we can trivially > do that in sockptr_is_null without affecting code generation, so always > check the actually assigned union member. Even with 'strict aliasing' gcc (at least) guarant