diff mbox series

[v3,3/5] test/dm: fdtdec: Add the missing gd declaration

Message ID 1591767391-2669-3-git-send-email-bmeng.cn@gmail.com
State Superseded
Headers show
Series [v3,1/5] fdtdec: Fix the types of addr and size in fdtdec_add_reserved_memory() | expand

Commit Message

Bin Meng June 10, 2020, 5:36 a.m. UTC
From: Bin Meng <bin.meng at windriver.com>

Add DECLARE_GLOBAL_DATA_PTR since it is referenced in the test codes.

Signed-off-by: Bin Meng <bin.meng at windriver.com>
---

(no changes since v1)

 test/dm/fdtdec.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Simon Glass June 17, 2020, 3:11 a.m. UTC | #1
On Tue, 9 Jun 2020 at 23:36, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> From: Bin Meng <bin.meng at windriver.com>
>
> Add DECLARE_GLOBAL_DATA_PTR since it is referenced in the test codes.
>
> Signed-off-by: Bin Meng <bin.meng at windriver.com>
> ---
>
> (no changes since v1)
>
>  test/dm/fdtdec.c | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>

You may need to rebase this series on u-boot-dm/next
diff mbox series

Patch

diff --git a/test/dm/fdtdec.c b/test/dm/fdtdec.c
index b2f75b5..c2f7b94 100644
--- a/test/dm/fdtdec.c
+++ b/test/dm/fdtdec.c
@@ -9,6 +9,8 @@ 
 #include <dm/test.h>
 #include <test/ut.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 static int dm_test_fdtdec_set_carveout(struct unit_test_state *uts)
 {
 	struct fdt_memory resv;