diff options
author | Jason Gunthorpe <[email protected]> | 2021-03-30 09:53:07 -0600 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2021-04-06 11:55:11 -0600 |
commit | 66873b5fa738ca02b5c075ca4a410b13d88e6e9a (patch) | |
tree | 9e0a9612e347dee157ea2e678fc288c86b9eda76 /lib/mpi/mpi-sub-ui.c | |
parent | 1ae1b20f6f2c67659c963e5fe58f9b4a47df9f12 (diff) |
vfio/mdev: Make to_mdev_device() into a static inline
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.
Fixes: 99e3123e3d72 ("vfio-mdev: Make mdev_device private and abstract interfaces")
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions