Skip to contentSkip to conversation

arm: stm32mp: use correct weak function name spl_board_prepare_for_linux

PATCH New Patrick Delaunay 2 participants 3 messages Jul 7, 2020 – Jul 28, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: stm32mp: use correct weak function name spl_board_prepare_for_linux

Replace the function spl_board_prepare_for_boot_linux by the correct name of the weak function spl_board_prepare_for_linux defined in spl.h.

This patch avoids warning with W=1 option:

u-boot/arch/arm/mach-stm32mp/spl.c:150:6:
warning: no previous prototype for ?spl_board_prepare_for_boot_linux? [-Wmissing-prototypes]

Fixes dc7e5f190de5 ("arm: stm32mp: activate data cache on DDR in SPL")

---

 arch/arm/mach-stm32mp/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-stm32mp/spl.c +1 -1
index 39413e9a0e..e84bdad7bf 100644
@@ -147,7 +147,7 @@ void spl_board_prepare_for_boot(void)
 	dcache_disable();
 }
 
-void spl_board_prepare_for_boot_linux(void)
+void spl_board_prepare_for_linux(void)
 {
 	dcache_disable();
 }
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 arm: stm32mp: use correct weak function name spl_board_prepare_for_linux

Quoted 21 lines · Patrick Delaunay

Replace the function spl_board_prepare_for_boot_linux by the correct name of the weak function spl_board_prepare_for_linux defined in spl.h.

This patch avoids warning with W=1 option:

u-boot/arch/arm/mach-stm32mp/spl.c:150:6:
warning: no previous prototype for ?spl_board_prepare_for_boot_linux? [-Wmissing-prototypes]

Fixes dc7e5f190de5 ("arm: stm32mp: activate data cache on DDR in SPL")

---

 arch/arm/mach-stm32mp/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-stm32mp/spl.c +0 -0
index 39413e9a0e..e84bdad7bf 100644

arch/arm/mach-stm32mp/spl.c void spl_board_prepare_for_boot(void) · line 153

Quoted 8 lines
arch/arm/mach-stm32mp/spl.c +1 -1
@@ -147,7 +147,7 @@ void spl_board_prepare_for_boot(void)
 	dcache_disable();
 }
 
-void spl_board_prepare_for_boot_linux(void)
+void spl_board_prepare_for_linux(void)
 {
 	dcache_disable();
 }

Thanks

Patrice

#2 lore raw

PATCH 1/1 arm: stm32mp: use correct weak function name spl_board_prepare_for_linux

Quoted 32 lines · Patrice CHOTARD
Quoted 21 lines · Patrick Delaunay

Replace the function spl_board_prepare_for_boot_linux by the correct name of the weak function spl_board_prepare_for_linux defined in spl.h.

This patch avoids warning with W=1 option:

u-boot/arch/arm/mach-stm32mp/spl.c:150:6:
warning: no previous prototype for ?spl_board_prepare_for_boot_linux? [-Wmissing-prototypes]

Fixes dc7e5f190de5 ("arm: stm32mp: activate data cache on DDR in SPL")

---

 arch/arm/mach-stm32mp/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-stm32mp/spl.c +0 -0
index 39413e9a0e..e84bdad7bf 100644

arch/arm/mach-stm32mp/spl.c void spl_board_prepare_for_boot(void) · line 153

Quoted 8 lines
arch/arm/mach-stm32mp/spl.c +1 -1
@@ -147,7 +147,7 @@ void spl_board_prepare_for_boot(void)
 	dcache_disable();
 }
 
-void spl_board_prepare_for_boot_linux(void)
+void spl_board_prepare_for_linux(void)
 {
 	dcache_disable();
 }
Quoted 7 lines

Thanks

Patrice
_______________________________________________
Uboot-stm32 mailing list
Uboot-stm32 at st-md-mailman.stormreply.com
https://st-md-mailman.stormreply.com/mailman/listinfo/uboot-stm32

Applied to u-boot-stm/master

Thanks

Patrice