我试图为我的设备(Moto G 2014 又名 titan)构建 Android 内核,在添加自定义调节器“Yankactive”后,我不断收到此错误,并且我不知道如何修复此错误。
这是错误:
drivers/cpufreq/cpufreq_yankactive.c: In function 'cpufreq_yankactive_timer_resched':
drivers/cpufreq/cpufreq_yankactive.c:166:3: error: implicit declaration of function 'get_cpu_idle_time' [-Werror=implicit-function-declaration]
get_cpu_idle_time(smp_processor_id(),
^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:308: drivers/cpufreq/cpufreq_yankactive.o] Error 1
make[1]: *** [scripts/Makefile.build:443: drivers/cpufreq] Error 2
make: *** [Makefile:965: drivers] Error 2
这是我使用的调速器的源代码文件:http://hastebin.com/vefequzema.pl
最佳答案
您的调控器调用 get_cpu_idle_time() 函数,该函数未在您添加的文件中定义。 看看这个提交 GitHub
关于android - 如何修复 Android 内核中 C 函数的隐式类型声明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39409434/