]> git.baikalelectronics.ru Git - kernel.git/commit
mm: filemap: Fix microblaze build failure with 'mmu_defconfig'
authorWill Deacon <will@kernel.org>
Wed, 10 Feb 2021 11:15:11 +0000 (11:15 +0000)
committerWill Deacon <will@kernel.org>
Wed, 10 Feb 2021 18:49:42 +0000 (18:49 +0000)
commita98f9d6e3aee209dede894aa84d97c28e6c93068
treefffc96ee3a2505bb6cb3eed12cb2b76b420a427b
parent8e90dbaf1147fd25fc3e7aa416ebe6239f1c7fbf
mm: filemap: Fix microblaze build failure with 'mmu_defconfig'

Commit 33fe6a60a178 ("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 <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210209202449.GA104837@roeck-us.net
Signed-off-by: Will Deacon <will@kernel.org>
mm/filemap.c