From 13138588896de6a495c341950e3f06be33bd728c Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 3 Jan 2021 23:41:59 +1100 Subject: [PATCH] [module] fix loading on 5.10, new member nr_range must be specified --- module/kvmfr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/module/kvmfr.c b/module/kvmfr.c index 981c7480..ed8c776b 100644 --- a/module/kvmfr.c +++ b/module/kvmfr.c @@ -284,6 +284,7 @@ static int kvmfr_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) #else kdev->pgmap.range.start = pci_resource_start(dev, 2); kdev->pgmap.range.end = pci_resource_end (dev, 2); + kdev->pgmap.nr_range = 1; #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 9, 0)