Skip to contentSkip to conversation

dm: core: Widen the dump tree to show more of the driver's name.

PATCH New Liviu Dudau 5 participants 13 messages Sep 17, 2018 – Nov 22, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm: core: Widen the dump tree to show more of the driver's name.

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.

---
 drivers/core/dump.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/core/dump.c +4 -4
index d7cdb1475d..9d59fa90b2 100644
@@ -15,8 +15,8 @@ static void show_devices(struct udevice *dev, int depth, int last_flag)
 	int i, is_last;
 	struct udevice *child;
 
-	/* print the first 11 characters to not break the tree-format. */
-	printf(" %-10.10s  %d  [ %c ]   %-10.10s  ", dev->uclass->uc_drv->name,
+	/* print the first 20 characters to not break the tree-format. */
+	printf(" %-10.10s  %d  [ %c ]   %-20.20s  ", dev->uclass->uc_drv->name,
 	       dev_get_uclass_index(dev, NULL),
 	       dev->flags & DM_FLAG_ACTIVATED ? '+' : ' ', dev->driver->name);
 
@@ -49,8 +49,8 @@ void dm_dump_all(void)
 
 	root = dm_root();
 	if (root) {
-		printf(" Class    index  Probed  Driver      Name\n");
-		printf("-----------------------------------------\n");
+		printf(" Class    index  Probed  Driver                Name\n");
+		printf("-----------------------------------------------------------\n");
 		show_devices(root, -1, 0);
 	}
 }
Signature · 1 line
2.18.0
#1 lore raw

PATCH 1/1 dm: core: Widen the dump tree to show more of the driver's name.

Quoted 8 lines · Liviu Dudau

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.

---
 drivers/core/dump.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
#2 lore raw

PATCH 1/1 dm: core: Widen the dump tree to show more of the driver's name.

Hi,

Quoted 11 lines · Simon Glass
Quoted 8 lines · Liviu Dudau

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.

---
 drivers/core/dump.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Unfortunately this seems to break some tests (make tests). Please can you take a look?

Regards,
Simon

#3 lore raw

PATCH 1/1 dm: core: Widen the dump tree to show more of the driver's name.

Quoted 1 line · Simon Glass

Hi,

Hi Simon,

Quoted 12 lines · Simon Glass
Quoted 10 lines · Liviu Dudau
Quoted 8 lines

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.

---
 drivers/core/dump.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Quoted 4 lines
Quoted 1 line

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

Quoted 3 lines

Regards,
Simon

Signature · 1,098 lines
====================
| 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
#4 lore raw

PATCH 1/1 dm: core: Widen the dump tree to show more of the driver's name.

Hi Liviu,

Quoted 22 lines · Liviu Dudau
Quoted 1 line · Simon Glass

Hi,

Hi Simon,

Quoted 12 lines · Simon Glass
Quoted 10 lines · Liviu Dudau
Quoted 8 lines

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.

---
 drivers/core/dump.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Quoted 4 lines
Quoted 1 line

Unfortunately this seems to break some tests (make tests). Please can you take a look?

Quoted 6 lines

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!

I cannot explain your build log - it looks completely wrong.

Can you try:

make O=sandbox sandbox_defconfig
make O=sandbox

?

Maybe try 'make mrproper' first?

But still, the errors seems to make no sense. E.g. CONFIG_SANDBOX_SPI_MAX_BUS is defined in a config file.

Also what gcc version are you using on your computer?

Regards,
Simon

#5 lore raw

PATCH 1/1 dm: core: Widen the dump tree to show more of the driver's name.

Quoted 34 lines · Simon Glass

Hi Liviu,

Quoted 22 lines · Liviu Dudau
Quoted 1 line · Simon Glass

Hi,

Hi Simon,

Quoted 12 lines · Simon Glass
Quoted 10 lines · Liviu Dudau
Quoted 8 lines

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.

---
 drivers/core/dump.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Quoted 4 lines
