Skip to content

Commit 76ae038

Browse files
committed
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 <[email protected]> Signed-off-by: Behan Webster <[email protected]> Reviewed-by: Mark Charlebois <[email protected]>
1 parent 2288328 commit 76ae038

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

arch/arm/include/asm/glue-cache.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -130,22 +130,22 @@
130130
#endif
131131

132132
#ifndef __ASSEMBLER__
133-
extern inline void nop_flush_icache_all(void) { }
134-
extern inline void nop_flush_kern_cache_all(void) { }
135-
extern inline void nop_flush_kern_cache_louis(void) { }
136-
extern inline void nop_flush_user_cache_all(void) { }
137-
extern inline void nop_flush_user_cache_range(unsigned long a,
133+
static inline void nop_flush_icache_all(void) { }
134+
static inline void nop_flush_kern_cache_all(void) { }
135+
static inline void nop_flush_kern_cache_louis(void) { }
136+
static inline void nop_flush_user_cache_all(void) { }
137+
static inline void nop_flush_user_cache_range(unsigned long a,
138138
unsigned long b, unsigned int c) { }
139139

140-
extern inline void nop_coherent_kern_range(unsigned long a, unsigned long b) { }
141-
extern inline int nop_coherent_user_range(unsigned long a,
140+
static inline void nop_coherent_kern_range(unsigned long a, unsigned long b) { }
141+
static inline int nop_coherent_user_range(unsigned long a,
142142
unsigned long b) { return 0; }
143-
extern inline void nop_flush_kern_dcache_area(void *a, size_t s) { }
143+
static inline void nop_flush_kern_dcache_area(void *a, size_t s) { }
144144

145-
extern inline void nop_dma_flush_range(const void *a, const void *b) { }
145+
static inline void nop_dma_flush_range(const void *a, const void *b) { }
146146

147-
extern inline void nop_dma_map_area(const void *s, size_t l, int f) { }
148-
extern inline void nop_dma_unmap_area(const void *s, size_t l, int f) { }
147+
static inline void nop_dma_map_area(const void *s, size_t l, int f) { }
148+
static inline void nop_dma_unmap_area(const void *s, size_t l, int f) { }
149149
#endif
150150

151151
#ifndef MULTI_CACHE

0 commit comments

Comments
 (0)