summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-06-08 06:42:26 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-06-08 20:05:58 +0200
commit1268c33382facefd9c389d4c425e8f906f279c7b (patch)
tree0d243c2f736a1a069052ecbf0f2cf69d694950e1 /include/asm-generic
parentmm: rename flush_icache_user_range to flush_icache_user_page (diff)
downloadlinux-1268c33382facefd9c389d4c425e8f906f279c7b.tar.xz
linux-1268c33382facefd9c389d4c425e8f906f279c7b.zip
asm-generic: add a flush_icache_user_range stub
Define flush_icache_user_range to flush_icache_range unless the architecture provides its own implementation. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Arnd Bergmann <arnd@arndb.de> Link: http://lkml.kernel.org/r/20200515143646.3857579-21-hch@lst.de Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/cacheflush.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-generic/cacheflush.h b/include/asm-generic/cacheflush.h
index 2c9686fefb71..907fa5d16494 100644
--- a/include/asm-generic/cacheflush.h
+++ b/include/asm-generic/cacheflush.h
@@ -66,6 +66,10 @@ static inline void flush_icache_range(unsigned long start, unsigned long end)
}
#endif
+#ifndef flush_icache_user_range
+#define flush_icache_user_range flush_icache_range
+#endif
+
#ifndef flush_icache_page
static inline void flush_icache_page(struct vm_area_struct *vma,
struct page *page)