Quoted 1 line

Unfortunately this seems to break some tests (make tests). Please can you take a look?

Quoted 6 lines

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!

I cannot explain your build log - it looks completely wrong.

Quoted 8 lines

Can you try:

make O=sandbox sandbox_defconfig
make O=sandbox

?

Maybe try 'make mrproper' first?

I've done that before.

Quoted 3 lines

But still, the errors seems to make no sense. E.g. CONFIG_SANDBOX_SPI_MAX_BUS is defined in a config file.

I think I have fixed the issue. I believe it was due to some stray include/config.mk file that was a leftover from the times I switched to an old Exynos tree trying to update an SMDK4422 board.

I can now see the relevant errors and I will come up with a patch.

Many thanks,
Liviu

Quoted 5 lines

Also what gcc version are you using on your computer?

Regards,
Simon

Signature · 8 lines
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯
#6 lore raw

PATCH 1/1 tests/test_bind.py: Update test to match the wider 'dm tree' output

In reply to Simon Glass

Commit ("dm: core: Widen the dump tree to show more of the driver's name") has widened the field reserved for the name of a driver, so we need to update the test to match.

---
 test/py/tests/test_bind.py | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
test/py/tests/test_bind.py +14 -14
index f21b7059ea..dee3fee566 100644
@@ -13,7 +13,7 @@ def in_tree(response, name, uclass, drv, depth, last_child):
 	else:
 		leaf = leaf + '`'
 	leaf = leaf + '-- ' + name
-	line = ' *{:10.10}  [0-9]*  \[ [ +] \]   {:10.10}  {}$'.format(uclass, drv,leaf)
+	line = ' *{:10.10}  [0-9]*  \[ [ +] \]   {:20.20}  {}$'.format(uclass, drv, leaf)
 	prog = re.compile(line)
 	for l in lines:
 		if prog.match(l):
@@ -28,31 +28,31 @@ def test_bind_unbind_with_node(u_boot_console):
 	response = u_boot_console.run_command("bind  /bind-test generic_simple_bus")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, False)
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	#Unbind child #1. No error expected and all devices should be there except for bind-test-child1
 	response = u_boot_console.run_command("unbind  /bind-test/bind-test-child1")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert "bind-test-child1" not in tree
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	#bind child #1. No error expected and all devices should be there
 	response = u_boot_console.run_command("bind  /bind-test/bind-test-child1 phy_sandbox")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, True)
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, False)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, False)
 
 	#Unbind child #2. No error expected and all devices should be there except for bind-test-child2
 	response = u_boot_console.run_command("unbind  /bind-test/bind-test-child2")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, True)
 	assert "bind-test-child2" not in tree
 
@@ -61,9 +61,9 @@ def test_bind_unbind_with_node(u_boot_console):
 	response = u_boot_console.run_command("bind /bind-test/bind-test-child2 generic_simple_bus")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, False)
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	#Unbind parent. No error expected. All devices should be removed and unbound
 	response = u_boot_console.run_command("unbind  /bind-test")
@@ -89,9 +89,9 @@ def test_bind_unbind_with_node(u_boot_console):
 	response = u_boot_console.run_command("bind  /bind-test generic_simple_bus")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, False)
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	response = u_boot_console.run_command("unbind  /bind-test")
 	assert response == ''
@@ -138,7 +138,7 @@ def test_bind_unbind_with_uclass(u_boot_console):
 	response = u_boot_console.run_command("unbind  simple_bus {}".format(child_of_child2_index))
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 	assert not in_tree(tree, "generic_simple_bus", "simple_bus", "generic_simple_bus", 2, True)
 	child_of_child2_line = get_next_line(tree, "bind-test-child2")
 	assert child_of_child2_line == ""
@@ -161,7 +161,7 @@ def test_bind_unbind_with_uclass(u_boot_console):
 	assert response == ''
 
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	child_of_child2_line = get_next_line(tree, "bind-test-child2")
 	assert child_of_child2_line == ""
