From: Arnd Bergmann Date: Tue, 16 May 2023 16:06:38 +0000 (+0200) Subject: arm64: flush: include linux/libnvdimm.h X-Git-Tag: v6.5-rc1~214^2~1^3~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a1183938946fc1e06425d830a85e5aad63c049d;p=thirdparty%2Fkernel%2Flinux.git arm64: flush: include linux/libnvdimm.h The two cache management functions are declared in libnvdimm.h but provided by architecture specific code. Without including the header, this causes a W=1 warning: arch/arm64/mm/flush.c:96:6: error: no previous prototype for 'arch_wb_cache_pmem' [-Werror=missing-prototypes] arch/arm64/mm/flush.c:104:6: error: no previous prototype for 'arch_invalidate_pmem' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann Reviewed-by: Kees Cook Acked-by: Ard Biesheuvel Link: https://lore.kernel.org/r/20230516160642.523862-12-arnd@kernel.org Signed-off-by: Catalin Marinas --- diff --git a/arch/arm64/mm/flush.c b/arch/arm64/mm/flush.c index 5f9379b3c8c87..4e64760949522 100644 --- a/arch/arm64/mm/flush.c +++ b/arch/arm64/mm/flush.c @@ -8,6 +8,7 @@ #include #include +#include #include #include