]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm: Move lowmem_page_address() a little later
authorHuacai Chen <chenhuacai@loongson.cn>
Wed, 10 Apr 2024 13:08:51 +0000 (21:08 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 10 Apr 2024 13:08:51 +0000 (21:08 +0800)
commit0871bc0129d403747ea0272a4384895d7ad37a6c
tree384106615463ddfe2a81b187c15b6110d933d465
parentfec50db7033ea478773b159e0e2efb135270e3b7
mm: Move lowmem_page_address() a little later

LoongArch will override page_to_virt() which use page_address() in the
KFENCE case (by defining WANT_PAGE_VIRTUAL/HASHED_PAGE_VIRTUAL). So move
lowmem_page_address() a little later to avoid such build errors:

error: implicit declaration of function 'page_address'.

Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
include/linux/mm.h