Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit f252e18

Browse files
committed
Merge remote-tracking branch 'vfio-upstream/next' into gvt-staging
2 parents f06b3f8 + 3fb1712 commit f252e18

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

drivers/vfio/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ menuconfig VFIO
2929

3030
If you don't know what to do here, say N.
3131

32-
menuconfig VFIO_NOIOMMU
32+
config VFIO_NOIOMMU
3333
bool "VFIO No-IOMMU support"
3434
depends on VFIO
3535
help

drivers/vfio/mdev/mdev_core.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ int mdev_register_device(struct device *dev, const struct mdev_parent_ops *ops)
138138
if (!dev)
139139
return -EINVAL;
140140

141-
/* Not mandatory, but its absence could be a problem */
142-
if (!ops->request)
143-
dev_info(dev, "Driver cannot be asked to release device\n");
144-
145141
mutex_lock(&parent_list_lock);
146142

147143
/* Check for duplicate */
@@ -398,7 +394,7 @@ static void __exit mdev_exit(void)
398394
mdev_bus_unregister();
399395
}
400396

401-
module_init(mdev_init)
397+
subsys_initcall(mdev_init)
402398
module_exit(mdev_exit)
403399

404400
MODULE_VERSION(DRIVER_VERSION);

drivers/vfio/pci/vfio_pci_igd.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
#define OPREGION_RVDS 0x3c2
2626
#define OPREGION_VERSION 0x16
2727

28-
static size_t vfio_pci_igd_rw(struct vfio_pci_device *vdev, char __user *buf,
29-
size_t count, loff_t *ppos, bool iswrite)
28+
static ssize_t vfio_pci_igd_rw(struct vfio_pci_device *vdev, char __user *buf,
29+
size_t count, loff_t *ppos, bool iswrite)
3030
{
3131
unsigned int i = VFIO_PCI_OFFSET_TO_INDEX(*ppos) - VFIO_PCI_NUM_REGIONS;
3232
void *base = vdev->region[i].data;
@@ -160,9 +160,9 @@ static int vfio_pci_igd_opregion_init(struct vfio_pci_device *vdev)
160160
return ret;
161161
}
162162

163-
static size_t vfio_pci_igd_cfg_rw(struct vfio_pci_device *vdev,
164-
char __user *buf, size_t count, loff_t *ppos,
165-
bool iswrite)
163+
static ssize_t vfio_pci_igd_cfg_rw(struct vfio_pci_device *vdev,
164+
char __user *buf, size_t count, loff_t *ppos,
165+
bool iswrite)
166166
{
167167
unsigned int i = VFIO_PCI_OFFSET_TO_INDEX(*ppos) - VFIO_PCI_NUM_REGIONS;
168168
struct pci_dev *pdev = vdev->region[i].data;

drivers/vfio/pci/vfio_pci_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct vfio_pci_device;
5656
struct vfio_pci_region;
5757

5858
struct vfio_pci_regops {
59-
size_t (*rw)(struct vfio_pci_device *vdev, char __user *buf,
59+
ssize_t (*rw)(struct vfio_pci_device *vdev, char __user *buf,
6060
size_t count, loff_t *ppos, bool iswrite);
6161
void (*release)(struct vfio_pci_device *vdev,
6262
struct vfio_pci_region *region);

0 commit comments

Comments
 (0)