summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSergei Antonov <saproj@gmail.com>2023-06-13 00:19:04 +0300
committerSimon Glass <sjg@chromium.org>2023-07-20 23:10:57 +0300
commit76e160761777ae9e93b209a73ed6c417ddb68cc9 (patch)
tree55cab08ab1cb7e285921e0bafa623a0dd57af228 /test
parent77224320f05834344581f8b5d939907925876b3d (diff)
downloadu-boot-76e160761777ae9e93b209a73ed6c417ddb68cc9.tar.xz
sandbox: fix a compilation error
With sandbox and sandbox64 configurations: In file included from .../u-boot/include/test/test.h:156, from .../u-boot/include/test/lib.h:9, from .../u-boot/test/lib/test_crc8.c:8: .../u-boot/arch/sandbox/include/asm/test.h: In function ‘sandbox_sdl_set_bpp’: .../u-boot/arch/sandbox/include/asm/test.h:323:17: error: ‘ENOSYS’ undeclared (first use in this function) 323 | return -ENOSYS; | ^~~~~~ Per Tom Rini's suggestion: move that function prototype over to arch/sandbox/include/asm/sdl.h and make test/dm/video.c include <asm/sdl.h> Cc: Simon Glass <sjg@chromium.org> Suggested-by: Tom Rini <trini@konsulko.com> Signed-off-by: Sergei Antonov <saproj@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/dm/video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/dm/video.c b/test/dm/video.c
index 0534ee93a3..d907f68160 100644
--- a/test/dm/video.c
+++ b/test/dm/video.c
@@ -15,6 +15,7 @@
#include <video.h>
#include <video_console.h>
#include <asm/test.h>
+#include <asm/sdl.h>
#include <dm/test.h>
#include <dm/uclass-internal.h>
#include <test/test.h>