mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-09 05:30:05 +00:00
arm-bsp/u-boot: corstone1000: Fix u-boot compilation warnings
From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
+47
@@ -0,0 +1,47 @@
|
|||||||
|
From dfebda98ce08d0cab411521ab3d9e832ed1b4608 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
|
||||||
|
Date: Thu, 15 Jun 2023 16:51:49 +0100
|
||||||
|
Subject: [PATCH] corstone1000: fix compilation warnings in
|
||||||
|
fwu_plat_get_bootidx()
|
||||||
|
|
||||||
|
Upstream-Status: Pending [Not submitted to upstream yet]
|
||||||
|
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
|
||||||
|
---
|
||||||
|
board/armltd/corstone1000/corstone1000.c | 7 +++----
|
||||||
|
1 file changed, 3 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/board/armltd/corstone1000/corstone1000.c b/board/armltd/corstone1000/corstone1000.c
|
||||||
|
index db508ac3cb..2e1ace5d04 100644
|
||||||
|
--- a/board/armltd/corstone1000/corstone1000.c
|
||||||
|
+++ b/board/armltd/corstone1000/corstone1000.c
|
||||||
|
@@ -9,6 +9,7 @@
|
||||||
|
#include <common.h>
|
||||||
|
#include <dm.h>
|
||||||
|
#include <env.h>
|
||||||
|
+#include <fwu.h>
|
||||||
|
#include <netdev.h>
|
||||||
|
#include <nvmxip.h>
|
||||||
|
#include <part.h>
|
||||||
|
@@ -116,7 +117,7 @@ int dram_init_banksize(void)
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
-void fwu_plat_get_bootidx(int *boot_idx)
|
||||||
|
+void fwu_plat_get_bootidx(uint *boot_idx)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
@@ -127,9 +128,7 @@ void fwu_plat_get_bootidx(int *boot_idx)
|
||||||
|
*/
|
||||||
|
ret = fwu_get_active_index(boot_idx);
|
||||||
|
if (ret < 0)
|
||||||
|
- log_err("corstone1000: failed to read active index\n");
|
||||||
|
-
|
||||||
|
- return ret;
|
||||||
|
+ log_err("corstone1000: failed to read active index err %d\n", ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
int board_late_init(void)
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
@@ -60,6 +60,7 @@ SRC_URI:append:corstone1000 = " \
|
|||||||
file://0040-corstone1000-boot-index-from-active.patch \
|
file://0040-corstone1000-boot-index-from-active.patch \
|
||||||
file://0041-corstone1000-enable-PSCI-reset.patch \
|
file://0041-corstone1000-enable-PSCI-reset.patch \
|
||||||
file://0042-Enable-EFI-set-get-time-services.patch \
|
file://0042-Enable-EFI-set-get-time-services.patch \
|
||||||
|
file://0043-corstone1000-fix-compilation-warnings-in-fwu_plat_get_bootidx.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user