diff mbox series

[1/2] ARM: OMAP2+: make dra7xx_sha0_hwmod static

Message ID 20191009085646.21755-1-ben.dooks@codethink.co.uk (mailing list archive)
State Mainlined
Commit 607295af887066cbf4e39587b144a65cc2b96ea2
Headers show
Series [1/2] ARM: OMAP2+: make dra7xx_sha0_hwmod static | expand

Commit Message

Ben Dooks Oct. 9, 2019, 8:56 a.m. UTC
The dra7xx_sha0_hwmod object is not exported outside of
omap_hwmod_7xx_data. so make it static to avoid the
following warning:

arch/arm/mach-omap2/omap_hwmod_7xx_data.c:686:19: warning: symbol 'dra7xx_sha0_hwmod' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
Cc: "BenoƮt Cousson" <bcousson@baylibre.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: linux-omap@vger.kernel.org
---
 arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tony Lindgren Oct. 21, 2019, 5:35 p.m. UTC | #1
* Ben Dooks <ben.dooks@codethink.co.uk> [191009 01:57]:
> The dra7xx_sha0_hwmod object is not exported outside of
> omap_hwmod_7xx_data. so make it static to avoid the
> following warning:
> 
> arch/arm/mach-omap2/omap_hwmod_7xx_data.c:686:19: warning: symbol 'dra7xx_sha0_hwmod' was not declared. Should it be static?

Applying into omap-for-v5.5/soc thanks.

Tony
diff mbox series

Patch

diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
index e5bd549d2a5e..bd392d59382b 100644
--- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
@@ -683,7 +683,7 @@  static struct omap_hwmod_class dra7xx_sha0_hwmod_class = {
 	.sysc		= &dra7xx_sha0_sysc,
 };
 
-struct omap_hwmod dra7xx_sha0_hwmod = {
+static struct omap_hwmod dra7xx_sha0_hwmod = {
 	.name		= "sham",
 	.class		= &dra7xx_sha0_hwmod_class,
 	.clkdm_name	= "l4sec_clkdm",