public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v3 1/5] fdtdec: Fix the types of addr and size in fdtdec_add_reserved_memory()
@ 2020-06-10  5:36 Bin Meng
  2020-06-10  5:36 ` [PATCH v3 2/5] fdtdec: Honor #address-cells and #size-cells " Bin Meng
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Bin Meng @ 2020-06-10  5:36 UTC (permalink / raw)
  To: u-boot

From: Bin Meng <bin.meng@windriver.com>

fdtdec_get_addr_size() expects size is of type 'fdt_size_t', and
return value is of type 'fdt_addr_t'. Adjust their types accordingly.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

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

diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 1f2b763..42f7a25 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -1294,7 +1294,8 @@ int fdtdec_add_reserved_memory(void *blob, const char *basename,
 	/* find a matching node and return the phandle to that */
 	fdt_for_each_subnode(node, blob, parent) {
 		const char *name = fdt_get_name(blob, node, NULL);
-		phys_addr_t addr, size;
+		fdt_addr_t addr;
+		fdt_size_t size;
 
 		addr = fdtdec_get_addr_size(blob, node, "reg", &size);
 		if (addr == FDT_ADDR_T_NONE) {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-06-17  3:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-10  5:36 [PATCH v3 1/5] fdtdec: Fix the types of addr and size in fdtdec_add_reserved_memory() Bin Meng
2020-06-10  5:36 ` [PATCH v3 2/5] fdtdec: Honor #address-cells and #size-cells " Bin Meng
2020-06-10  5:36 ` [PATCH v3 3/5] test/dm: fdtdec: Add the missing gd declaration Bin Meng
2020-06-17  3:11   ` Simon Glass
2020-06-10  5:36 ` [PATCH v3 4/5] test/dm: fdtdec: Corect a typo in dm_test_fdtdec_set_carveout() Bin Meng
2020-06-17  3:11   ` Simon Glass
2020-06-10  5:36 ` [PATCH v3 5/5] test/dm: fdtdec: Add tests for fdtdec_add_reserved_memory() Bin Meng
2020-06-17  3:11   ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox