Re: [PATCH] IB/verbs: avoid nested container_of()

2020-10-28 Thread Jason Gunthorpe
On Mon, Oct 26, 2020 at 05:15:39PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Nested container_of() calls work correctly but cause a warning when > building with W=2. Invoking it from an inline function like in > drivers/infiniband/hw/mlx5/mlx5_ib.h means we get hundreds of > warnings

[PATCH] IB/verbs: avoid nested container_of()

2020-10-26 Thread Arnd Bergmann
From: Arnd Bergmann Nested container_of() calls work correctly but cause a warning when building with W=2. Invoking it from an inline function like in drivers/infiniband/hw/mlx5/mlx5_ib.h means we get hundreds of warnings like: include/linux/kernel.h:852:8: warning: declaration of '__mptr' shado