arm64: kfence: fix header inclusion
PATCH 1/1 arm64: kfence: fix header inclusion
From: Arnd Bergmann <[email protected]>
Randconfig builds started warning about a missing function declaration after set_memory_valid() is moved to a new file:
In file included from mm/kfence/core.c:26:arch/arm64/include/asm/kfence.h:17:2: error: implicit declaration of function 'set_memory_valid' [-Werror,-Wimplicit-function-declaration]
Include the correct header again.
--- arch/arm64/include/asm/kfence.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/include/asm/kfence.h +1 -1
@@ -8,7 +8,7 @@#ifndef __ASM_KFENCE_H#define __ASM_KFENCE_H -#include <asm/cacheflush.h> +#include <asm/set_memory.h> static inline bool arch_kfence_init_pool (void ) {return true; }
Signature · 7 lines
2.29.2 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 5 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
Randconfig builds started warning about a missing function declaration after
set_memory_valid()is moved to a new file:
Quoted 8 lines
In file included from
mm/kfence/core.c:26:arch/arm64/include/asm/kfence.h:17:2: error: implicit declaration of function 'set_memory_valid' [-Werror,-Wimplicit-function-declaration]Include the correct header again.
Fixes 9e18ec3cfabd ("set_memory: allow querying whether set_direct_map_*() is actually enabled")Fixes 204555ff8bd6 ("arm64, kfence: enable KFENCE for ARM64")Signed-off-by Arnd Bergmann <[email protected]>
(it should go via the mm tree with the other kfence patches)
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel