[U-Boot] [PATCH] dm: core: Widen the dump tree to show more of the driver's name.
Liviu Dudau
Liviu.Dudau at foss.arm.com
Tue Oct 2 10:46:22 UTC 2018
On Fri, Sep 28, 2018 at 04:14:12PM -0600, Simon Glass wrote:
> Hi,
Hi Simon,
>
> On 17 September 2018 at 20:06, Simon Glass <sjg at chromium.org> wrote:
> > On 17 September 2018 at 10:57, Liviu Dudau <Liviu.Dudau at foss.arm.com> wrote:
> >> With drivers that have prefix names that are quite long (like
> >> 'versatile_') it is useful to have a wider column for the driver's
> >> name when dumping the device driver tree.
> >>
> >> Signed-off-by: Liviu Dudau <liviu.dudau at foss.arm.com>
> >> ---
> >> drivers/core/dump.c | 8 ++++----
> >> 1 file changed, 4 insertions(+), 4 deletions(-)
> >
> > Reviewed-by: Simon Glass <sjg at chromium.org>
>
> Unfortunately this seems to break some tests (make tests). Please can
> you take a look?
I've had a go at trying to run 'make tests' on my machine but things
fail miserably for me. Attached is the output of the command. U-Boot is
v2018.11-rc1 plus my remaining patches that have not yet been merged.
It looks to me like the 'sandbox' board (or defconfig) needs some
updating? Please advise!
Best regards,
Liviu
>
> Regards,
> Simon
--
====================
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(ツ)_/¯
-------------- next part --------------
./test/run
+make O=/work/repositories/u-boot/build-sandbox -s sandbox_defconfig
+make O=/work/repositories/u-boot/build-sandbox -s -j8
In file included from ../arch/sandbox/cpu/os.c:26:
../arch/sandbox/include/asm/state.h:94:30: error: ‘CONFIG_SANDBOX_SPI_MAX_BUS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
struct sandbox_spi_info spi[CONFIG_SANDBOX_SPI_MAX_BUS]
^~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
../arch/sandbox/include/asm/state.h:95:7: error: ‘CONFIG_SANDBOX_SPI_MAX_CS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
[CONFIG_SANDBOX_SPI_MAX_CS];
^~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
../arch/sandbox/cpu/os.c: In function ‘os_parse_args’:
../arch/sandbox/cpu/os.c:217:43: error: ‘__u_boot_sandbox_option_start’ undeclared (first use in this function)
struct sandbox_cmdline_option **sb_opt = __u_boot_sandbox_option_start;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../arch/sandbox/cpu/os.c:217:43: note: each undeclared identifier is reported only once for each function it appears in
../arch/sandbox/cpu/os.c:218:23: warning: implicit declaration of function ‘__u_boot_sandbox_option_count’ [-Wimplicit-function-declaration]
size_t num_options = __u_boot_sandbox_option_count();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/common.h:49,
from ../arch/sandbox/cpu/cpu.c:6:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../include/dm/of.h:86:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [../arch/sandbox/cpu/Makefile:20: arch/sandbox/cpu/os.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ../arch/sandbox/cpu/start.c:14:
../arch/sandbox/include/asm/state.h:94:30: error: ‘CONFIG_SANDBOX_SPI_MAX_BUS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
struct sandbox_spi_info spi[CONFIG_SANDBOX_SPI_MAX_BUS]
^~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
In file included from ../include/cros_ec.h:14,
from ../board/sandbox/sandbox.c:7:
../include/asm/gpio.h:3:10: fatal error: asm/arch/gpio.h: No such file or directory
#include <asm/arch/gpio.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../arch/sandbox/cpu/state.c:10:
../arch/sandbox/include/asm/state.h:94:30: error: ‘CONFIG_SANDBOX_SPI_MAX_BUS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
struct sandbox_spi_info spi[CONFIG_SANDBOX_SPI_MAX_BUS]
^~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
make[3]: *** [../scripts/Makefile.build:279: board/sandbox/sandbox.o] Error 1
make[2]: *** [/work/repositories/u-boot/Makefile:1403: board/sandbox] Error 2
make[2]: *** Waiting for unfinished jobs....
../arch/sandbox/include/asm/state.h:95:7: error: ‘CONFIG_SANDBOX_SPI_MAX_CS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
[CONFIG_SANDBOX_SPI_MAX_CS];
^~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
In file included from ../include/common.h:49,
from ../arch/sandbox/cpu/start.c:6:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../arch/sandbox/cpu/start.c:16:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
In file included from ../arch/sandbox/cpu/cpu.c:13:
../arch/sandbox/include/asm/state.h:94:30: error: ‘CONFIG_SANDBOX_SPI_MAX_BUS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
struct sandbox_spi_info spi[CONFIG_SANDBOX_SPI_MAX_BUS]
^~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
../arch/sandbox/include/asm/state.h:95:7: error: ‘CONFIG_SANDBOX_SPI_MAX_CS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
[CONFIG_SANDBOX_SPI_MAX_CS];
^~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
../arch/sandbox/include/asm/state.h:95:7: error: ‘CONFIG_SANDBOX_SPI_MAX_CS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
[CONFIG_SANDBOX_SPI_MAX_CS];
^~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
../arch/sandbox/cpu/cpu.c: In function ‘is_in_sandbox_mem’:
../arch/sandbox/cpu/cpu.c:78:41: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
return (const uint8_t *)ptr >= gd->arch.ram_buf &&
^
../arch/sandbox/cpu/cpu.c:79:34: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
(const uint8_t *)ptr < gd->arch.ram_buf + gd->ram_size;
^
../arch/sandbox/cpu/cpu.c: At top level:
../arch/sandbox/cpu/cpu.c:92:7: error: redefinition of ‘phys_to_virt’
void *phys_to_virt(phys_addr_t paddr)
^~~~~~~~~~~~
In file included from ../include/asm/io.h:400,
from ../arch/sandbox/cpu/cpu.c:11:
../include/asm-generic/io.h:30:21: note: previous definition of ‘phys_to_virt’ was here
static inline void *phys_to_virt(phys_addr_t paddr)
^~~~~~~~~~~~
../arch/sandbox/cpu/cpu.c: In function ‘phys_to_virt’:
../arch/sandbox/cpu/cpu.c:99:27: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
return (void *)(gd->arch.ram_buf + paddr);
^
make[3]: *** [../scripts/Makefile.build:279: arch/sandbox/cpu/state.o] Error 1
../arch/sandbox/cpu/cpu.c: At top level:
../arch/sandbox/cpu/cpu.c:137:13: error: redefinition of ‘virt_to_phys’
phys_addr_t virt_to_phys(void *ptr)
^~~~~~~~~~~~
In file included from ../include/asm/io.h:400,
from ../arch/sandbox/cpu/cpu.c:11:
../include/asm-generic/io.h:46:27: note: previous definition of ‘virt_to_phys’ was here
static inline phys_addr_t virt_to_phys(void *vaddr)
^~~~~~~~~~~~
../arch/sandbox/cpu/cpu.c: In function ‘virt_to_phys’:
../arch/sandbox/cpu/cpu.c:146:49: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
return (phys_addr_t)((uint8_t *)ptr - gd->arch.ram_buf);
^
../arch/sandbox/cpu/cpu.c: At top level:
../arch/sandbox/cpu/cpu.c:160:7: error: redefinition of ‘map_physmem’
void *map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags)
^~~~~~~~~~~
In file included from ../include/asm/io.h:400,
from ../arch/sandbox/cpu/cpu.c:11:
../include/asm-generic/io.h:86:21: note: previous definition of ‘map_physmem’ was here
static inline void *map_physmem(phys_addr_t paddr, unsigned long len,
^~~~~~~~~~~
../arch/sandbox/cpu/cpu.c: In function ‘map_physmem’:
../arch/sandbox/cpu/cpu.c:167:25: warning: implicit declaration of function ‘pci_map_physmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
if (enable_pci_map && !pci_map_physmem(paddr, &len, &map_dev, &ptr)) {
^~~~~~~~~~~~~~~
map_physmem
../arch/sandbox/cpu/cpu.c: At top level:
../arch/sandbox/cpu/cpu.c:180:6: error: conflicting types for ‘unmap_physmem’
void unmap_physmem(const void *ptr, unsigned long flags)
^~~~~~~~~~~~~
In file included from ../include/asm/io.h:400,
from ../arch/sandbox/cpu/cpu.c:11:
../include/asm-generic/io.h:103:20: note: previous definition of ‘unmap_physmem’ was here
static inline void unmap_physmem(void *vaddr, unsigned long flags)
^~~~~~~~~~~~~
../arch/sandbox/cpu/start.c: In function ‘sandbox_early_getopt_check’:
../arch/sandbox/cpu/start.c:21:43: error: ‘__u_boot_sandbox_option_start’ undeclared (first use in this function)
struct sandbox_cmdline_option **sb_opt = __u_boot_sandbox_option_start;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../arch/sandbox/cpu/start.c:21:43: note: each undeclared identifier is reported only once for each function it appears in
../arch/sandbox/cpu/cpu.c: In function ‘unmap_physmem’:
../arch/sandbox/cpu/cpu.c:184:3: warning: implicit declaration of function ‘pci_unmap_physmem’; did you mean ‘unmap_physmem’? [-Wimplicit-function-declaration]
pci_unmap_physmem(ptr, map_len, map_dev);
^~~~~~~~~~~~~~~~~
unmap_physmem
../arch/sandbox/cpu/cpu.c: In function ‘map_to_sysmem’:
../arch/sandbox/cpu/cpu.c:199:30: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
return (u8 *)ptr - gd->arch.ram_buf;
^
../arch/sandbox/cpu/cpu.c: In function ‘sandbox_read_fdt_from_file’:
../arch/sandbox/cpu/cpu.c:250:9: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
blob = map_sysmem(CONFIG_SYS_FDT_LOAD_ADDR, 0);
^~~~~~~~~~
map_physmem
../arch/sandbox/cpu/cpu.c:250:7: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
blob = map_sysmem(CONFIG_SYS_FDT_LOAD_ADDR, 0);
^
../arch/sandbox/cpu/cpu.c: In function ‘is_in_sandbox_mem’:
../arch/sandbox/cpu/cpu.c:80:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[3]: *** [../scripts/Makefile.build:279: arch/sandbox/cpu/cpu.o] Error 1
../arch/sandbox/cpu/start.c:22:23: warning: implicit declaration of function ‘__u_boot_sandbox_option_count’ [-Wimplicit-function-declaration]
size_t num_options = __u_boot_sandbox_option_count();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/common.h:49,
from ../arch/sandbox/lib/pci_io.c:11:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../include/dm/of.h:86:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
../arch/sandbox/cpu/start.c: In function ‘setup_ram_buf’:
../arch/sandbox/cpu/start.c:285:10: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
gd->arch.ram_buf = state->ram_buf;
^
make[3]: *** [../scripts/Makefile.build:279: arch/sandbox/cpu/start.o] Error 1
make[2]: *** [/work/repositories/u-boot/Makefile:1403: arch/sandbox/cpu] Error 2
../arch/sandbox/lib/bootm.c: In function ‘bootz_setup’:
../arch/sandbox/lib/bootm.c:21:20: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
uint8_t *zimage = map_sysmem(image, 0);
^~~~~~~~~~
map_physmem
../arch/sandbox/lib/bootm.c:21:20: warning: initialization of ‘uint8_t *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
../arch/sandbox/lib/bootm.c:46:2: warning: implicit declaration of function ‘unmap_sysmem’; did you mean ‘unmap_physmem’? [-Wimplicit-function-declaration]
unmap_sysmem((void *)image);
^~~~~~~~~~~~
unmap_physmem
In file included from ../include/common.h:49,
from ../cmd/bdinfo.c:10:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../cmd/bdinfo.c:14:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/common.h:49,
from ../cmd/bind.c:6:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../include/dm/of.h:86:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
../cmd/source.c: In function ‘source’:
../cmd/source.c:62:8: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
buf = map_sysmem(addr, 0);
^~~~~~~~~~
map_physmem
../cmd/source.c:62:6: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
buf = map_sysmem(addr, 0);
^
In file included from ../include/linux/delay.h:6,
from ../include/common.h:26,
from ../cmd/bootm.c:10:
../include/asm/cache.h:50:27: error: ‘CONFIG_SYS_CACHELINE_SIZE’ undeclared here (not in a function); did you mean ‘CONFIG_SYS_EEPROM_SIZE’?
#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
^~~~~~~~~~~~~~~~~~~~~~~~~
../include/linux/kernel.h:42:37: note: in definition of macro ‘__ALIGN_MASK’
#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
^~~~
../include/linux/mtd/rawnand.h:646:18: note: in expansion of macro ‘ALIGN’
uint8_t ecccalc[ALIGN(NAND_MAX_OOBSIZE, ARCH_DMA_MINALIGN)];
^~~~~
../include/linux/mtd/rawnand.h:646:42: note: in expansion of macro ‘ARCH_DMA_MINALIGN’
uint8_t ecccalc[ALIGN(NAND_MAX_OOBSIZE, ARCH_DMA_MINALIGN)];
^~~~~~~~~~~~~~~~~
In file included from ../include/common.h:49,
from ../cmd/bootm.c:10:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../cmd/bootm.c:23:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [../scripts/Makefile.build:278: cmd/bootm.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ../include/common.h:49,
from ../cmd/bmp.c:11:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../include/dm/of.h:86:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/common.h:49,
from ../cmd/bootefi.c:9:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../include/dm/of.h:86:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
../cmd/bmp.c: In function ‘bmp_info’:
../cmd/bmp.c:193:46: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
struct bmp_image *bmp = (struct bmp_image *)map_sysmem(addr, 0);
^~~~~~~~~~
map_physmem
../cmd/bmp.c:193:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
struct bmp_image *bmp = (struct bmp_image *)map_sysmem(addr, 0);
^
../cmd/bmp.c: In function ‘bmp_display’:
../cmd/bmp.c:233:26: warning: initialization of ‘struct bmp_image *’ from ‘int’ makes pointer from integer witINTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/lib/python2.7/site-packages/_pytest/main.py", line 174, in wrap_session
INTERNALERROR> config._do_configure()
INTERNALERROR> File "/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 602, in _do_configure
INTERNALERROR> self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 280, in call_historic
INTERNALERROR> res = self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in <lambda>
INTERNALERROR> firstresult=hook.spec_opts.get('firstresult'),
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result
INTERNALERROR> _reraise(*ex) # noqa
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/work/repositories/u-boot/test/py/conftest.py", line 138, in pytest_configure
INTERNALERROR> runner.run(cmd, cwd=source_dir)
INTERNALERROR> File "/work/repositories/u-boot/test/py/multiplexed_log.py", line 173, in run
INTERNALERROR> raise exception
INTERNALERROR> Exception: Exit code: 2
hout a cast [-Wint-conversion]
struct bmp_image *bmp = map_sysmem(addr, 0);
^~~~~~~~~~
../cmd/bmp.c:245:9: warning: implicit declaration of function ‘map_to_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
addr = map_to_sysmem(bmp);
^~~~~~~~~~~~~
map_physmem
In file included from ../include/net.h:15,
from ../include/common.h:517,
from ../cmd/bootefi.c:9:
../include/memalign.h: In function ‘malloc_cache_aligned’:
../include/asm/cache.h:50:27: error: ‘CONFIG_SYS_CACHELINE_SIZE’ undeclared (first use in this function); did you mean ‘EFI_CACHELINE_SIZE’?
#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
^~~~~~~~~~~~~~~~~~~~~~~~~
../include/memalign.h:111:18: note: in expansion of macro ‘ARCH_DMA_MINALIGN’
return memalign(ARCH_DMA_MINALIGN, ALIGN(size, ARCH_DMA_MINALIGN));
^~~~~~~~~~~~~~~~~
../include/asm/cache.h:50:27: note: each undeclared identifier is reported only once for each function it appears in
#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
^~~~~~~~~~~~~~~~~~~~~~~~~
../include/memalign.h:111:18: note: in expansion of macro ‘ARCH_DMA_MINALIGN’
return memalign(ARCH_DMA_MINALIGN, ALIGN(size, ARCH_DMA_MINALIGN));
^~~~~~~~~~~~~~~~~
../cmd/bootefi.c: In function ‘copy_fdt’:
../cmd/bootefi.c:177:8: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
fdt = map_sysmem(*fdt_addrp, 0);
^~~~~~~~~~
map_physmem
../cmd/bootefi.c:177:6: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
fdt = map_sysmem(*fdt_addrp, 0);
^
../cmd/bootefi.c:200:10: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
new_fdt = map_sysmem(new_fdt_addr, fdt_size);
^
../cmd/bootefi.c: In function ‘efi_install_fdt’:
../cmd/bootefi.c:287:6: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
fdt = map_sysmem(fdt_addr, 0);
^
../cmd/bootefi.c:298:2: warning: implicit declaration of function ‘unmap_sysmem’; did you mean ‘unmap_physmem’? [-Wimplicit-function-declaration]
unmap_sysmem(fdt);
^~~~~~~~~~~~
unmap_physmem
../cmd/bootefi.c:299:6: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
fdt = map_sysmem(fdt_addr, 0);
^
../cmd/bootefi.c: In function ‘do_bootefi’:
../cmd/bootefi.c:579:22: warning: passing argument 1 of ‘do_bootefi_exec’ makes pointer from integer without a cast [-Wint-conversion]
r = do_bootefi_exec(map_sysmem(addr, 0), bootefi_device_path,
^~~~~~~~~~~~~~~~~~~
../cmd/bootefi.c:334:43: note: expected ‘void *’ but argument is of type ‘int’
static efi_status_t do_bootefi_exec(void *efi,
~~~~~~^~~
make[3]: *** [../scripts/Makefile.build:278: cmd/bootefi.o] Error 1
make[2]: *** [/work/repositories/u-boot/Makefile:1403: cmd] Error 2
make[1]: *** [Makefile:148: sub-make] Error 2
Exit code: 2
+make O=/work/repositories/u-boot/build-sandbox_spl -s sandbox_spl_defconfig
+make O=/work/repositories/u-boot/build-sandbox_spl -s -j8
scripts/dtc/pylibfdt/libfdt_wrap.c: In function ‘SWIG_Python_FixMethods’:
scripts/dtc/pylibfdt/libfdt_wrap.c:9307:15: warning: ‘strncpy’ output truncated before terminating nul copying 10 bytes from a string of the same length [-Wstringop-truncation]
strncpy(buff, "swig_ptr: ", 10);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/common.h:49,
from ../arch/sandbox/cpu/cpu.c:6:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../include/dm/of.h:86:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/cros_ec.h:14,
from ../board/sandbox/sandbox.c:7:
../include/asm/gpio.h:3:10: fatal error: asm/arch/gpio.h: No such file or directory
#include <asm/arch/gpio.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../arch/sandbox/cpu/os.c:26:
../arch/sandbox/include/asm/state.h:94:30: error: ‘CONFIG_SANDBOX_SPI_MAX_BUS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
struct sandbox_spi_info spi[CONFIG_SANDBOX_SPI_MAX_BUS]
^~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
../arch/sandbox/include/asm/state.h:95:7: error: ‘CONFIG_SANDBOX_SPI_MAX_CS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
[CONFIG_SANDBOX_SPI_MAX_CS];
^~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
make[3]: *** [../scripts/Makefile.build:279: board/sandbox/sandbox.o] Error 1
make[2]: *** [/work/repositories/u-boot/Makefile:1403: board/sandbox] Error 2
make[2]: *** Waiting for unfinished jobs....
../arch/sandbox/cpu/os.c: In function ‘os_parse_args’:
../arch/sandbox/cpu/os.c:217:43: error: ‘__u_boot_sandbox_option_start’ undeclared (first use in this function)
struct sandbox_cmdline_option **sb_opt = __u_boot_sandbox_option_start;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../arch/sandbox/cpu/os.c:217:43: note: each undeclared identifier is reported only once for each function it appears in
In file included from ../arch/sandbox/cpu/state.c:10:
../arch/sandbox/include/asm/state.h:94:30: error: ‘CONFIG_SANDBOX_SPI_MAX_BUS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
struct sandbox_spi_info spi[CONFIG_SANDBOX_SPI_MAX_BUS]
^~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
In file included from ../arch/sandbox/cpu/start.c:14:
../arch/sandbox/include/asm/state.h:94:30: error: ‘CONFIG_SANDBOX_SPI_MAX_BUS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
struct sandbox_spi_info spi[CONFIG_SANDBOX_SPI_MAX_BUS]
^~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
../arch/sandbox/cpu/os.c:218:23: warning: implicit declaration of function ‘__u_boot_sandbox_option_count’ [-Wimplicit-function-declaration]
size_t num_options = __u_boot_sandbox_option_count();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../arch/sandbox/cpu/cpu.c:13:
../arch/sandbox/include/asm/state.h:94:30: error: ‘CONFIG_SANDBOX_SPI_MAX_BUS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
struct sandbox_spi_info spi[CONFIG_SANDBOX_SPI_MAX_BUS]
^~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
../arch/sandbox/include/asm/state.h:95:7: error: ‘CONFIG_SANDBOX_SPI_MAX_CS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
[CONFIG_SANDBOX_SPI_MAX_CS];
^~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
make[3]: *** [../arch/sandbox/cpu/Makefile:20: arch/sandbox/cpu/os.o] Error 1
make[3]: *** Waiting for unfinished jobs....
../arch/sandbox/include/asm/state.h:95:7: error: ‘CONFIG_SANDBOX_SPI_MAX_CS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
[CONFIG_SANDBOX_SPI_MAX_CS];
^~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
In file included from ../include/common.h:49,
from ../arch/sandbox/cpu/start.c:6:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../arch/sandbox/cpu/start.c:16:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
../arch/sandbox/include/asm/state.h:95:7: error: ‘CONFIG_SANDBOX_SPI_MAX_CS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
[CONFIG_SANDBOX_SPI_MAX_CS];
^~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
../arch/sandbox/cpu/cpu.c: In function ‘is_in_sandbox_mem’:
../arch/sandbox/cpu/cpu.c:78:41: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
return (const uint8_t *)ptr >= gd->arch.ram_buf &&
^
../arch/sandbox/cpu/cpu.c:79:34: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
(const uint8_t *)ptr < gd->arch.ram_buf + gd->ram_size;
^
../arch/sandbox/cpu/cpu.c: At top level:
../arch/sandbox/cpu/cpu.c:92:7: error: redefinition of ‘phys_to_virt’
void *phys_to_virt(phys_addr_t paddr)
^~~~~~~~~~~~
In file included from ../include/asm/io.h:400,
from ../arch/sandbox/cpu/cpu.c:11:
../include/asm-generic/io.h:30:21: note: previous definition of ‘phys_to_virt’ was here
static inline void *phys_to_virt(phys_addr_t paddr)
^~~~~~~~~~~~
../arch/sandbox/cpu/cpu.c: In function ‘phys_to_virt’:
../arch/sandbox/cpu/cpu.c:99:27: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
return (void *)(gd->arch.ram_buf + paddr);
^
../arch/sandbox/cpu/cpu.c: At top level:
../arch/sandbox/cpu/cpu.c:137:13: error: redefinition of ‘virt_to_phys’
phys_addr_t virt_to_phys(void *ptr)
^~~~~~~~~~~~
In file included from ../include/asm/io.h:400,
from ../arch/sandbox/cpu/cpu.c:11:
../include/asm-generic/io.h:46:27: note: previous definition of ‘virt_to_phys’ was here
static inline phys_addr_t virt_to_phys(void *vaddr)
^~~~~~~~~~~~
../arch/sandbox/cpu/cpu.c: In function ‘virt_to_phys’:
../arch/sandbox/cpu/cpu.c:146:49: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
return (phys_addr_t)((uint8_t *)ptr - gd->arch.ram_buf);
^
../arch/sandbox/cpu/cpu.c: At top level:
../arch/sandbox/cpu/cpu.c:160:7: error: redefinition of ‘map_physmem’
void *map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags)
^~~~~~~~~~~
In file included from ../include/asm/io.h:400,
from ../arch/sandbox/cpu/cpu.c:11:
../include/asm-generic/io.h:86:21: note: previous definition of ‘map_physmem’ was here
static inline void *map_physmem(phys_addr_t paddr, unsigned long len,
^~~~~~~~~~~
make[3]: *** [../scripts/Makefile.build:279: arch/sandbox/cpu/state.o] Error 1
../arch/sandbox/cpu/cpu.c: In function ‘map_physmem’:
../arch/sandbox/cpu/cpu.c:167:25: warning: implicit declaration of function ‘pci_map_physmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
if (enable_pci_map && !pci_map_physmem(paddr, &len, &map_dev, &ptr)) {
^~~~~~~~~~~~~~~
map_physmem
../arch/sandbox/cpu/cpu.c: At top level:
../arch/sandbox/cpu/cpu.c:180:6: error: conflicting types for ‘unmap_physmem’
void unmap_physmem(const void *ptr, unsigned long flags)
^~~~~~~~~~~~~
In file included from ../include/asm/io.h:400,
from ../arch/sandbox/cpu/cpu.c:11:
../include/asm-generic/io.h:103:20: note: previous definition of ‘unmap_physmem’ was here
static inline void unmap_physmem(void *vaddr, unsigned long flags)
^~~~~~~~~~~~~
../arch/sandbox/cpu/cpu.c: In function ‘unmap_physmem’:
../arch/sandbox/cpu/cpu.c:184:3: warning: implicit declaration of function ‘pci_unmap_physmem’; did you mean ‘unmap_physmem’? [-Wimplicit-function-declaration]
pci_unmap_physmem(ptr, map_len, map_dev);
^~~~~~~~~~~~~~~~~
unmap_physmem
../arch/sandbox/cpu/cpu.c: In function ‘map_to_sysmem’:
../arch/sandbox/cpu/cpu.c:199:30: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
return (u8 *)ptr - gd->arch.ram_buf;
^
../arch/sandbox/cpu/cpu.c: In function ‘sandbox_read_fdt_from_file’:
../arch/sandbox/cpu/cpu.c:250:9: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
blob = map_sysmem(CONFIG_SYS_FDT_LOAD_ADDR, 0);
^~~~~~~~~~
map_physmem
../arch/sandbox/cpu/cpu.c:250:7: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
blob = map_sysmem(CONFIG_SYS_FDT_LOAD_ADDR, 0);
^
../arch/sandbox/cpu/cpu.c: In function ‘is_in_sandbox_mem’:
../arch/sandbox/cpu/cpu.c:80:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[3]: *** [../scripts/Makefile.build:279: arch/sandbox/cpu/cpu.o] Error 1
../arch/sandbox/cpu/start.c: In function ‘sandbox_early_getopt_check’:
../arch/sandbox/cpu/start.c:21:43: error: ‘__u_boot_sandbox_option_start’ undeclared (first use in this function)
struct sandbox_cmdline_option **sb_opt = __u_boot_sandbox_option_start;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../arch/sandbox/cpu/start.c:21:43: note: each undeclared identifier is reported only once for each function it appears in
In file included from ../include/common.h:49,
from ../arch/sandbox/lib/pci_io.c:11:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../include/dm/of.h:86:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
../arch/sandbox/cpu/start.c:22:23: warning: implicit declaration of function ‘__u_boot_sandbox_option_count’ [-Wimplicit-function-declaration]
size_t num_options = __u_boot_sandbox_option_count();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../arch/sandbox/cpu/start.c: In function ‘setup_ram_buf’:
../arch/sandbox/cpu/start.c:285:10: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
gd->arch.ram_buf = state->ram_buf;
^
../arch/sandbox/lib/bootm.c: In function ‘bootz_setup’:
../arch/sandbox/lib/bootm.c:21:20: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
uint8_t *zimage = map_sysmem(image, 0);
^~~~~~~~~~
map_physmem
../arch/sandbox/lib/bootm.c:21:20: warning: initialization of ‘uint8_t *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
make[3]: *** [../scripts/Makefile.build:279: arch/sandbox/cpu/start.o] Error 1
../arch/sandbox/lib/bootm.c:46:2: warning: implicit declaration of function ‘unmap_sysmem’; did you mean ‘unmap_physmem’? [-Wimplicit-function-declaration]
unmap_sysmem((void *)image);
^~~~~~~~~~~~
unmap_physmem
make[2]: *** [/work/repositories/u-boot/Makefile:1403: arch/sandbox/cpu] Error 2
In file included from ../include/common.h:49,
from ../common/exports.c:1:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../common/exports.c:6:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
../common/hash.c: In function ‘store_result’:
../common/hash.c:303:9: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
buf = map_sysmem(addr, algo->digest_size);
^~~~~~~~~~
map_physmem
../common/hash.c:303:7: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
buf = map_sysmem(addr, algo->digest_size);
^
../common/hash.c:305:3: warning: implicit declaration of function ‘unmap_sysmem’; did you mean ‘unmap_physmem’? [-Wimplicit-function-declaration]
unmap_sysmem(buf);
^~~~~~~~~~~~
unmap_physmem
../common/hash.c: In function ‘parse_verify_sum’:
../common/hash.c:343:7: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
buf = map_sysmem(addr, algo->digest_size);
^
In file included from ../include/common.h:49,
from ../common/board_f.c:12:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../include/dm/of.h:86:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/common.h:49,
from ../common/autoboot.c:7:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../common/autoboot.c:18:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/common.h:49,
from ../common/cli_hush.c:80:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../common/cli_hush.c:130:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/common.h:49,
from ../common/init/board_init.c:9:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../common/init/board_init.c:11:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/net.h:15,
from ../include/common.h:517,
from ../common/hash.c:13:
../common/hash.c: In function ‘hash_command’:
../include/asm/cache.h:50:27: error: ‘CONFIG_SYS_CACHELINE_SIZE’ undeclared (first use in this function); did you mean ‘CONFIG_SYS_CBSIZE’?
#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
^~~~~~~~~~~~~~~~~~~~~~~~~
../common/hash.c:407:21: note: in expansion of macro ‘ARCH_DMA_MINALIGN’
output = memalign(ARCH_DMA_MINALIGN,
^~~~~~~~~~~~~~~~~
../include/asm/cache.h:50:27: note: each undeclared identifier is reported only once for each function it appears in
#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
^~~~~~~~~~~~~~~~~~~~~~~~~
../common/hash.c:407:21: note: in expansion of macro ‘ARCH_DMA_MINALIGN’
output = memalign(ARCH_DMA_MINALIGN,
^~~~~~~~~~~~~~~~~
../common/hash.c:410:7: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
buf = map_sysmem(addr, len);
^
../common/board_f.c: In function ‘reserve_board’:
../common/board_f.c:485:20: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
gd->bd = (bd_t *)map_sysmem(gd->start_addr_sp, sizeof(bd_t));
^~~~~~~~~~
map_physmem
../common/board_f.c:485:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
gd->bd = (bd_t *)map_sysmem(gd->start_addr_sp, sizeof(bd_t));
^
../common/board_f.c: In function ‘reserve_global_data’:
../common/board_f.c:504:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
gd->new_gd = (gd_t *)map_sysmem(gd->start_addr_sp, sizeof(gd_t));
^
../common/board_f.c: In function ‘reserve_fdt’:
../common/board_f.c:522:15: warning: assignment to ‘void * volatile’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
gd->new_fdt = map_sysmem(gd->start_addr_sp, gd->fdt_size);
^
../common/board_f.c: In function ‘reserve_bootstage’:
../common/board_f.c:537:20: warning: assignment to ‘struct bootstage_data * volatile’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
gd->new_bootstage = map_sysmem(gd->start_addr_sp, size);
^
make[3]: *** [../scripts/Makefile.build:279: common/hash.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ../include/common.h:44,
from ../common/board_f.c:12:
../common/board_f.c: In function ‘setup_reloc’:
../common/board_f.c:693:30: warning: implicit declaration of function ‘map_to_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
gd->relocaddr, (ulong)map_to_sysmem(gd->new_gd),
^~~~~~~~~~~~~
../include/log.h:101:25: note: in definition of macro ‘log’
pr_fmt(_fmt), ##_args); \
^~~~~
../include/log.h:141:2: note: in expansion of macro ‘debug_cond’
debug_cond(_DEBUG, fmt, ##args)
^~~~~~~~~~
../common/board_f.c:692:2: note: in expansion of macro ‘debug’
debug("Relocating to %08lx, new gd at %08lx, sp at %08lx\n",
^~~~~
../common/board_f.c: In function ‘initf_bootstage’:
../common/board_f.c:750:23: warning: initialization of ‘const void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
const void *stash = map_sysmem(CONFIG_BOOTSTAGE_STASH_ADDR,
^~~~~~~~~~
In file included from ../include/common.h:49,
from ../common/board_r.c:12:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../include/dm/of.h:86:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/linux/delay.h:6,
from ../include/common.h:26,
from ../cmd/bootm.c:10:
../include/asm/cache.h:50:27: error: ‘CONFIG_SYS_CACHELINE_SIZE’ undeclared here (not in a function); did you mean ‘CONFIG_SYS_SDRAM_SIZE’?
#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
^~~~~~~~~~~~~~~~~~~~~~~~~
../include/linux/kernel.h:42:37: note: in definition of macro ‘__ALIGN_MASK’
#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
^~~~
../include/linux/mtd/rawnand.h:646:18: note: in expansion of macro ‘ALIGN’
uint8_t ecccalc[ALIGN(NAND_MAX_OOBSIZE, ARCH_DMA_MINALIGN)];
^~~~~
../include/linux/mtd/rawnand.h:646:42: note: in expansINTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/lib/python2.7/site-packages/_pytest/main.py", line 174, in wrap_session
INTERNALERROR> config._do_configure()
INTERNALERROR> File "/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 602, in _do_configure
INTERNALERROR> self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 280, in call_historic
INTERNALERROR> res = self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in <lambda>
INTERNALERROR> firstresult=hook.spec_opts.get('firstresult'),
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result
INTERNALERROR> _reraise(*ex) # noqa
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/work/repositories/u-boot/test/py/conftest.py", line 138, in pytest_configure
INTERNALERROR> runner.run(cmd, cwd=source_dir)
INTERNALERROR> File "/work/repositories/u-boot/test/py/multiplexed_log.py", line 173, in run
INTERNALERROR> raise exception
INTERNALERROR> Exception: Exit code: 2
ion of macro ‘ARCH_DMA_MINALIGN’
uint8_t ecccalc[ALIGN(NAND_MAX_OOBSIZE, ARCH_DMA_MINALIGN)];
^~~~~~~~~~~~~~~~~
In file included from ../include/common.h:49,
from ../cmd/bootm.c:10:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../cmd/bootm.c:23:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [../scripts/Makefile.build:278: cmd/bootm.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ../include/linux/delay.h:6,
from ../include/common.h:26,
from ../common/board_r.c:12:
../include/asm/cache.h:50:27: error: ‘CONFIG_SYS_CACHELINE_SIZE’ undeclared here (not in a function); did you mean ‘CONFIG_SYS_SDRAM_SIZE’?
#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
^~~~~~~~~~~~~~~~~~~~~~~~~
../include/linux/kernel.h:42:37: note: in definition of macro ‘__ALIGN_MASK’
#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
^~~~
../include/linux/mtd/rawnand.h:646:18: note: in expansion of macro ‘ALIGN’
uint8_t ecccalc[ALIGN(NAND_MAX_OOBSIZE, ARCH_DMA_MINALIGN)];
^~~~~
../include/linux/mtd/rawnand.h:646:42: note: in expansion of macro ‘ARCH_DMA_MINALIGN’
uint8_t ecccalc[ALIGN(NAND_MAX_OOBSIZE, ARCH_DMA_MINALIGN)];
^~~~~~~~~~~~~~~~~
../common/board_r.c: In function ‘initr_malloc’:
../common/board_r.c:243:25: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
mem_malloc_init((ulong)map_sysmem(malloc_start, TOTAL_MALLOC_LEN),
^~~~~~~~~~
map_physmem
../common/board_r.c: In function ‘run_main_loop’:
../common/board_r.c:644:2: warning: implicit declaration of function ‘sandbox_main_loop_init’; did you mean ‘run_main_loop’? [-Wimplicit-function-declaration]
sandbox_main_loop_init();
^~~~~~~~~~~~~~~~~~~~~~
run_main_loop
make[3]: *** [../scripts/Makefile.build:278: common/board_r.o] Error 1
In file included from ../include/common.h:49,
from ../cmd/bdinfo.c:10:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../cmd/bdinfo.c:14:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
../cmd/source.c: In function ‘source’:
../cmd/source.c:62:8: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
buf = map_sysmem(addr, 0);
^~~~~~~~~~
map_physmem
../cmd/source.c:62:6: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
buf = map_sysmem(addr, 0);
^
make[2]: *** [/work/repositories/u-boot/Makefile:1403: cmd] Error 2
make[2]: *** [/work/repositories/u-boot/Makefile:1403: common] Error 2
make[1]: *** [Makefile:148: sub-make] Error 2
Exit code: 2
+make O=/work/repositories/u-boot/build-sandbox_flattree -s sandbox_flattree_defconfig
+make O=/work/repositories/u-boot/build-sandbox_flattree -s -j8
In file included from ../arch/sandbox/cpu/os.c:26:
../arch/sandbox/include/asm/state.h:94:30: error: ‘CONFIG_SANDBOX_SPI_MAX_BUS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
struct sandbox_spi_info spi[CONFIG_SANDBOX_SPI_MAX_BUS]
^~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
../arch/sandbox/include/asm/state.h:95:7: error: ‘CONFIG_SANDBOX_SPI_MAX_CS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
[CONFIG_SANDBOX_SPI_MAX_CS];
^~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
In file included from ../include/common.h:49,
from ../arch/sandbox/cpu/cpu.c:6:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../include/dm/of.h:86:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
../arch/sandbox/cpu/os.c: In function ‘os_parse_args’:
../arch/sandbox/cpu/os.c:217:43: error: ‘__u_boot_sandbox_option_start’ undeclared (first use in this function)
struct sandbox_cmdline_option **sb_opt = __u_boot_sandbox_option_start;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../arch/sandbox/cpu/os.c:217:43: note: each undeclared identifier is reported only once for each function it appears in
../arch/sandbox/cpu/os.c:218:23: warning: implicit declaration of function ‘__u_boot_sandbox_option_count’ [-Wimplicit-function-declaration]
size_t num_options = __u_boot_sandbox_option_count();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/cros_ec.h:14,
from ../board/sandbox/sandbox.c:7:
../include/asm/gpio.h:3:10: fatal error: asm/arch/gpio.h: No such file or directory
#include <asm/arch/gpio.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [../scripts/Makefile.build:279: board/sandbox/sandbox.o] Error 1
make[2]: *** [/work/repositories/u-boot/Makefile:1403: board/sandbox] Error 2
make[2]: *** Waiting for unfinished jobs....
In file included from ../arch/sandbox/cpu/state.c:10:
../arch/sandbox/include/asm/state.h:94:30: error: ‘CONFIG_SANDBOX_SPI_MAX_BUS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
struct sandbox_spi_info spi[CONFIG_SANDBOX_SPI_MAX_BUS]
^~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
In file included from ../arch/sandbox/cpu/cpu.c:13:
../arch/sandbox/include/asm/state.h:94:30: error: ‘CONFIG_SANDBOX_SPI_MAX_BUS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
struct sandbox_spi_info spi[CONFIG_SANDBOX_SPI_MAX_BUS]
^~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
make[3]: *** [../arch/sandbox/cpu/Makefile:20: arch/sandbox/cpu/os.o] Error 1
make[3]: *** Waiting for unfinished jobs....
../arch/sandbox/include/asm/state.h:95:7: error: ‘CONFIG_SANDBOX_SPI_MAX_CS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
[CONFIG_SANDBOX_SPI_MAX_CS];
^~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
In file included from ../arch/sandbox/cpu/start.c:14:
../arch/sandbox/include/asm/state.h:94:30: error: ‘CONFIG_SANDBOX_SPI_MAX_BUS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
struct sandbox_spi_info spi[CONFIG_SANDBOX_SPI_MAX_BUS]
^~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
../arch/sandbox/include/asm/state.h:95:7: error: ‘CONFIG_SANDBOX_SPI_MAX_CS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
[CONFIG_SANDBOX_SPI_MAX_CS];
^~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
../arch/sandbox/cpu/cpu.c: In function ‘is_in_sandbox_mem’:
../arch/sandbox/cpu/cpu.c:78:41: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
return (const uint8_t *)ptr >= gd->arch.ram_buf &&
^
../arch/sandbox/cpu/cpu.c:79:34: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
(const uint8_t *)ptr < gd->arch.ram_buf + gd->ram_size;
^
../arch/sandbox/cpu/cpu.c: At top level:
../arch/sandbox/cpu/cpu.c:92:7: error: redefinition of ‘phys_to_virt’
void *phys_to_virt(phys_addr_t paddr)
^~~~~~~~~~~~
In file included from ../include/asm/io.h:400,
from ../arch/sandbox/cpu/cpu.c:11:
../include/asm-generic/io.h:30:21: note: previous definition of ‘phys_to_virt’ was here
static inline void *phys_to_virt(phys_addr_t paddr)
^~~~~~~~~~~~
../arch/sandbox/cpu/cpu.c: In function ‘phys_to_virt’:
../arch/sandbox/cpu/cpu.c:99:27: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
return (void *)(gd->arch.ram_buf + paddr);
^
../arch/sandbox/cpu/cpu.c: At top level:
../arch/sandbox/cpu/cpu.c:137:13: error: redefinition of ‘virt_to_phys’
phys_addr_t virt_to_phys(void *ptr)
^~~~~~~~~~~~
In file included from ../include/asm/io.h:400,
from ../arch/sandbox/cpu/cpu.c:11:
../include/asm-generic/io.h:46:27: note: previous definition of ‘virt_to_phys’ was here
static inline phys_addr_t virt_to_phys(void *vaddr)
^~~~~~~~~~~~
../arch/sandbox/cpu/cpu.c: In function ‘virt_to_phys’:
../arch/sandbox/cpu/cpu.c:146:49: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
return (phys_addr_t)((uint8_t *)ptr - gd->arch.ram_buf);
^
../arch/sandbox/cpu/cpu.c: At top level:
../arch/sandbox/cpu/cpu.c:160:7: error: redefinition of ‘map_physmem’
void *map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags)
^~~~~~~~~~~
In file included from ../include/asm/io.h:400,
from ../arch/sandbox/cpu/cpu.c:11:
../include/asm-generic/io.h:86:21: note: previous definition of ‘map_physmem’ was here
static inline void *map_physmem(phys_addr_t paddr, unsigned long len,
^~~~~~~~~~~
../arch/sandbox/cpu/cpu.c: In function ‘map_physmem’:
../arch/sandbox/cpu/cpu.c:167:25: warning: implicit declaration of function ‘pci_map_physmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
if (enable_pci_map && !pci_map_physmem(paddr, &len, &map_dev, &ptr)) {
^~~~~~~~~~~~~~~
map_physmem
../arch/sandbox/cpu/cpu.c: At top level:
../arch/sandbox/cpu/cpu.c:180:6: error: conflicting types for ‘unmap_physmem’
void unmap_physmem(const void *ptr, unsigned long flags)
^~~~~~~~~~~~~
In file included from ../include/asm/io.h:400,
from ../arch/sandbox/cpu/cpu.c:11:
../include/asm-generic/io.h:103:20: note: previous definition of ‘unmap_physmem’ was here
static inline void unmap_physmem(void *vaddr, unsigned long flags)
^~~~~~~~~~~~~
make[3]: *** [../scripts/Makefile.build:279: arch/sandbox/cpu/state.o] Error 1
../arch/sandbox/cpu/cpu.c: In function ‘unmap_physmem’:
../arch/sandbox/cpu/cpu.c:184:3: warning: implicit declaration of function ‘pci_unmap_physmem’; did you mean ‘unmap_physmem’? [-Wimplicit-function-declaration]
pci_unmap_physmem(ptr, map_len, map_dev);
^~~~~~~~~~~~~~~~~
unmap_physmem
../arch/sandbox/cpu/cpu.c: In function ‘map_to_sysmem’:
../arch/sandbox/cpu/cpu.c:199:30: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
return (u8 *)ptr - gd->arch.ram_buf;
^
../arch/sandbox/cpu/cpu.c: In function ‘sandbox_read_fdt_from_file’:
../arch/sandbox/cpu/cpu.c:250:9: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
blob = map_sysmem(CONFIG_SYS_FDT_LOAD_ADDR, 0);
^~~~~~~~~~
map_physmem
../arch/sandbox/cpu/cpu.c:250:7: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
blob = map_sysmem(CONFIG_SYS_FDT_LOAD_ADDR, 0);
^
../arch/sandbox/cpu/cpu.c: In function ‘is_in_sandbox_mem’:
../arch/sandbox/cpu/cpu.c:80:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[3]: *** [../scripts/Makefile.build:279: arch/sandbox/cpu/cpu.o] Error 1
../arch/sandbox/include/asm/state.h:95:7: error: ‘CONFIG_SANDBOX_SPI_MAX_CS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
[CONFIG_SANDBOX_SPI_MAX_CS];
^~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
In file included from ../include/common.h:49,
from ../arch/sandbox/cpu/start.c:6:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../arch/sandbox/cpu/start.c:16:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
../arch/sandbox/cpu/start.c: In function ‘sandbox_early_getopt_check’:
../arch/sandbox/cpu/start.c:21:43: error: ‘__u_boot_sandbox_option_start’ undeclared (first use in this function)
struct sandbox_cmdline_option **sb_opt = __u_boot_sandbox_option_start;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../arch/sandbox/cpu/start.c:21:43: note: each undeclared identifier is reported only once for each function it appears in
In file included from ../include/common.h:49,
from ../arch/sandbox/lib/pci_io.c:11:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../include/dm/of.h:86:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
../arch/sandbox/lib/bootm.c: In function ‘bootz_setup’:
../arch/sandbox/lib/bootm.c:21:20: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
uint8_t *zimage = map_sysmem(image, 0);
^~~~~~~~~~
map_physmem
../arch/sandbox/lib/bootm.c:21:20: warning: initialization of ‘uint8_t *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
../arch/sandbox/lib/bootm.c:46:2: warning: implicit declaration of function ‘unmap_sysmem’; did you mean ‘unmap_physmem’? [-Wimplicit-function-declaration]
unmap_sysmem((void *)image);
^~~~~~~~~~~~
unmap_physmem
../arch/sandbox/cpu/start.c:22:23: warning: implicit declaration of function ‘__u_boot_sandbox_option_count’ [-Wimplicit-function-declaration]
size_t num_options = __u_boot_sandbox_option_count();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../arch/sandbox/cpu/start.c: In function ‘setup_ram_buf’:
../arch/sandbox/cpu/start.c:285:10: error: ‘volatile struct arch_global_data’ has no member named ‘ram_buf’
gd->arch.ram_buf = state->ram_buf;
^
make[3]: *** [../scripts/Makefile.build:279: arch/sandbox/cpu/start.o] Error 1
In file included from ../arch/sandbox/cpu/sdl.c:10:
../arch/sandbox/include/asm/state.h:94:30: error: ‘CONFIG_SANDBOX_SPI_MAX_BUS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
struct sandbox_spi_info spi[CONFIG_SANDBOX_SPI_MAX_BUS]
^~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
../arch/sandbox/include/asm/state.h:95:7: error: ‘CONFIG_SANDBOX_SPI_MAX_CS’ undeclared here (not in a function); did you mean ‘CONFIG_SANDBOX_SPI’?
[CONFIG_SANDBOX_SPI_MAX_CS];
^~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SANDBOX_SPI
make[3]: *** [../arch/sandbox/cpu/Makefile:22: arch/sandbox/cpu/sdl.o] Error 1
make[2]: *** [/work/repositories/u-boot/Makefile:1403: arch/sandbox/cpu] Error 2
In file included from ../include/common.h:49,
from ../cmd/bdinfo.c:10:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../cmd/bdinfo.c:14:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
../cmd/source.c: In function ‘source’:
../cmd/source.c:62:8: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
buf = map_sysmem(addr, 0);
^~~~~~~~~~
map_physmem
../cmd/source.c:62:6: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
buf = map_sysmem(addr, 0);
^
In file included from ../include/linux/delay.h:6,
from ../include/common.h:26,
from ../cmd/bootm.c:10:
../include/asm/cache.h:50:27: error: ‘CONFIG_SYS_CACHELINE_SIZE’ undeclared here (not in a function); did you mean ‘CONFIG_SYS_EEPROM_SIZE’?
#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
^~~~~~~~~~~~~~~~~~~~~~~~~
../include/linux/kernel.h:42:37: note: in definition of macro ‘__ALIGN_MASK’
#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
^~~~
../include/linux/mtd/rawnand.h:646:18: note: in expansion of macro ‘ALIGN’
uint8_t ecccalc[ALIGN(NAND_MAX_OOBSIZE, ARCH_DMA_MINALIGN)];
^~~~~
../include/linux/mtd/rawnand.h:646:42: note: in expansion of macro ‘ARCH_DMA_MINALIGN’
uint8_t ecccalc[ALIGN(NAND_MAX_OOBSIZE, ARCH_DMA_MINALIGN)];
^~~~~~~~~~~~~~~~~
In file included from ../include/common.h:49,
from ../cmd/bootm.c:10:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../cmd/bootm.c:23:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [../scripts/Makefile.build:278: cmd/bootm.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ../include/common.h:49,
from ../cmd/bootefi.c:9:
../include/asm/global_data.h:108:58: warning: call-clobbered register used for global register variable
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9")
^~
../include/dm/of.h:86:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
DECLARE_GLOBAL_DATA_PTR;
^~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/net.h:15,
from ../include/common.h:517,
from ../cmd/bootefi.c:9:
../include/memalign.h: In function ‘malloc_cache_aligned’:
../include/asm/cache.h:50:27: error: ‘CONFIG_SYS_CACHELINE_SIZE’ undeclared (first use in this function); did you mean ‘EFI_CACHELINE_SIZE’?
#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
^~~~~~~~~~~~~~~~~~~~~~~~~
../include/memalign.h:111:18: note: in expansion of macro ‘ARCH_DMA_MINALIGN’
return memalign(ARCH_DMA_MINALIGN, ALIGN(size, ARCH_DMA_MINALIGN));
^~~~~~~~~~~~~~~~~
../include/asm/cache.h:50:27: note: each undeclared identifier is reported only once for each function it appears in
#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
^~~~~~~~~~~~~~~~~~~~~~~~~
../include/memalign.h:111:18: note: in expansion INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/lib/python2.7/site-packages/_pytest/main.py", line 174, in wrap_session
INTERNALERROR> config._do_configure()
INTERNALERROR> File "/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 602, in _do_configure
INTERNALERROR> self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 280, in call_historic
INTERNALERROR> res = self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in <lambda>
INTERNALERROR> firstresult=hook.spec_opts.get('firstresult'),
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result
INTERNALERROR> _reraise(*ex) # noqa
INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/work/repositories/u-boot/test/py/conftest.py", line 138, in pytest_configure
INTERNALERROR> runner.run(cmd, cwd=source_dir)
INTERNALERROR> File "/work/repositories/u-boot/test/py/multiplexed_log.py", line 173, in run
INTERNALERROR> raise exception
INTERNALERROR> Exception: Exit code: 2
of macro ‘ARCH_DMA_MINALIGN’
return memalign(ARCH_DMA_MINALIGN, ALIGN(size, ARCH_DMA_MINALIGN));
^~~~~~~~~~~~~~~~~
../cmd/bootefi.c: In function ‘copy_fdt’:
../cmd/bootefi.c:177:8: warning: implicit declaration of function ‘map_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration]
fdt = map_sysmem(*fdt_addrp, 0);
^~~~~~~~~~
map_physmem
../cmd/bootefi.c:177:6: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
fdt = map_sysmem(*fdt_addrp, 0);
^
../cmd/bootefi.c:200:10: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
new_fdt = map_sysmem(new_fdt_addr, fdt_size);
^
../cmd/bootefi.c: In function ‘efi_install_fdt’:
../cmd/bootefi.c:287:6: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
fdt = map_sysmem(fdt_addr, 0);
^
../cmd/bootefi.c:298:2: warning: implicit declaration of function ‘unmap_sysmem’; did you mean ‘unmap_physmem’? [-Wimplicit-function-declaration]
unmap_sysmem(fdt);
^~~~~~~~~~~~
unmap_physmem
../cmd/bootefi.c:299:6: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
fdt = map_sysmem(fdt_addr, 0);
^
../cmd/bootefi.c: In function ‘do_bootefi’:
../cmd/bootefi.c:579:22: warning: passing argument 1 of ‘do_bootefi_exec’ makes pointer from integer without a cast [-Wint-conversion]
r = do_bootefi_exec(map_sysmem(addr, 0), bootefi_device_path,
^~~~~~~~~~~~~~~~~~~
../cmd/bootefi.c:334:43: note: expected ‘void *’ but argument is of type ‘int’
static efi_status_t do_bootefi_exec(void *efi,
~~~~~~^~~
make[3]: *** [../scripts/Makefile.build:278: cmd/bootefi.o] Error 1
make[2]: *** [/work/repositories/u-boot/Makefile:1403: cmd] Error 2
make[1]: *** [Makefile:148: sub-make] Error 2
Exit code: 2
<unittest.result.TestResult run=137 errors=0 failures=0>
<unittest.result.TestResult run=12 errors=0 failures=0>
Checking: https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/7.3.0/
<unittest.result.TestResult run=35 errors=0 failures=1>
Traceback (most recent call last):
File "/work/repositories/u-boot/tools/buildman/test.py", line 426, in testToolchainDownload
self.toolchains.LocateArchUrl('arm'))
AssertionError: 'https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/x86_64-gcc-4.9.0-nolibc_arm-unknown-linux-gnueabi.tar.xz' != 'https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/7.3.0/x86_64-gcc-7.3.0-nolibc_arm-linux-gnueabi.tar.xz'
/tmp/binman.aN8uCU/source.dtb: Warning (clocks_property): /phandle-source:clocks: Could not get phandle node for (cell 0)
/tmp/binman.aN8uCU/source.dtb: Warning (clocks_property): /phandle-source2: Missing property '#clock-cells' in node /phandle-target or bad phandle (referred from clocks[0])
<unittest.result.TestResult run=22 errors=0 failures=0>
sh: python-coverage: command not found
Exception: Error running 'python-coverage report': <type 'str'>
sh: python-coverage: command not found
Traceback (most recent call last):
File "./tools/dtoc/dtoc", line 98, in <module>
RunTestCoverage()
File "./tools/dtoc/dtoc", line 72, in RunTestCoverage
['tools/patman/*.py', '*/fdt*', '*test*'], options.build_dir)
File "/work/repositories/u-boot/tools/dtoc/../patman/test_util.py", line 48, in RunTestCoverage
stdout = command.Output('python-coverage', 'report')
File "/work/repositories/u-boot/tools/dtoc/../patman/command.py", line 112, in Output
return RunPipe([cmd], capture=True, raise_on_error=raise_on_error).stdout
File "/work/repositories/u-boot/tools/dtoc/../patman/command.py", line 94, in RunPipe
raise Exception("Error running '%s': %s" % (user_pipestr, str))
Exception: Error running 'python-coverage report': <type 'str'>
File "./tools/dtoc/test_fdt", line 534
print result
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(result)?
Tests FAILED
make: *** [Makefile:1737: tests] Error 1
More information about the U-Boot
mailing list