Sample Header Ad - 728x90

Modpost: "module … uses symbol … from namespace …" error porting FL2000_DRM driver to newer version

0 votes
1 answer
1067 views
I'm trying to port https://github.com/kenballus/fl2000_drm_519 , designed for linux 5.19, to linux 6.2.11, but after applying the patches attached below, I'm getting this error and I don't know how to fix it: $ make make CHECK="/usr/bin/sparse" -C /lib/modules/6.2.11-300.fc38.x86_64/build M=/home/guillem/Downloads/fl2000_drm_519 modules make: Entering directory '/usr/src/kernels/6.2.11-300.fc38.x86_64' MODPOST /home/guillem/Downloads/fl2000_drm_519/Module.symvers ERROR: modpost: module fl2000 uses symbol dma_buf_end_cpu_access from namespace DMA_BUF, but does not import it. ERROR: modpost: module fl2000 uses symbol dma_buf_begin_cpu_access from namespace DMA_BUF, but does not import it. make: *** [scripts/Makefile.modpost:138: /home/guillem/Downloads/fl2000_drm_519/Module.symvers] Error 1 make: *** [Makefile:1977: modpost] Error 2 make: Leaving directory '/usr/src/kernels/6.2.11-300.fc38.x86_64' make: *** [Makefile:21: modules] Error 2 I've patched fl2000.h this way for solving other import errors: diff --git a/fl2000.h b/fl2000.h index 718e247..c4a6910 100644 --- a/fl2000.h +++ b/fl2000.h @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -37,6 +38,8 @@ #include #include #include +#include +#include #include "fl2000_registers.h"
Asked by alonely0 (31 rep)
May 14, 2023, 06:20 PM
Last activity: May 14, 2023, 07:54 PM