path: root/arch/nios2
diff options
authorMatthew Wilcox (Oracle) <>2021-04-29 22:55:35 -0700
committerLinus Torvalds <>2021-04-30 11:20:37 -0700
commit842ca547f706b1e05ccf3026a0ab15d24772a188 (patch)
tree89b3f84e1e4a3b6285028dae48cef5eac7dc6f61 /arch/nios2
parent1c824a680b1b67ad43c0908f11a70bcf37af56d5 (diff)
mm: move page_mapping_file to pagemap.h
page_mapping_file() is only used by some architectures, and then it is usually only used in one place. Make it a static inline function so other architectures don't have to carry this dead code. Link: Signed-off-by: Matthew Wilcox (Oracle) <> Reviewed-by: David Hildenbrand <> Acked-by: Mike Rapoport <> Cc: Huang Ying <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'arch/nios2')
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/nios2/mm/cacheflush.c b/arch/nios2/mm/cacheflush.c
index 65de1bd6a760..6aa9257c3ede 100644
--- a/arch/nios2/mm/cacheflush.c
+++ b/arch/nios2/mm/cacheflush.c
@@ -11,6 +11,7 @@
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/fs.h>
+#include <linux/pagemap.h>
#include <asm/cacheflush.h>
#include <asm/cpuinfo.h>