mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[module] fix loading on 5.10, new member nr_range must be specified
This commit is contained in:
@@ -284,6 +284,7 @@ static int kvmfr_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
|||||||
#else
|
#else
|
||||||
kdev->pgmap.range.start = pci_resource_start(dev, 2);
|
kdev->pgmap.range.start = pci_resource_start(dev, 2);
|
||||||
kdev->pgmap.range.end = pci_resource_end (dev, 2);
|
kdev->pgmap.range.end = pci_resource_end (dev, 2);
|
||||||
|
kdev->pgmap.nr_range = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 9, 0)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 9, 0)
|
||||||
|
Reference in New Issue
Block a user