summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBin Meng <bin.meng@windriver.com>2020-06-22 22:55:47 -0700
committerSimon Glass <sjg@chromium.org>2020-07-09 18:57:22 -0600
commitc9a1df027abb831af35db2810c1a4f45b13cee79 (patch)
treeb031ffc959a6bbddd156c7e5ba67c86df5b3fe21 /test
parent43913f01b93ef08b87efa63b5ba599026e900e12 (diff)
test/dm: fdtdec: Add the missing gd declaration
Add DECLARE_GLOBAL_DATA_PTR since it is referenced in the test codes. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/dm/fdtdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/dm/fdtdec.c b/test/dm/fdtdec.c
index b2f75b5843..c2f7b94805 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;