| Summary: | nvidia-390xx-kmod-390.157-9.fc41.src.rpm fails to build on kernel 5.14.0-427.20.1.el9_4.x86_64 (re:post as Bug) | ||
|---|---|---|---|
| Product: | Fedora EPEL | Reporter: | NevilleDNZ <NevilleD.rpmfusion> |
| Component: | nvidia-390xx-kmod | Assignee: | Nicolas Chauvet <kwizart> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | nerijus |
| Priority: | P1 | ||
| Version: | 9 | ||
| Hardware: | x86_64 | ||
| OS: | GNU/Linux | ||
| namespace: | |||
|
Description
NevilleDNZ
2024-06-12 03:28:28 CEST
See also: [Request NVIDIA 390xx for EL9](https://bugzilla.rpmfusion.org/show_bug.cgi?id=6921) > But 1: how do I #ifdef the nvidia for kernel 5.14.0-427.20.1 to indicate it is a backport from KERNEL_VERSION(6, 2, 0)... eg Is there a macro KERNEL_BACKPORT(5,14,0,427,20,1)?
Another project (blackmagic drivers) use RHEL_RELEASE_OR_LATER macro, for example:
#if KERNEL_VERSION_OR_LATER(5, 15, 0) || RHEL_RELEASE_OR_LATER(8, 9)
(In reply to Nerijus Baliƫnas from comment #2) ... > #if KERNEL_VERSION_OR_LATER(5, 15, 0) || RHEL_RELEASE_OR_LATER(8, 9) Theses are likely custom macro from this vendor. One should use theses instead: (taken from a centos-stream kernel, but should apply RHEL and derivates kernels). cat /usr/src/kernels/5.14.0-452.el9.x86_64/include/generated/uapi/linux/version.h #define LINUX_VERSION_CODE 331264 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c))) #define LINUX_VERSION_MAJOR 5 #define LINUX_VERSION_PATCHLEVEL 14 #define LINUX_VERSION_SUBLEVEL 0 #define RHEL_MAJOR 9 #define RHEL_MINOR 5 #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b)) #define RHEL_RELEASE_CODE 2309 #define RHEL_RELEASE "452" We will welcomed anyone that would volunteer to maintain or co-maintain any driver wrt RHEL compatibility support. Feel free to suggest working (tested) patches. Testing on centos-stream kernel would be fine but not required (at least it may helps to add support for RHEL N+1 kernel). |