u-boot/arch/sandbox
Sergei Antonov 76e1607617 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>
2023-07-20 14:10:57 -06:00
..
cpu sandbox: Fix quiting when the LCD window is closed 2023-07-14 12:54:50 -04:00
dts expo: Add tests for the configuration editor 2023-07-14 12:54:51 -04:00
include/asm sandbox: fix a compilation error 2023-07-20 14:10:57 -06:00
lib Correct SPL uses of LMB 2023-02-10 07:41:39 -05:00
config.mk sandbox: Drop reference to CONFIG_ARCH_DEVICE_TREE 2023-02-07 14:33:47 -05:00
Kconfig sandbox: Rework how SDL is enabled / disabled 2022-12-05 16:11:50 -05:00
Makefile sandbox: fix build failure with musl and SDL 2022-02-09 12:26:12 -07:00