Skip to contentSkip to conversation

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

PATCH New Bin Meng 2 participants 2 messages Jun 23, 2020

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/1 cmd: bootefi: Fix fdt_size variable type in efi_carve_out_dt_rsv()

From: Bin Meng <[email protected]>

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")

---

 cmd/bootefi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
cmd/bootefi.c +2 -1
index ac713ca..8269153 100644
@@ -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(
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 cmd: bootefi: Fix fdt_size variable type in efi_carve_out_dt_rsv()

Quoted 6 lines · Bin Meng

From: Bin Meng <[email protected]>

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")

Quoted 20 lines

---

 cmd/bootefi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
cmd/bootefi.c +2 -1
index ac713ca..8269153 100644
@@ -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(