ARM: tcm: ensure inline stub functions are marked static
PATCH 1/1 ARM: tcm: ensure inline stub functions are marked static
Ensure that the stubbed out tcm_init() is marked static, so we don't end up emitting the stub each time the header is included.
Signed-off-by Russell King <[email protected]>
--- arch/arm/mm/tcm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mm/tcm.h +1 -1
@@ -11,7 +11,7 @@void __init tcm_init (void );#else /* No TCM support, just blank inlines to be optimized out */ -inline void tcm_init (void ) +static inline void tcm_init (void ) { }#endif
Signature · 1 line
2.7.4
PATCH 1/1 ARM: tcm: ensure inline stub functions are marked static
Quoted 4 lines · Russell King
Ensure that the stubbed out
tcm_init()is marked static, so we don't end up emitting the stub each time the header is included.Signed-off-by Russell King <[email protected]>
Reviewed-by Linus Walleij <[email protected]>
Yours,
Linus Walleij