diff mbox series

cmd: bootefi: Fix fdt_size variable type in efi_carve_out_dt_rsv()

Message ID 1592895050-20819-1-git-send-email-bmeng.cn@gmail.com
State New
Headers show
Series cmd: bootefi: Fix fdt_size variable type in efi_carve_out_dt_rsv() | expand

Commit Message

Bin Meng June 23, 2020, 6:50 a.m. UTC
From: Bin Meng <bin.meng at windriver.com>

Variable fdt_size should be of type 'fdt_size_t', not 'fdt_addr_t'.

Fixes 0d7c2913fdf7: ("cmd: bootefi: Honor the address & size cells properties correctly")
Signed-off-by: Bin Meng <bin.meng at windriver.com>
---

 cmd/bootefi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Heinrich Schuchardt June 23, 2020, 7:25 a.m. UTC | #1
On 23.06.20 08:50, Bin Meng wrote:
> From: Bin Meng <bin.meng at windriver.com>
>
> Variable fdt_size should be of type 'fdt_size_t', not 'fdt_addr_t'.
>
> Fixes 0d7c2913fdf7: ("cmd: bootefi: Honor the address & size cells properties correctly")
> Signed-off-by: Bin Meng <bin.meng at windriver.com>

Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

> ---
>
>  cmd/bootefi.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/cmd/bootefi.c b/cmd/bootefi.c
> index ac713ca..8269153 100644
> --- a/cmd/bootefi.c
> +++ b/cmd/bootefi.c
> @@ -189,7 +189,8 @@ static void efi_carve_out_dt_rsv(void *fdt)
>  	if (nodeoffset >= 0) {
>  		subnode = fdt_first_subnode(fdt, nodeoffset);
>  		while (subnode >= 0) {
> -			fdt_addr_t fdt_addr, fdt_size;
> +			fdt_addr_t fdt_addr;
> +			fdt_size_t fdt_size;
>
>  			/* check if this subnode has a reg property */
>  			fdt_addr = fdtdec_get_addr_size_auto_parent(
>
diff mbox series

Patch

diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index ac713ca..8269153 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -189,7 +189,8 @@  static void efi_carve_out_dt_rsv(void *fdt)
 	if (nodeoffset >= 0) {
 		subnode = fdt_first_subnode(fdt, nodeoffset);
 		while (subnode >= 0) {
-			fdt_addr_t fdt_addr, fdt_size;
+			fdt_addr_t fdt_addr;
+			fdt_size_t fdt_size;
 
 			/* check if this subnode has a reg property */
 			fdt_addr = fdtdec_get_addr_size_auto_parent(