* [PATCH] test: Add udevice declaration to avoid build error
@ 2021-03-27 17:53 Simon Glass
2021-03-29 0:29 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Simon Glass @ 2021-03-27 17:53 UTC (permalink / raw)
To: u-boot
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>
---
include/dm/test.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/dm/test.h b/include/dm/test.h
index fe1cc2e278c..59c51d6b30c 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
*
--
2.31.0.291.g576ba9dcdaf-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] test: Add udevice declaration to avoid build error
2021-03-27 17:53 [PATCH] test: Add udevice declaration to avoid build error Simon Glass
@ 2021-03-29 0:29 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2021-03-29 0:29 UTC (permalink / raw)
To: u-boot
On Sun, Mar 28, 2021 at 06:53:08AM +1300, Simon Glass wrote:
> 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>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210328/92193e8c/attachment.sig>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-29 0:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-27 17:53 [PATCH] test: Add udevice declaration to avoid build error Simon Glass
2021-03-29 0:29 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.