Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling kernel #73

Open
windskyxb opened this issue Jul 1, 2024 · 0 comments
Open

Error compiling kernel #73

windskyxb opened this issue Jul 1, 2024 · 0 comments

Comments

@windskyxb
Copy link

I had a problem compiling the 5.10.160 kernel for Orange Pi 5 Plus.
I replaced the files in drivers/rknpu with those in rknpu_driver_0.9.6_20240322.tar.bz2 and added two functions to include/linux/mm.h, but still encountered a compilation error:
drivers/rknpu/rknpu_devfreq.c: In function 'rknpu_devfreq_init':
drivers/rknpu/rknpu_devfreq.c:732:9: 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
make[2]: *** [scripts/Makefile.build:273: drivers/rknpu/rknpu_devfreq.o] Error 1
make[1]: *** [scripts/Makefile.build:516: drivers/rknpu] Error 2
make: *** [Makefile:1938: drivers] Error 2
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant