aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBehan Webster <behanw@converseincode.com>2013-09-03 22:27:26 -0400
committerBehan Webster <behanw@converseincode.com>2014-06-07 14:44:39 -0400
commit76ae03828756bac2c1fa2c7eff7485e5f815dbdb (patch)
treed8f8d162c22b5ca844194377711b0b5340ab6c68
parent2288328ce9700865245677f35330f3a77dfc6eda (diff)
ARM: LLVMLinux: Change "extern inline" to "static inline" in glue-cache.h
With compilers which follow the C99 standard (like modern versions of gcc and clang), "extern inline" does the wrong thing (emits code for an externally linkable version of the inline function). "static inline" is the correct choice instead. Author: Behan Webster <behanw@converseincode.com> Signed-off-by: Behan Webster <behanw@converseincode.com> Reviewed-by: Mark Charlebois <charlebm@gmail.com>
-rw-r--r--arch/arm/include/asm/glue-cache.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/arch/arm/include/asm/glue-cache.h b/arch/arm/include/asm/glue-cache.h
index c81adc08b3fb..a3c24cd5b7c8 100644
--- a/arch/arm/include/asm/glue-cache.h
+++ b/arch/arm/include/asm/glue-cache.h
@@ -130,22 +130,22 @@
130#endif 130#endif
131 131
132#ifndef __ASSEMBLER__ 132#ifndef __ASSEMBLER__
133extern inline void nop_flush_icache_all(void) { } 133static inline void nop_flush_icache_all(void) { }
134extern inline void nop_flush_kern_cache_all(void) { } 134static inline void nop_flush_kern_cache_all(void) { }
135extern inline void nop_flush_kern_cache_louis(void) { } 135static inline void nop_flush_kern_cache_louis(void) { }
136extern inline void nop_flush_user_cache_all(void) { } 136static inline void nop_flush_user_cache_all(void) { }
137extern inline void nop_flush_user_cache_range(unsigned long a, 137static inline void nop_flush_user_cache_range(unsigned long a,
138 unsigned long b, unsigned int c) { } 138 unsigned long b, unsigned int c) { }
139 139
140extern inline void nop_coherent_kern_range(unsigned long a, unsigned long b) { } 140static inline void nop_coherent_kern_range(unsigned long a, unsigned long b) { }
141extern inline int nop_coherent_user_range(unsigned long a, 141static inline int nop_coherent_user_range(unsigned long a,
142 unsigned long b) { return 0; } 142 unsigned long b) { return 0; }
143extern inline void nop_flush_kern_dcache_area(void *a, size_t s) { } 143static inline void nop_flush_kern_dcache_area(void *a, size_t s) { }
144 144
145extern inline void nop_dma_flush_range(const void *a, const void *b) { } 145static inline void nop_dma_flush_range(const void *a, const void *b) { }
146 146
147extern inline void nop_dma_map_area(const void *s, size_t l, int f) { } 147static inline void nop_dma_map_area(const void *s, size_t l, int f) { }
148extern inline void nop_dma_unmap_area(const void *s, size_t l, int f) { } 148static inline void nop_dma_unmap_area(const void *s, size_t l, int f) { }
149#endif 149#endif
150 150
151#ifndef MULTI_CACHE 151#ifndef MULTI_CACHE