aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King2018-03-29 11:27:31 +0100
committerRussell King2018-07-14 16:09:27 +0100
commit14459ce2bd980f74bc9c36f3ef42e7ba645e5dfe (patch)
tree4005546ad7242c21ca5f8946e712ab087af5c17a
parent2288fd51808cdf697f12d92706706554192db290 (diff)
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. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r--arch/arm/mm/tcm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/tcm.h b/arch/arm/mm/tcm.h
index 8015ad434a40..24101925fe64 100644
--- a/arch/arm/mm/tcm.h
+++ b/arch/arm/mm/tcm.h
@@ -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