* [PATCH] ARM: tcm: ensure inline stub functions are marked static
@ 2018-07-13 10:22 Russell King
2018-07-14 10:28 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Russell King @ 2018-07-13 10:22 UTC (permalink / raw)
To: linux-arm-kernel
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 <rmk+kernel@armlinux.org.uk>
---
arch/arm/mm/tcm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: tcm: ensure inline stub functions are marked static
2018-07-13 10:22 [PATCH] ARM: tcm: ensure inline stub functions are marked static Russell King
@ 2018-07-14 10:28 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2018-07-14 10:28 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Jul 13, 2018 at 12:22 PM Russell King
<rmk+kernel@armlinux.org.uk> wrote:
> 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 <rmk+kernel@armlinux.org.uk>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-14 10:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-13 10:22 [PATCH] ARM: tcm: ensure inline stub functions are marked static Russell King
2018-07-14 10:28 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).