Blob Blame History Raw
From: Samuel Zou <zou_wei@huawei.com>
Date: Tue, 12 May 2020 10:41:11 +0800
Subject: ARM: OMAP2+: pm33xx-core: Make am43xx_get_rtc_base_addr static
Git-commit: d33e3d542b6c09a5cb4fa51d82109b2ca92e89c2
Patch-mainline: v5.8-rc1
References: git-fixes

Fix the following sparse warning:

arch/arm/mach-omap2/pm33xx-core.c:270:14: warning: symbol 'am43xx_get_rtc_base_addr' was not declared.

The am43xx_get_rtc_base_addr has only call site within pm33xx-core.c
It should be static

Fixes: 8c5a916f4c88 ("ARM: OMAP2+: sleep33/43xx: Add RTC-Mode support")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Samuel Zou <zou_wei@huawei.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Ivan T. Ivanov <iivanov@suse.de>
---
 arch/arm/mach-omap2/pm33xx-core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/arm/mach-omap2/pm33xx-core.c
+++ b/arch/arm/mach-omap2/pm33xx-core.c
@@ -187,7 +187,7 @@ static struct am33xx_pm_sram_addr *amx3_
 		return NULL;
 }
 
-void __iomem *am43xx_get_rtc_base_addr(void)
+static void __iomem *am43xx_get_rtc_base_addr(void)
 {
 	rtc_oh = omap_hwmod_lookup("rtc");