summaryrefslogtreecommitdiff
path: root/include/dm/test.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-27 20:53:08 +0300
committerTom Rini <trini@konsulko.com>2021-03-29 00:30:35 +0300
commit3c2503ee3327ea93a175768bafbaddff182c1c08 (patch)
tree5e0cf2c0f9c615ba880f1a6a87ce5f623d0a34f6 /include/dm/test.h
parent31637e0bc0701203c480ccd801a5c3806cd43a90 (diff)
downloadu-boot-3c2503ee3327ea93a175768bafbaddff182c1c08.tar.xz
test: Add udevice declaration to avoid build error
When including this file on a board other than sandbox (e.g by enabling UNIT_TEST and CMD_SETEXPR) an results. Fix it by declaring struct udevice first. Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include/dm/test.h')
-rw-r--r--include/dm/test.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dm/test.h b/include/dm/test.h
index 6ac6672cd6..c5a9610ec7 100644
--- a/include/dm/test.h
+++ b/include/dm/test.h
@@ -6,6 +6,8 @@
#ifndef __DM_TEST_H
#define __DM_TEST_H
+struct udevice;
+
/**
* struct dm_test_cdata - configuration data for test instance
*