All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-block:dma-ranges.3 9/9] drivers/remoteproc/remoteproc_core.c:469:17: error: dereferencing pointer to incomplete type 'const struct bus_dma_region'
@ 2020-09-11  3:40 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-09-11  3:40 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2252 bytes --]

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@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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 70386 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-11  3:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-11  3:40 [hch-block:dma-ranges.3 9/9] drivers/remoteproc/remoteproc_core.c:469:17: error: dereferencing pointer to incomplete type 'const struct bus_dma_region' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.