[openEuler-5.10 365/496] vfio/mdev: Make to_mdev_device() into a static inline