All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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'
Date: Fri, 11 Sep 2020 11:40:58 +0800	[thread overview]
Message-ID: <202009111155.8THfedpD%lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2020-09-11  3:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202009111155.8THfedpD%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.