定义kmap_atomic

问题描述 投票:0回答:1

我有一个在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 raspberry-pi raspbian
1个回答
0
投票

该模块显然缺少linux/highmem.h的包含。

© www.soinside.com 2019 - 2024. All rights reserved.