Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assignment of read-only member ‘vm_flags’ #267

Open
weidingxin3 opened this issue Mar 22, 2024 · 4 comments
Open

assignment of read-only member ‘vm_flags’ #267

weidingxin3 opened this issue Mar 22, 2024 · 4 comments

Comments

@weidingxin3
Copy link

My system:kubuntu 23.10
linux kernel:6.5.0-26-generic
when I cd to dma_ip_drivers/XDMA/linux-kernel/xdma
and make.It show dma_ip_drivers/XDMA/linux-kernel/xdma/cdev_ctrl.c:236:23: error: assignment of read-only member ‘vm_flags’
236 | vma->vm_flags |= VMEM_FLAGS;

How can i do?
Thanke you for any help.

@gonsolo
Copy link

gonsolo commented Apr 25, 2024

Update drivers: #275

@Unlicensed-driver-ljx
Copy link

如何更新这个程序呢

@Unlicensed-driver-ljx
Copy link

Makefile:17: XVC_FLAGS: .
make -C /lib/modules/6.1.57/build M=/home/pi/dma_ip_drivers/XDMA/linux-kernel/xdma modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.57'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: aarch64-linux-gcc (ctng-1.25.0-119g-FA) 11.3.0
You are using: gcc (Ubuntu 11.4.0-1ubuntu122.04) 11.4.0
/home/pi/dma_ip_drivers/XDMA/linux-kernel/xdma/Makefile:17: XVC_FLAGS: .
CC [M] /home/pi/dma_ip_drivers/XDMA/linux-kernel/xdma/libxdma.o
CC [M] /home/pi/dma_ip_drivers/XDMA/linux-kernel/xdma/xdma_cdev.o
CC [M] /home/pi/dma_ip_drivers/XDMA/linux-kernel/xdma/cdev_ctrl.o
/home/pi/dma_ip_drivers/XDMA/linux-kernel/xdma/cdev_ctrl.c: In function 'bridge_mmap':
/home/pi/dma_ip_drivers/XDMA/linux-kernel/xdma/cdev_ctrl.c:236:23: error: assignment of read-only member 'vm_flags'
236 | vma->vm_flags |= VMEM_FLAGS;
| ^

make[2]: *** [scripts/Makefile.build:250: /home/pi/dma_ip_drivers/XDMA/linux-kernel/xdma/cdev_ctrl.o] Error 1
make[1]: *** [Makefile:2057: /home/pi/dma_ip_drivers/XDMA/linux-kernel/xdma] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.57'
make: *** [Makefile:39: all] Error 2

@hinxx
Copy link

hinxx commented Sep 14, 2024

See PR #292.

Sadly Xilinx/AMD is not merging any of code from PRs hence the issues with new kernels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants