From: Anders Roxell Date: Thu, 31 Dec 2020 22:05:02 +0000 (+0000) Subject: kfence: fix implicit function declaration X-Git-Tag: howlett/maple_spf/20210104~86 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4a94d3de21895c6e0442139e938c00fbbbeff341;p=users%2Fjedix%2Flinux-maple.git kfence: fix implicit function declaration When building kfence the following error shows up: In file included from mm/kfence/report.c:13: arch/arm64/include/asm/kfence.h: In function `kfence_protect_page': arch/arm64/include/asm/kfence.h:12:2: error: implicit declaration of function `set_memory_valid' [-Werror=implicit-function-declaration] 12 | set_memory_valid(addr, 1, !protect); | ^~~~~~~~~~~~~~~~ Use the correct include both f2b7c491916d ("set_memory: allow querying whether set_direct_map_*() is actually enabled") and 4c4c75881536 ("arm64, kfence: enable KFENCE for ARM64") went in the same day via different trees. Link: https://lkml.kernel.org/r/20201204121804.1532849-1-anders.roxell@linaro.org Signed-off-by: Anders Roxell Reviewed-by: Alexander Potapenko Cc: Marco Elver Cc: Dmitry Vyukov Cc: Catalin Marinas Cc: Will Deacon Cc: Mike Rapoport Signed-off-by: Andrew Morton --- diff --git a/arch/arm64/include/asm/kfence.h b/arch/arm64/include/asm/kfence.h index 6c0afeeab635..c44bb368a810 100644 --- a/arch/arm64/include/asm/kfence.h +++ b/arch/arm64/include/asm/kfence.h @@ -3,7 +3,7 @@ #ifndef __ASM_KFENCE_H #define __ASM_KFENCE_H -#include +#include static inline bool arch_kfence_init_pool(void) { return true; }