Signature · 1 line
2.18.0
#7 lore raw

PATCH 1/1 tests/test_bind.py: Update test to match the wider 'dm tree' output

Quoted 9 lines · Liviu Dudau

Commit ("dm: core: Widen the dump tree to show more of the driver's name") has widened the field reserved for the name of a driver, so we need to update the test to match.

---
 test/py/tests/test_bind.py | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
#8 lore raw

[U-Boot] tests/test_bind.py: Update test to match the wider 'dm tree' output

In reply to Liviu Dudau
Quoted 8 lines · Liviu Dudau

Commit ("dm: core: Widen the dump tree to show more of the driver's name") has widened the field reserved for the name of a driver, so we need to update the test to match.

---
 test/py/tests/test_bind.py | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

For me, this breaks "make tests".

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181011/6be4c2c9/attachment.sig>
#9 lore raw

[U-Boot] tests/test_bind.py: Update test to match the wider 'dm tree' output

Hi Tom,

Quoted 7 lines · Tom Rini
Quoted 4 lines · Liviu Dudau

Commit ("dm: core: Widen the dump tree to show more of the driver's name") has widened the field reserved for the name of a driver, so we need to update the test to match.

Quoted 6 lines
Quoted 4 lines
---
 test/py/tests/test_bind.py | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

For me, this breaks "make tests".

Yes, it needs another patch, that I dropped because it breaks the tests. This patch fixes them but only if that patch is applied.

Liviu, how about sending a patch that combines both?

Regards,
Simon

#10 lore raw

PATCH v2 1/1 dm: core: Widen the dump tree to show more of the driver's name.

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.

Also update the tests to take into account the wider output format.

---

Changelog:
- v2: merged the patch introducing the wider output with the patch updating the tests so that they can be applied in one go.

 drivers/core/dump.c        |  8 ++++----
 test/py/tests/test_bind.py | 28 ++++++++++++++--------------
 2 files changed, 18 insertions(+), 18 deletions(-)
drivers/core/dump.c +4 -4
index d7cdb1475d..9d59fa90b2 100644
@@ -15,8 +15,8 @@ static void show_devices(struct udevice *dev, int depth, int last_flag)
 	int i, is_last;
 	struct udevice *child;
 
-	/* print the first 11 characters to not break the tree-format. */
-	printf(" %-10.10s  %d  [ %c ]   %-10.10s  ", dev->uclass->uc_drv->name,
+	/* print the first 20 characters to not break the tree-format. */
+	printf(" %-10.10s  %d  [ %c ]   %-20.20s  ", dev->uclass->uc_drv->name,
 	       dev_get_uclass_index(dev, NULL),
 	       dev->flags & DM_FLAG_ACTIVATED ? '+' : ' ', dev->driver->name);
 
@@ -49,8 +49,8 @@ void dm_dump_all(void)
 
 	root = dm_root();
 	if (root) {
-		printf(" Class    index  Probed  Driver      Name\n");
-		printf("-----------------------------------------\n");
+		printf(" Class    index  Probed  Driver                Name\n");
+		printf("-----------------------------------------------------------\n");
 		show_devices(root, -1, 0);
 	}
 }
test/py/tests/test_bind.py +14 -14
index f21b7059ea..dee3fee566 100644
@@ -13,7 +13,7 @@ def in_tree(response, name, uclass, drv, depth, last_child):
 	else:
 		leaf = leaf + '`'
 	leaf = leaf + '-- ' + name
-	line = ' *{:10.10}  [0-9]*  \[ [ +] \]   {:10.10}  {}$'.format(uclass, drv,leaf)
+	line = ' *{:10.10}  [0-9]*  \[ [ +] \]   {:20.20}  {}$'.format(uclass, drv, leaf)
 	prog = re.compile(line)
 	for l in lines:
 		if prog.match(l):
