NVIDIA / gdrcopy

A fast GPU memory copy library based on NVIDIA GPUDirect RDMA technology
MIT License
890 stars 144 forks source link

gdrdrv does on build on 5.10+ #161

Closed drossetti closed 3 years ago

drossetti commented 3 years ago

kzfee has been removed from the Linux kernel since 5.10-rc1

CC [M]  /home/lab/IMB/gdrcopy-2.1/src/gdrdrv/gdrdrv.o
/home/lab/IMB/gdrcopy-2.1/src/gdrdrv/gdrdrv.c: In function ‘gdrdrv_release’:
/home/lab/IMB/gdrcopy-2.1/src/gdrdrv/gdrdrv.c:384:9: error: implicit declaration of function ‘kzfree’; did you mean ‘kvfree’?
drossetti commented 3 years ago

@pakmarkthub I think we can simply replace kzfree() with memset()+kfree(), right?

drossetti commented 3 years ago

actually kzfree() has been renamed, see https://github.com/torvalds/linux/commit/453431a54934d917153c65211b2dabf45562ca88

drossetti commented 3 years ago

probably simply using kfree() is enough... there is nothing really sensible in those mr objects

pakmarkthub commented 3 years ago

The PR has been merged. Closing this issue.