From 295671a9b64f76e646b7bc889e8b010eb5984f1e Mon Sep 17 00:00:00 2001 From: Alon Bar-Lev Date: Thu, 20 Jul 2023 19:29:29 +0300 Subject: [PATCH] cdev_ctrl: use resource_size_t for pci_resource_start() pci_resource_start() return value of type resource_size_t which differs in some archs in 32bit and 64bit systems. --- XDMA/linux-kernel/xdma/cdev_ctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/XDMA/linux-kernel/xdma/cdev_ctrl.c b/XDMA/linux-kernel/xdma/cdev_ctrl.c index dbc41ef3..577a45d4 100644 --- a/XDMA/linux-kernel/xdma/cdev_ctrl.c +++ b/XDMA/linux-kernel/xdma/cdev_ctrl.c @@ -194,9 +194,9 @@ int bridge_mmap(struct file *file, struct vm_area_struct *vma) struct xdma_dev *xdev; struct xdma_cdev *xcdev = (struct xdma_cdev *)file->private_data; unsigned long off; - unsigned long phys; + resource_size_t phys; unsigned long vsize; - unsigned long psize; + resource_size_t psize; int rv; rv = xcdev_check(__func__, xcdev, 0);