tree:
git://git.infradead.org/users/hch/misc.git sanitize-vmalloc-api.2
head: f44e0a9207268d44a9f106376661ed3c3f764564
commit: eab29baeeab828a08269b7260d4f02462ba99fe3 [5/32] dma-mapping: use vmap insted of
reimplementing it
config: xtensa-randconfig-a001-20200414 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout eab29baeeab828a08269b7260d4f02462ba99fe3
# save the attached .config to linux build tree
GCC_VERSION=9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/dma/remap.c: In function 'dma_common_pages_remap':
> kernel/dma/remap.c:32:22: error: 'count' undeclared
(first use in this function); did you mean 'd_count'?
32 | vaddr =
vmap(pages, count, VM_DMA_COHERENT, prot);
| ^~~~~
| d_count
kernel/dma/remap.c:32:22: note: each undeclared identifier is reported only once for
each function it appears in
vim +32 kernel/dma/remap.c
22
23 /*
24 * Remaps an array of PAGE_SIZE pages into another vm_area.
25 * Cannot be used in non-sleeping contexts
26 */
27 void *dma_common_pages_remap(struct page **pages, size_t size,
28 pgprot_t prot, const void *caller)
29 {
30 void *vaddr;
31
32 vaddr = vmap(pages, count, VM_DMA_COHERENT, prot);
33 if (vaddr)
34 find_vm_area(vaddr)->pages = pages;
35 return vaddr;
36 }
37
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org