Re: [PATCH 6.18 000/108] 6.18.38-rc1 review
From: Greg KH
Date: Fri Jul 03 2026 - 03:27:45 EST
On Fri, Jul 03, 2026 at 11:13:48AM +0800, Wentao Guan wrote:
> Hi,
>
> Build failed in riscv arch, log:
> In file included from mm/kfence/core.c:36:
> ./arch/riscv/include/asm/kfence.h: In function ‘kfence_protect_page’:
> ./arch/riscv/include/asm/kfence.h:25:17: error: implicit declaration of function ‘mark_new_valid_map’ [-Werror=implicit-function-declaration]
> 25 | mark_new_valid_map();
> | ^~~~~~~~~~~~~~~~~~
> In file included from mm/kfence/report.c:23:
> ./arch/riscv/include/asm/kfence.h: In function ‘kfence_protect_page’:
> ./arch/riscv/include/asm/kfence.h:25:17: error: implicit declaration of function ‘mark_new_valid_map’ [-Werror=implicit-function-declaration]
> 25 | mark_new_valid_map();
> | ^~~~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
>
> You can revert ("riscv: kfence: Call mark_new_valid_map() for kfence_unprotect()")
> commit a8818008680a00a86c080a55e8842c714e9a62ba to solve it.
I'll fix it up by including the missing commit.
thanks,
greg k-h