aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-01-10 14:00:27 -0500
committerAlex Williamson <alex.williamson@redhat.com>2019-02-05 13:51:56 -0500
commit278bca7f318e6a29f482eabbca52db538dc5d4e6 (patch)
tree13c51a6893f19147a62115a9329dec3516b0290f /samples
parent8834f5600cf3c8db365e18a3d5cac2c2780c81e5 (diff)
vfio-mdev: Switch to use new generic UUID API
There are new types and helpers that are supposed to be used in new code. As a preparation to get rid of legacy types and API functions do the conversion here. Cc: Kirti Wankhede <kwankhede@nvidia.com> Cc: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'samples')
-rw-r--r--samples/vfio-mdev/mtty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/vfio-mdev/mtty.c b/samples/vfio-mdev/mtty.c
index f6732aa16bb1..19cd29071ab0 100644
--- a/samples/vfio-mdev/mtty.c
+++ b/samples/vfio-mdev/mtty.c
@@ -156,15 +156,15 @@ static const struct file_operations vd_fops = {
156 156
157/* function prototypes */ 157/* function prototypes */
158 158
159static int mtty_trigger_interrupt(uuid_le uuid); 159static int mtty_trigger_interrupt(const guid_t *uuid);
160 160
161/* Helper functions */ 161/* Helper functions */
162static struct mdev_state *find_mdev_state_by_uuid(uuid_le uuid) 162static struct mdev_state *find_mdev_state_by_uuid(const guid_t *uuid)
163{ 163{
164 struct mdev_state *mds; 164 struct mdev_state *mds;
165 165
166 list_for_each_entry(mds, &mdev_devices_list, next) { 166 list_for_each_entry(mds, &mdev_devices_list, next) {
167 if (uuid_le_cmp(mdev_uuid(mds->mdev), uuid) == 0) 167 if (guid_equal(mdev_uuid(mds->mdev), uuid))
168 return mds; 168 return mds;
169 } 169 }
170 170
@@ -1032,7 +1032,7 @@ static int mtty_set_irqs(struct mdev_device *mdev, uint32_t flags,
1032 return ret; 1032 return ret;
1033} 1033}
1034 1034
1035static int mtty_trigger_interrupt(uuid_le uuid) 1035static int mtty_trigger_interrupt(const guid_t *uuid)
1036{ 1036{
1037 int ret = -1; 1037 int ret = -1;
1038 struct mdev_state *mdev_state; 1038 struct mdev_state *mdev_state;