[PATCH] arm: baltos: define baltos_sram_init() return type as void

yegorslists at googlemail.com yegorslists at googlemail.com
Fri Mar 10 01:15:25 PST 2017


From: Yegor Yefremov <yegorslists at googlemail.com>

As stated in the routine's description this routine is to return void,
hence fix its declaration to remove compiler warning.

Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
---
 arch/arm/boards/vscom-baltos/lowlevel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boards/vscom-baltos/lowlevel.c b/arch/arm/boards/vscom-baltos/lowlevel.c
index 9f829b9..c4e2341 100644
--- a/arch/arm/boards/vscom-baltos/lowlevel.c
+++ b/arch/arm/boards/vscom-baltos/lowlevel.c
@@ -77,7 +77,7 @@ extern char __dtb_am335x_baltos_minimal_start[];
  *
  * @return void
  */
-static noinline int baltos_sram_init(void)
+static noinline void baltos_sram_init(void)
 {
 	uint32_t sdram_size;
 	void *fdt;
-- 
2.1.4




More information about the barebox mailing list