Search code examples
linuxraspberry-piraspbian

where is defined kmap_atomic


I have a kernel module that works good in x86 system. but when i want to compile it on raspbian buster os and ARMv8-a cpu, it gives below error:

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)))

module that i want to compile is https://github.com/misc0110/PTEditor. now there is anyone could help me to resolve above error.


Solution

  • The module is apparently missing an include of linux/highmem.h.