Skip to contentSkip to conversation

arm: omap2: Fix warning in force_emif_self_refresh

PATCH In review Tom Rini 1 participant 2 messages Jul 17, 2023 – Jul 21, 2023

Subsystems (3)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 arm: omap2: Fix warning in force_emif_self_refresh

The function declaration for force_emif_self_refresh takes no parameters but does not specify this, only the prototype in the headers do. As clang will warn about this, correct it.

---
 arch/arm/mach-omap2/emif-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-omap2/emif-common.c +1 -1
index a6a97af37d7b..9daaeef73190 100644
@@ -40,7 +40,7 @@ void set_lpmode_selfrefresh(u32 base)
 	readl(&emif->emif_pwr_mgmt_ctrl);
 }
 
-void force_emif_self_refresh()
+void force_emif_self_refresh(void)
 {
 	set_lpmode_selfrefresh(EMIF1_BASE);
 	if (!is_dra72x())
Signature · 1 line
2.34.1
author
#1 lore raw
Quoted 5 lines · Tom Rini

The function declaration for force_emif_self_refresh takes no parameters but does not specify this, only the prototype in the headers do. As clang will warn about this, correct it.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom