[openEuler-5.10-LTS 370/501] vfio/mdev: Make to_mdev_device() into a static inline