Skip to contentSkip to conversation

ARM: OMAP2+: Make symbol 'pdata_quirks_init_clocks' static

PATCH In review 'w00385741 2 participants 2 messages Mar 18, 2021 – Mar 24, 2021

Subsystems (4)
lore
Share & tools
lore

'w00385741

author
#0 lore raw

PATCH 1/1 ARM: OMAP2+: Make symbol 'pdata_quirks_init_clocks' static

From: Wei Yongjun <[email protected]>

The sparse tool complains as follows:

arch/arm/mach-omap2/pdata-quirks.c:578:1: warning:
symbol 'pdata_quirks_init_clocks' was not declared. Should it be static?

This symbol is not used outside of pdata-quirks.c, so this commit marks it static.

Fixes a15de032a72d ("ARM: OMAP2+: Init both prm and prcm nodes early for clocks")
---
 arch/arm/mach-omap2/pdata-quirks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-omap2/pdata-quirks.c +1 -1
index 3405aa815a24..765809b214e7 100644
@@ -574,7 +574,7 @@ static const char * const pdata_quirks_init_nodes[] = {
 	"prm",
 };
 
-void __init
+static void __init
 pdata_quirks_init_clocks(const struct of_device_id *omap_dt_match_table)
 {
 	struct device_node *np;
maintainer
#1 lore raw
Quoted 9 lines · * 'w00385741 <[email protected]> [210318 15:49]:

From: Wei Yongjun <[email protected]>

The sparse tool complains as follows:

arch/arm/mach-omap2/pdata-quirks.c:578:1: warning:
symbol 'pdata_quirks_init_clocks' was not declared. Should it be static?

This symbol is not used outside of pdata-quirks.c, so this commit marks it static.

Thanks applying into omap-for-v5.13/ti-sysc.

Regards,

Tony