我将npu代码替换后重新编译kernel,报错如下
drivers/rknpu/rknpu_devfreq.c: In function 'rknpu_devfreq_init': drivers/rknpu/rknpu_devfreq.c:732:2: error: implicit declaration of function 'rockchip_uninit_opp_table'; did you mean 'rockchip_init_opp_table'? [-Werror=implicit-function-declaration] 732 | rockchip_uninit_opp_table(dev, &rknpu_dev->opp_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | rockchip_init_opp_table cc1: all warnings being treated as errors scripts/Makefile.build:273: recipe for target 'drivers/rknpu/rknpu_devfreq.o' failed make[3]: *** [drivers/rknpu/rknpu_devfreq.o] Error 1 make[3]: *** Waiting for unfinished jobs.... drivers/rknpu/rknpu_gem.c: In function 'rknpu_gem_mmap_pages': drivers/rknpu/rknpu_gem.c:891:2: error: implicit declaration of function 'vm_flags_set' [-Werror=implicit-function-declaration] 891 | vm_flags_set(vma, VM_MIXEDMAP); | ^~~~~~~~~~~~ drivers/rknpu/rknpu_gem.c: In function 'rknpu_gem_mmap_buffer': drivers/rknpu/rknpu_gem.c:988:2: error: implicit declaration of function 'vm_flags_clear' [-Werror=implicit-function-declaration] 988 | vm_flags_clear(vma, VM_PFNMAP); | ^~~~~~~~~~~~~~ cc1: all warnings being treated as errors scripts/Makefile.build:273: recipe for target 'drivers/rknpu/rknpu_gem.o' failed
请问我是不是缺少了什么相关配置
我将npu代码替换后重新编译kernel,报错如下
drivers/rknpu/rknpu_devfreq.c: In function 'rknpu_devfreq_init': drivers/rknpu/rknpu_devfreq.c:732:2: error: implicit declaration of function 'rockchip_uninit_opp_table'; did you mean 'rockchip_init_opp_table'? [-Werror=implicit-function-declaration] 732 | rockchip_uninit_opp_table(dev, &rknpu_dev->opp_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | rockchip_init_opp_table cc1: all warnings being treated as errors scripts/Makefile.build:273: recipe for target 'drivers/rknpu/rknpu_devfreq.o' failed make[3]: *** [drivers/rknpu/rknpu_devfreq.o] Error 1 make[3]: *** Waiting for unfinished jobs.... drivers/rknpu/rknpu_gem.c: In function 'rknpu_gem_mmap_pages': drivers/rknpu/rknpu_gem.c:891:2: error: implicit declaration of function 'vm_flags_set' [-Werror=implicit-function-declaration] 891 | vm_flags_set(vma, VM_MIXEDMAP); | ^~~~~~~~~~~~ drivers/rknpu/rknpu_gem.c: In function 'rknpu_gem_mmap_buffer': drivers/rknpu/rknpu_gem.c:988:2: error: implicit declaration of function 'vm_flags_clear' [-Werror=implicit-function-declaration] 988 | vm_flags_clear(vma, VM_PFNMAP); | ^~~~~~~~~~~~~~ cc1: all warnings being treated as errors scripts/Makefile.build:273: recipe for target 'drivers/rknpu/rknpu_gem.o' failed
请问我是不是缺少了什么相关配置