tree:
git://git.infradead.org/users/hch/block.git dma-ranges.3
head: cbf6ef97bdb2a2ccc73ba09d2f6a744fe5423a52
commit: cbf6ef97bdb2a2ccc73ba09d2f6a744fe5423a52 [9/9] dma-mapping: introduce DMA range
map, supplanting dma_pfn_offset
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout cbf6ef97bdb2a2ccc73ba09d2f6a744fe5423a52
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/remoteproc/remoteproc_core.c: In function 'copy_dma_range_map':
> drivers/remoteproc/remoteproc_core.c:469:17: error: dereferencing
pointer to incomplete type 'const struct bus_dma_region'
469 | for (r
= map; r->size; r++)
| ^~
> drivers/remoteproc/remoteproc_core.c:469:26: error: increment of
pointer to an incomplete type 'const struct bus_dma_region'
469 | for
(r = map; r->size; r++)
| ^~
git remote add hch-block
git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block dma-ranges.3
git checkout cbf6ef97bdb2a2ccc73ba09d2f6a744fe5423a52
vim +469 drivers/remoteproc/remoteproc_core.c
460
461 static int copy_dma_range_map(struct device *to, struct device *from)
462 {
463 const struct bus_dma_region *map = from->dma_range_map, *new_map, *r;
464 int num_ranges = 0;
465
466 if (!map)
467 return 0;
468
469 for (r = map; r->size; r++)
470 num_ranges++;
471
472 new_map = kmemdup(map, array_size(num_ranges + 1, sizeof(*map)),
473 GFP_KERNEL);
474 if (!new_map)
475 return -ENOMEM;
476 to->dma_range_map = new_map;
477 return 0;
478 }
479
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org