我有一个在x86系统中运行良好的内核模块。但是,当我想在raspbian buster os和ARMv8-a cpu上编译它时,它给出以下错误:
error: implicit declaration of function ‘kmap_atomic’; did you mean ‘in_atomic’? [-Werror=implicit-function-declaration]
#define __pte_map(pmd) (pte_t *)kmap_atomic(pmd_page(*(pmd)))
我要编译的模块是https://github.com/misc0110/PTEditor。现在有人可以帮助我解决以上错误。
该模块显然缺少linux/highmem.h
的包含。