ROCK-Kernel-Driver icon indicating copy to clipboard operation
ROCK-Kernel-Driver copied to clipboard

Support for Linux kernel >= 6.8.0-44

Open SamuelMarks opened this issue 1 year ago • 4 comments

Related https://github.com/ROCm/ROCm/issues/3701 and thanks to @kswit for the reference and @alain-bkr for the solution.

I have guarded the code so it doesn't break older kernel versions.

Checking https://packages.ubuntu.com/noble/all/linux-headers-6.8.0-41/download, particularly the Makefile it is not clear what the version is. I can add a runtime uname usage if you like. On my 6.8.0-41 for example, /usr/include/linux/version.h contains #define LINUX_VERSION_CODE 395276. In Alpine in Docker with 6.6-r0 of linux-headers apk on that same base, I get #define LINUX_VERSION_CODE 394752. Pretty sure this version restriction in the PR is sufficient, but keep this comment in mind; happy to change the version.

SamuelMarks avatar Sep 15 '24 21:09 SamuelMarks