@@ -28,31 +28,31 @@ def test_bind_unbind_with_node(u_boot_console):
 	response = u_boot_console.run_command("bind  /bind-test generic_simple_bus")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, False)
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	#Unbind child #1. No error expected and all devices should be there except for bind-test-child1
 	response = u_boot_console.run_command("unbind  /bind-test/bind-test-child1")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert "bind-test-child1" not in tree
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	#bind child #1. No error expected and all devices should be there
 	response = u_boot_console.run_command("bind  /bind-test/bind-test-child1 phy_sandbox")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, True)
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, False)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, False)
 
 	#Unbind child #2. No error expected and all devices should be there except for bind-test-child2
 	response = u_boot_console.run_command("unbind  /bind-test/bind-test-child2")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, True)
 	assert "bind-test-child2" not in tree
 
@@ -61,9 +61,9 @@ def test_bind_unbind_with_node(u_boot_console):
 	response = u_boot_console.run_command("bind /bind-test/bind-test-child2 generic_simple_bus")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, False)
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	#Unbind parent. No error expected. All devices should be removed and unbound
 	response = u_boot_console.run_command("unbind  /bind-test")
@@ -89,9 +89,9 @@ def test_bind_unbind_with_node(u_boot_console):
 	response = u_boot_console.run_command("bind  /bind-test generic_simple_bus")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, False)
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	response = u_boot_console.run_command("unbind  /bind-test")
 	assert response == ''
@@ -138,7 +138,7 @@ def test_bind_unbind_with_uclass(u_boot_console):
 	response = u_boot_console.run_command("unbind  simple_bus {}".format(child_of_child2_index))
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 	assert not in_tree(tree, "generic_simple_bus", "simple_bus", "generic_simple_bus", 2, True)
 	child_of_child2_line = get_next_line(tree, "bind-test-child2")
 	assert child_of_child2_line == ""
@@ -161,7 +161,7 @@ def test_bind_unbind_with_uclass(u_boot_console):
 	assert response == ''
 
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	child_of_child2_line = get_next_line(tree, "bind-test-child2")
 	assert child_of_child2_line == ""
Signature · 1 line
2.18.0
#11 lore raw

PATCH v2 1/1 dm: core: Widen the dump tree to show more of the driver's name.

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.

Also update the tests to take into account the wider output format.

---

Changelog:
- v2: merged the patch introducing the wider output with the patch updating the tests so that they can be applied in one go.

 drivers/core/dump.c        |  8 ++++----
 test/py/tests/test_bind.py | 28 ++++++++++++++--------------
 2 files changed, 18 insertions(+), 18 deletions(-)

Applied to u-boot-dm/master, thanks!

#12 lore raw

PATCH v2 1/1 dm: core: Widen the dump tree to show more of the driver's name.

In reply to Simon Glass

From: Liviu Dudau <[email protected]>

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.

Also update the tests to take into account the wider output format.

