2020-05-11 12:19:55

by Ma Feng

[permalink] [raw]
Subject: [PATCH] ARM: omap2: make omap5_erratum_workaround_801819 static

Fix sparse warning:

arch/arm/mach-omap2/omap-smp.c:75:6: warning: symbol
'omap5_erratum_workaround_801819' was not declared. Should it be static?

Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Ma Feng <[email protected]>
---
arch/arm/mach-omap2/omap-smp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-omap2/omap-smp.c b/arch/arm/mach-omap2/omap-smp.c
index 6a82fce..570a987e 100644
--- a/arch/arm/mach-omap2/omap-smp.c
+++ b/arch/arm/mach-omap2/omap-smp.c
@@ -72,7 +72,7 @@ void __iomem *omap4_get_scu_base(void)
}

#ifdef CONFIG_OMAP5_ERRATA_801819
-void omap5_erratum_workaround_801819(void)
+static void omap5_erratum_workaround_801819(void)
{
u32 acr, revidr;
u32 acr_mask;
--
2.6.2


2020-05-12 15:41:41

by Tony Lindgren

[permalink] [raw]
Subject: Re: [PATCH] ARM: omap2: make omap5_erratum_workaround_801819 static

* Ma Feng <[email protected]> [200511 05:16]:
> Fix sparse warning:
>
> arch/arm/mach-omap2/omap-smp.c:75:6: warning: symbol
> 'omap5_erratum_workaround_801819' was not declared. Should it be static?
>
> Reported-by: Hulk Robot <[email protected]>
> Signed-off-by: Ma Feng <[email protected]>

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

Tony