airockchip / rknn-llm

Other
417 stars 36 forks source link

rk3588 ubuntu kernel版本为5.10 替换npu 代码后编译报错 #24

Open Caical opened 7 months ago

Caical commented 7 months ago

我将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 请问我是不是缺少了什么相关配置

dic1911 commented 7 months ago

Duplicated issue, see #6

Caical commented 7 months ago

I have successfully resolved it. Thank you