On Fri, 12 Mar 2021 20:56:03 -0400 Jason Gunthorpe <jgg@xxxxxxxxxx> wrote: > The macro wrongly uses 'dev' as both the macro argument and the member > name, which means it fails compilation if any caller uses a word other > than 'dev' as the single argument. Fix this defect by making it into > proper static inline, which is more clear and typesafe anyhow. > > Reviewed-by: Christoph Hellwig <hch@xxxxxx> > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx> > --- > drivers/vfio/mdev/mdev_private.h | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>