diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2012-11-23 13:15:32 -0500 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2012-11-23 13:15:32 -0500 |
commit | 8f3bfa584ed05e9e7d290707c48eee026fb94ece (patch) | |
tree | ae70488eda102124afa026545e0a4e0038a459c7 /arch/arm64 | |
parent | 88a24cffad7d98f16de52fe5dd2d71f64cb21585 (diff) |
arm64: Convert empty flush_cache_{mm,page} functions to static inline
These functions are empty, just make them static inline in the header.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/include/asm/cacheflush.h | 11 | ||||
-rw-r--r-- | arch/arm64/mm/flush.c | 9 |
2 files changed, 9 insertions, 11 deletions
diff --git a/arch/arm64/include/asm/cacheflush.h b/arch/arm64/include/asm/cacheflush.h index aa3132ab7f29..3300cbd18a89 100644 --- a/arch/arm64/include/asm/cacheflush.h +++ b/arch/arm64/include/asm/cacheflush.h | |||
@@ -70,13 +70,20 @@ | |||
70 | * - size - region size | 70 | * - size - region size |
71 | */ | 71 | */ |
72 | extern void flush_cache_all(void); | 72 | extern void flush_cache_all(void); |
73 | extern void flush_cache_mm(struct mm_struct *mm); | ||
74 | extern void flush_cache_range(struct vm_area_struct *vma, unsigned long start, unsigned long end); | 73 | extern void flush_cache_range(struct vm_area_struct *vma, unsigned long start, unsigned long end); |
75 | extern void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn); | ||
76 | extern void flush_icache_range(unsigned long start, unsigned long end); | 74 | extern void flush_icache_range(unsigned long start, unsigned long end); |
77 | extern void __flush_dcache_area(void *addr, size_t len); | 75 | extern void __flush_dcache_area(void *addr, size_t len); |
78 | extern void __flush_cache_user_range(unsigned long start, unsigned long end); | 76 | extern void __flush_cache_user_range(unsigned long start, unsigned long end); |
79 | 77 | ||
78 | static inline void flush_cache_mm(struct mm_struct *mm) | ||
79 | { | ||
80 | } | ||
81 | |||
82 | static inline void flush_cache_page(struct vm_area_struct *vma, | ||
83 | unsigned long user_addr, unsigned long pfn) | ||
84 | { | ||
85 | } | ||
86 | |||
80 | /* | 87 | /* |
81 | * Copy user data from/to a page which is mapped into a different | 88 | * Copy user data from/to a page which is mapped into a different |
82 | * processes address space. Really, we want to allow our "user | 89 | * processes address space. Really, we want to allow our "user |
diff --git a/arch/arm64/mm/flush.c b/arch/arm64/mm/flush.c index c144adb1682f..88611c3a421a 100644 --- a/arch/arm64/mm/flush.c +++ b/arch/arm64/mm/flush.c | |||
@@ -27,10 +27,6 @@ | |||
27 | 27 | ||
28 | #include "mm.h" | 28 | #include "mm.h" |
29 | 29 | ||
30 | void flush_cache_mm(struct mm_struct *mm) | ||
31 | { | ||
32 | } | ||
33 | |||
34 | void flush_cache_range(struct vm_area_struct *vma, unsigned long start, | 30 | void flush_cache_range(struct vm_area_struct *vma, unsigned long start, |
35 | unsigned long end) | 31 | unsigned long end) |
36 | { | 32 | { |
@@ -38,11 +34,6 @@ void flush_cache_range(struct vm_area_struct *vma, unsigned long start, | |||
38 | __flush_icache_all(); | 34 | __flush_icache_all(); |
39 | } | 35 | } |
40 | 36 | ||
41 | void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, | ||
42 | unsigned long pfn) | ||
43 | { | ||
44 | } | ||
45 | |||
46 | static void flush_ptrace_access(struct vm_area_struct *vma, struct page *page, | 37 | static void flush_ptrace_access(struct vm_area_struct *vma, struct page *page, |
47 | unsigned long uaddr, void *kaddr, | 38 | unsigned long uaddr, void *kaddr, |
48 | unsigned long len) | 39 | unsigned long len) |