ikwzm / udmabuf

User space mappable dma buffer device driver for Linux.
BSD 2-Clause "Simplified" License
539 stars 165 forks source link

x86_64 support ? compile error #85

Closed gadh closed 1 year ago

gadh commented 2 years ago

hi can you add x86_64 support for regular CentOS/RHEL 8.x ? when i compile it on my RHEL 8.x i get this error:

make -C /lib/modules/4.18.0-305.25.1.el8_4.x86_64/build ARCH=x86_64 CROSS_COMPILE= M=/root/dma/udmabuf obj-m=u-dma-buf.o modules make[1]: Entering directory '/usr/src/kernels/4.18.0-305.25.1.el8_4.x86_64' CC [M] /root/dma/udmabuf/u-dma-buf.o /root/dma/udmabuf/u-dma-buf.c:552:16: error: initialization of ‘vm_fault_t ()(struct vm_fault )’ {aka ‘unsigned int ()(struct vm_fault )’} from incompatible pointer type ‘VM_FAULT_RETURN_TYPE ()(struct vm_fault )’ {aka ‘int ()(struct vm_fault )’} [-Werror=incompatible-pointer-types] .fault = udmabuf_device_vma_fault, ^~~~~~~~ /root/dma/udmabuf/u-dma-buf.c:552:16: note: (near initialization for ‘udmabuf_device_vm_ops.fault’)

ikwzm commented 2 years ago

Thank you for the issue.