tree:
git://git.infradead.org/users/hch/misc.git arm-dma-direct-cleanups
head: 4b440e9e6735af2889653a5384243f2d261293cb
commit: 4b440e9e6735af2889653a5384243f2d261293cb [28/28] ARM/dma-mapping: remove the arm
specific phys to dma translation helpers
config: arm-spear6xx_defconfig (attached as .config)
compiler: arm-linux-gnueabi-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 4b440e9e6735af2889653a5384243f2d261293cb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/arm/mm/dma-mapping.c: In function 'arm_dma_supported':
> arch/arm/mm/dma-mapping.c:196:9: error: implicit declaration of
function 'dma_to_pfn'; did you mean 'dma_to_phys'?
[-Werror=implicit-function-declaration]
196 | return dma_to_pfn(dev, mask)
>= max_dma_pfn;
| ^~~~~~~~~~
| dma_to_phys
arch/arm/mm/dma-mapping.c: At top level:
arch/arm/mm/dma-mapping.c:392:13: warning: no previous prototype for
'dma_contiguous_early_fixup' [-Wmissing-prototypes]
392 | void __init dma_contiguous_early_fixup(phys_addr_t base, unsigned long size)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
git remote add hch-misc
git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc arm-dma-direct-cleanups
git checkout 4b440e9e6735af2889653a5384243f2d261293cb
vim +196 arch/arm/mm/dma-mapping.c
2dc6a016bbedf18 Marek Szyprowski 2012-02-10 181
fd27a526bb381f4 Christoph Hellwig 2020-02-17 182 /*
fd27a526bb381f4 Christoph Hellwig 2020-02-17 183 * Return whether the given device DMA
address mask can be supported
fd27a526bb381f4 Christoph Hellwig 2020-02-17 184 * properly. For example, if your
device can only drive the low 24-bits
fd27a526bb381f4 Christoph Hellwig 2020-02-17 185 * during bus mastering, then you would
pass 0x00ffffff as the mask
fd27a526bb381f4 Christoph Hellwig 2020-02-17 186 * to this function.
fd27a526bb381f4 Christoph Hellwig 2020-02-17 187 */
fd27a526bb381f4 Christoph Hellwig 2020-02-17 188 static int arm_dma_supported(struct
device *dev, u64 mask)
fd27a526bb381f4 Christoph Hellwig 2020-02-17 189 {
fd27a526bb381f4 Christoph Hellwig 2020-02-17 190 unsigned long max_dma_pfn =
min(max_pfn - 1, arm_dma_pfn_limit);
fd27a526bb381f4 Christoph Hellwig 2020-02-17 191
fd27a526bb381f4 Christoph Hellwig 2020-02-17 192 /*
fd27a526bb381f4 Christoph Hellwig 2020-02-17 193 * Translate the device's DMA mask
to a PFN limit. This
fd27a526bb381f4 Christoph Hellwig 2020-02-17 194 * PFN number includes the page which
we can DMA to.
fd27a526bb381f4 Christoph Hellwig 2020-02-17 195 */
fd27a526bb381f4 Christoph Hellwig 2020-02-17 @196 return dma_to_pfn(dev, mask) >=
max_dma_pfn;
fd27a526bb381f4 Christoph Hellwig 2020-02-17 197 }
fd27a526bb381f4 Christoph Hellwig 2020-02-17 198
:::::: The code at line 196 was first introduced by commit
:::::: fd27a526bb381f43dded6db30b3b016468ab0e6c ARM/dma-mapping: merge __dma_supported
into arm_dma_supported
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Christoph Hellwig <hch(a)lst.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org