All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:xtensa-generic-dma 4/5] kernel//dma/direct.c:233:3: error: implicit declaration of function 'vunmap'; did you mean 'kunmap'?
@ 2019-10-29 13:32 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-10-29 13:32 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://git.infradead.org/users/hch/misc.git xtensa-generic-dma
head:   947313c04d14ad79af0f953092f748765e660379
commit: c0b727a24fadd49c9b8824880240ab8fd4784713 [4/5] dma-mapping: merge the generic remapping helpers into dma-direct
config: mips-allmodconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 7.4.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 c0b727a24fadd49c9b8824880240ab8fd4784713
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   kernel//dma/direct.c: In function 'dma_direct_free_pages':
>> kernel//dma/direct.c:233:3: error: implicit declaration of function 'vunmap'; did you mean 'kunmap'? [-Werror=implicit-function-declaration]
      vunmap(cpu_addr);
      ^~~~~~
      kunmap
   cc1: some warnings being treated as errors

vim +233 kernel//dma/direct.c

   212	
   213	void dma_direct_free_pages(struct device *dev, size_t size, void *cpu_addr,
   214			dma_addr_t dma_addr, unsigned long attrs)
   215	{
   216		unsigned int page_order = get_order(size);
   217	
   218		if ((attrs & DMA_ATTR_NO_KERNEL_MAPPING) &&
   219		    !force_dma_unencrypted(dev)) {
   220			/* cpu_addr is a struct page cookie, not a kernel address */
   221			dma_free_contiguous(dev, cpu_addr, size);
   222			return;
   223		}
   224	
   225		if (IS_ENABLED(CONFIG_DMA_DIRECT_REMAP) &&
   226		    dma_free_from_pool(cpu_addr, PAGE_ALIGN(size)))
   227			return;
   228	
   229		if (force_dma_unencrypted(dev))
   230			set_memory_encrypted((unsigned long)cpu_addr, 1 << page_order);
   231	
   232		if (IS_ENABLED(CONFIG_DMA_REMAP) && is_vmalloc_addr(cpu_addr))
 > 233			vunmap(cpu_addr);
   234	
   235		dma_free_contiguous(dev, dma_direct_to_page(dev, dma_addr), size);
   236	}
   237	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

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

only message in thread, other threads:[~2019-10-29 13:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-29 13:32 [hch-misc:xtensa-generic-dma 4/5] kernel//dma/direct.c:233:3: error: implicit declaration of function 'vunmap'; did you mean 'kunmap'? kbuild 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.