sandbox: fix a compilation error
PATCH 1/1 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;
| ^~~~~~Cc Tom Rini <[email protected]>
Cc Simon Glass <[email protected]>
Signed-off-by Sergei Antonov <[email protected]>
--- arch/sandbox/include/asm/test.h | 1 + 1 file changed, 1 insertion(+)
arch/sandbox/include/asm/test.h +1 -0
@@ -8,6 +8,7 @@#ifndef __ASM_TEST_H#define __ASM_TEST_H +#include <errno.h> #include <video.h> #include <pci_ids.h>
Signature · 1 line
2.37.2
Quoted 22 lines · Sergei Antonov
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; | ^~~~~~Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>Signed-off-by Sergei Antonov <[email protected]>--- arch/sandbox/include/asm/test.h | 1 + 1 file changed, 1 insertion(+)arch/sandbox/include/asm/test.h +0
-0
arch/sandbox/include/asm/test.h line 13
Quoted 6 lines
arch/sandbox/include/asm/test.h +1
-0@@ -8,6 +8,7 @@#ifndef __ASM_TEST_H#define __ASM_TEST_H +#include <errno.h> #include <video.h> #include <pci_ids.h>
Did you try what I suggested in my email as well?
Signature · 1 line
Tom
Quoted 11 lines · Sergei Antonov
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; | ^~~~~~
Quoted 6 lines
Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>Signed-off-by Sergei Antonov <[email protected]>--- arch/sandbox/include/asm/test.h | 1 + 1 file changed, 1 insertion(+)
Reviewed-by Simon Glass <[email protected]>