From 906d350097b93bbedf8988fa7cf53629cc2d595f Mon Sep 17 00:00:00 2001 From: Will Deacon Date: Wed, 10 Feb 2021 11:15:11 +0000 Subject: [PATCH] BACKPORT: FROMGIT: mm: filemap: Fix microblaze build failure with 'mmu_defconfig' Commit f9ce0be71d1f ("mm: Cleanup faultaround and finish_fault() codepaths") added a call to 'update_mmu_cache()' in mm/filemap.c, which breaks the build for microblaze: | mm/filemap.c: In function 'filemap_map_pages': | mm/filemap.c:3153:3: error: implicit declaration of function 'update_mmu_cache'; did you mean 'update_mmu_tlb'? Include asm/tlbflush.h in mm/filemap.c to make sure that the function (or indeed, macro) is available. Reported-by: Guenter Roeck Tested-by: Guenter Roeck Link: https://lore.kernel.org/r/20210209202449.GA104837@roeck-us.net Signed-off-by: Will Deacon Change-Id: I5a3bdb285a909de6361f751c82eb347ddfb0cdee Bug: 171278850 (cherry picked from commit de591a82f41b61af4a8fce49d21b43105c5c218 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/log/?h=for-next/faultaround) Signed-off-by: Vinayak Menon --- mm/filemap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/filemap.c b/mm/filemap.c index 080e1fa7d9d2..b9d6ebac649d 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -43,6 +43,7 @@ #include #include #include +#include #include "internal.h" #define CREATE_TRACE_POINTS