fail to build dmabuf driver on RHEL kernel 4.18.0-372.9.1.el8.x86_64
Walnux opened this issue · 2 comments
I try to build the dmabuf driver on RHEL Kernel 4.18.0-372.9.1.el8.x86_64 and run into below error.
Building backport-include/backport/autoconf.h ... done.
CC [M] /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/drivers/dma-buf/../../compat/dmabuf-main.o
In file included from ./include/linux/cpumask.h:12,
from ./arch/x86/include/asm/cpumask.h:5,
from ./arch/x86/include/asm/msr.h:11,
from ./arch/x86/include/asm/processor.h:21,
from ./arch/x86/include/asm/cpufeature.h:5,
from ./arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:38,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:78,
from ./include/linux/spinlock.h:55,
from ./include/linux/mmzone.h:10,
from ./include/linux/gfp.h:6,
from /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/backport-include/linux/gfp.h:29,
from ./include/linux/umh.h:4,
from ./include/linux/kmod.h:22,
from ./include/linux/module.h:13,
from /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/backport-include/linux/module.h:3,
from /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/drivers/dma-buf/../../compat/dmabuf-main.c:26:
/usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/backport-include/linux/bitmap.h:33:20: error: redefinition of ‘bitmap_next_clear_region’
static inline void bitmap_next_clear_region(unsigned long *bitmap,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/backport-include/linux/bitmap.h:28,
from ./include/linux/cpumask.h:12,
from ./arch/x86/include/asm/cpumask.h:5,
from ./arch/x86/include/asm/msr.h:11,
from ./arch/x86/include/asm/processor.h:21,
from ./arch/x86/include/asm/cpufeature.h:5,
from ./arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:38,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:78,
from ./include/linux/spinlock.h:55,
from ./include/linux/mmzone.h:10,
from ./include/linux/gfp.h:6,
from /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/backport-include/linux/gfp.h:29,
from ./include/linux/umh.h:4,
from ./include/linux/kmod.h:22,
from ./include/linux/module.h:13,
from /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/backport-include/linux/module.h:3,
from /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/drivers/dma-buf/../../compat/dmabuf-main.c:26:
./include/linux/bitmap.h:442:20: note: previous definition of ‘bitmap_next_clear_region’ was here
static inline void bitmap_next_clear_region(unsigned long *bitmap,
^~~~~~~~~~~~~~~~~~~~~~~~
CC [M] /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/drivers/dma-buf/../../compat/backport-5.1.o
make[6]: *** [scripts/Makefile.build:316: /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/drivers/dma-buf/../../compat/dmabuf-main.o] Error 1
make[6]: *** Waiting for unfinished jobs....
In file included from ./include/linux/cpumask.h:12,
from ./arch/x86/include/asm/paravirt.h:17,
from ./arch/x86/include/asm/io.h:242,
from /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/backport-include/linux/acpi.h:29,
from /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/drivers/dma-buf/../../compat/backport-5.1.c:26:
/usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/backport-include/linux/bitmap.h:33:20: error: redefinition of ‘bitmap_next_clear_region’
static inline void bitmap_next_clear_region(unsigned long *bitmap,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/backport-include/linux/bitmap.h:28,
from ./include/linux/cpumask.h:12,
from ./arch/x86/include/asm/paravirt.h:17,
from ./arch/x86/include/asm/io.h:242,
from /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/backport-include/linux/acpi.h:29,
from /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/drivers/dma-buf/../../compat/backport-5.1.c:26:
./include/linux/bitmap.h:442:20: note: previous definition of ‘bitmap_next_clear_region’ was here
static inline void bitmap_next_clear_region(unsigned long *bitmap,
^~~~~~~~~~~~~~~~~~~~~~~~
make[6]: *** [scripts/Makefile.build:316: /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/drivers/dma-buf/../../compat/backport-5.1.o] Error 1
make[5]: *** [scripts/Makefile.build:556: /usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1/drivers/dma-buf] Error 2
make[4]: *** [Makefile:1577: module/usr/src/intel-dmabuf-dkms-prerelease-0.5606.220413.2.348.7.1] Error 2
make[3]: *** [Makefile.build:6: modules] Error 2
make[2]: *** [Makefile.real:104: modules] Error 2
make[1]: *** [Makefile:228: modules] Error 2
make: *** [Makefile:32: default] Error 2
Dear Submitter, you are trying to install the ott modules against RHEL 8.6 kernel, which is not supported yet.
Please check "Red Hat Enterprise Linux 8" heading in https://access.redhat.com/articles/3078.
Please follow the kernel version pointed out by https://github.com/intel-gpu/intel-gpu-i915-backports/blob/redhat/main/versions.
Please wait for RHEL 8.6 support, closing this issue now