From: Russell King Date: Thu, 29 Mar 2018 10:27:31 +0000 (+0100) Subject: ARM: tcm: ensure inline stub functions are marked static X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=14459ce2bd980f74bc9c36f3ef42e7ba645e5dfe;p=linux.git 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 Signed-off-by: Russell King --- diff --git a/arch/arm/mm/tcm.h b/arch/arm/mm/tcm.h index 8015ad434a402..24101925fe64e 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