Skip to contentSkip to conversation

sandbox: fix a compilation error

PATCH Superseded Sergei Antonov 3 participants 3 messages Jun 12, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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;
      |                 ^~~~~~
---
 arch/sandbox/include/asm/test.h | 1 +
 1 file changed, 1 insertion(+)
arch/sandbox/include/asm/test.h +1 -0
index e482271fe975..86968ea6d345 100644
@@ -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
#1 lore raw
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;
      |                 ^~~~~~
---
 arch/sandbox/include/asm/test.h | 1 +
 1 file changed, 1 insertion(+)
arch/sandbox/include/asm/test.h +0 -0
index e482271fe975..86968ea6d345 100644

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
Reviewed-by on v1 1/1
#2 lore raw
In reply to Sergei Antonov
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
---
 arch/sandbox/include/asm/test.h | 1 +
 1 file changed, 1 insertion(+)