---
(Looks like foss.arm.com server is having troubles delivering emails, this patch is stuck for a while in the send queue, so I'm using my private email)

Changelog:
- v2: merged the patch introducing the wider output with the patch updating the tests so that they can be applied in one go.

 drivers/core/dump.c        |  8 ++++----
 test/py/tests/test_bind.py | 28 ++++++++++++++--------------
 2 files changed, 18 insertions(+), 18 deletions(-)
drivers/core/dump.c +4 -4
index d7cdb1475d..9d59fa90b2 100644
@@ -15,8 +15,8 @@ static void show_devices(struct udevice *dev, int depth, int last_flag)
 	int i, is_last;
 	struct udevice *child;
 
-	/* print the first 11 characters to not break the tree-format. */
-	printf(" %-10.10s  %d  [ %c ]   %-10.10s  ", dev->uclass->uc_drv->name,
+	/* print the first 20 characters to not break the tree-format. */
+	printf(" %-10.10s  %d  [ %c ]   %-20.20s  ", dev->uclass->uc_drv->name,
 	       dev_get_uclass_index(dev, NULL),
 	       dev->flags & DM_FLAG_ACTIVATED ? '+' : ' ', dev->driver->name);
 
@@ -49,8 +49,8 @@ void dm_dump_all(void)
 
 	root = dm_root();
 	if (root) {
-		printf(" Class    index  Probed  Driver      Name\n");
-		printf("-----------------------------------------\n");
+		printf(" Class    index  Probed  Driver                Name\n");
+		printf("-----------------------------------------------------------\n");
 		show_devices(root, -1, 0);
 	}
 }
test/py/tests/test_bind.py +14 -14
index f21b7059ea..dee3fee566 100644
@@ -13,7 +13,7 @@ def in_tree(response, name, uclass, drv, depth, last_child):
 	else:
 		leaf = leaf + '`'
 	leaf = leaf + '-- ' + name
-	line = ' *{:10.10}  [0-9]*  \[ [ +] \]   {:10.10}  {}$'.format(uclass, drv,leaf)
+	line = ' *{:10.10}  [0-9]*  \[ [ +] \]   {:20.20}  {}$'.format(uclass, drv, leaf)
 	prog = re.compile(line)
 	for l in lines:
 		if prog.match(l):
@@ -28,31 +28,31 @@ def test_bind_unbind_with_node(u_boot_console):
 	response = u_boot_console.run_command("bind  /bind-test generic_simple_bus")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, False)
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	#Unbind child #1. No error expected and all devices should be there except for bind-test-child1
 	response = u_boot_console.run_command("unbind  /bind-test/bind-test-child1")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert "bind-test-child1" not in tree
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	#bind child #1. No error expected and all devices should be there
 	response = u_boot_console.run_command("bind  /bind-test/bind-test-child1 phy_sandbox")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, True)
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, False)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, False)
 
 	#Unbind child #2. No error expected and all devices should be there except for bind-test-child2
 	response = u_boot_console.run_command("unbind  /bind-test/bind-test-child2")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, True)
 	assert "bind-test-child2" not in tree
 
@@ -61,9 +61,9 @@ def test_bind_unbind_with_node(u_boot_console):
 	response = u_boot_console.run_command("bind /bind-test/bind-test-child2 generic_simple_bus")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, False)
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	#Unbind parent. No error expected. All devices should be removed and unbound
 	response = u_boot_console.run_command("unbind  /bind-test")
@@ -89,9 +89,9 @@ def test_bind_unbind_with_node(u_boot_console):
 	response = u_boot_console.run_command("bind  /bind-test generic_simple_bus")
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple", 0, True)
+	assert in_tree(tree, "bind-test", "simple_bus", "generic_simple_bus", 0, True)
 	assert in_tree(tree, "bind-test-child1", "phy", "phy_sandbox", 1, False)
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	response = u_boot_console.run_command("unbind  /bind-test")
 	assert response == ''
@@ -138,7 +138,7 @@ def test_bind_unbind_with_uclass(u_boot_console):
 	response = u_boot_console.run_command("unbind  simple_bus {}".format(child_of_child2_index))
 	assert response == ''
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 	assert not in_tree(tree, "generic_simple_bus", "simple_bus", "generic_simple_bus", 2, True)
 	child_of_child2_line = get_next_line(tree, "bind-test-child2")
 	assert child_of_child2_line == ""
@@ -161,7 +161,7 @@ def test_bind_unbind_with_uclass(u_boot_console):
 	assert response == ''
 
 	tree = u_boot_console.run_command("dm tree")
-	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple", 1, True)
+	assert in_tree(tree, "bind-test-child2", "simple_bus", "generic_simple_bus", 1, True)
 
 	child_of_child2_line = get_next_line(tree, "bind-test-child2")
 	assert child_of_child2_line == ""
Signature · 1 line
2.18.0