]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ARM: OMAP2+: Make symbol 'pdata_quirks_init_clocks' static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 18 Mar 2021 13:56:49 +0000 (13:56 +0000)
committerTony Lindgren <tony@atomide.com>
Wed, 24 Mar 2021 10:17:38 +0000 (12:17 +0200)
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")
Reported-by: Hulk Robot <hulkci@huawei.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pdata-quirks.c

index 9f304525b1930f6af5cc53e73763c96d67ad6db5..ebea270105b68ceb01b9bcc36ef60452156eee74 100644 (file)
@@ -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;