From: Simon Glass Date: Sat, 27 Mar 2021 17:53:08 +0000 (+1300) Subject: test: Add udevice declaration to avoid build error X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=3c2503ee3327ea93a175768bafbaddff182c1c08;p=u-boot.git 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 Reported-by: Heinrich Schuchardt --- 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 *