[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203090909.9xSg55aP-lkp@intel.com>
Date: Wed, 9 Mar 2022 09:12:32 +0800
From: kernel test robot <lkp@...el.com>
To: Liam Mark <lmark@...eaurora.org>
Cc: kbuild-all@...ts.01.org,
GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
linux-kernel@...r.kernel.org,
Saravana Kannan <saravanak@...gle.com>,
Laura Abbott <lauraa@...eaurora.org>,
Patrick Daly <pdaly@...eaurora.org>,
Mark Salyzyn <salyzyn@...gle.com>
Subject: [ammarfaizi2-block:google/android/kernel/common/android-4.19-stable
552/9999] arch/xtensa/kernel/pci-dma.c:205:17: error: too few arguments to
function 'dma_common_free_remap'
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.19-stable
head: 3fba6c6e70994eff4dcc5be475c9d2bd3848b83d
commit: 9257548d3c05e6fe98399729a796a23d801e027e [552/9999] ANDROID: GKI: dma-mapping: Add dma_remap functions
config: xtensa-buildonly-randconfig-r001-20220307 (https://download.01.org/0day-ci/archive/20220309/202203090909.9xSg55aP-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 11.2.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
# https://github.com/ammarfaizi2/linux-block/commit/9257548d3c05e6fe98399729a796a23d801e027e
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.19-stable
git checkout 9257548d3c05e6fe98399729a796a23d801e027e
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=xtensa SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from include/linux/ioport.h:13,
from include/linux/device.h:15,
from include/linux/dma-contiguous.h:56,
from arch/xtensa/kernel/pci-dma.c:18:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/xtensa/include/asm/page.h:182:16: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
182 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
include/linux/compiler.h:77:45: note: in definition of macro 'unlikely'
77 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/dma-mapping.h:339:9: note: in expansion of macro 'BUG_ON'
339 | BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
| ^~~~~~
include/linux/dma-mapping.h:339:16: note: in expansion of macro 'pfn_valid'
339 | BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
| ^~~~~~~~~
arch/xtensa/kernel/pci-dma.c: In function 'arch_dma_free':
>> arch/xtensa/kernel/pci-dma.c:205:17: error: too few arguments to function 'dma_common_free_remap'
205 | dma_common_free_remap(vaddr, size, VM_MAP);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/dma-noncoherent.h:5,
from arch/xtensa/kernel/pci-dma.c:19:
include/linux/dma-mapping.h:467:6: note: declared here
467 | void dma_common_free_remap(void *cpu_addr, size_t size, unsigned long vm_flags,
| ^~~~~~~~~~~~~~~~~~~~~
vim +/dma_common_free_remap +205 arch/xtensa/kernel/pci-dma.c
5a0015d62668e64 Chris Zankel 2005-06-23 192
3f2bbf443e21584 Christoph Hellwig 2018-06-19 193 void arch_dma_free(struct device *dev, size_t size, void *vaddr,
00085f1efa387a8 Krzysztof Kozlowski 2016-08-03 194 dma_addr_t dma_handle, unsigned long attrs)
5a0015d62668e64 Chris Zankel 2005-06-23 195 {
9d2ffe5c62554f2 Max Filippov 2016-04-25 196 unsigned long count = PAGE_ALIGN(size) >> PAGE_SHIFT;
6137e4166004e2e Max Filippov 2018-02-14 197 struct page *page;
6137e4166004e2e Max Filippov 2018-02-14 198
adbfa4e6f996895 Max Filippov 2018-02-14 199 if (attrs & DMA_ATTR_NO_KERNEL_MAPPING) {
adbfa4e6f996895 Max Filippov 2018-02-14 200 page = vaddr;
2cc15e802b250a1 Max Filippov 2018-07-11 201 } else if (platform_vaddr_uncached(vaddr)) {
2cc15e802b250a1 Max Filippov 2018-07-11 202 page = virt_to_page(platform_vaddr_to_cached(vaddr));
6137e4166004e2e Max Filippov 2018-02-14 203 } else {
6137e4166004e2e Max Filippov 2018-02-14 204 #ifdef CONFIG_MMU
6137e4166004e2e Max Filippov 2018-02-14 @205 dma_common_free_remap(vaddr, size, VM_MAP);
:::::: The code at line 205 was first introduced by commit
:::::: 6137e4166004e2ec383ac05d5ca15831f4668806 xtensa: support DMA buffers in high memory
:::::: TO: Max Filippov <jcmvbkbc@...il.com>
:::::: CC: Max Filippov <jcmvbkbc@...il.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists