diff options
author | Bin Meng <bin.meng@windriver.com> | 2020-06-22 23:50:50 -0700 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-06-24 16:50:15 +0200 |
commit | b1c272d18b50fae1465a8049d5b2802fcc424106 (patch) | |
tree | b8c72e0914c78853ee42bf1186df9d86c954e73f | |
parent | 4ff63383e3497389e66cf70943a83bdb1810462a (diff) | |
download | u-boot-b1c272d18b50fae1465a8049d5b2802fcc424106.tar.gz u-boot-b1c272d18b50fae1465a8049d5b2802fcc424106.tar.xz u-boot-b1c272d18b50fae1465a8049d5b2802fcc424106.zip |
cmd: bootefi: Fix fdt_size variable type in efi_carve_out_dt_rsv()
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@windriver.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r-- | cmd/bootefi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c index ac713cad1b..8269153973 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( |