tree:
git://git.infradead.org/users/hch/dma-mapping for-next
head: 2a410d09417b5344ab1f3cf001ac73a1daf8dcce
commit: 5ceda74093a5c1c3f42a02b894df031f3bbc9af1 [17/64] dma-direct: rename and cleanup
__phys_to_dma
config: mips-randconfig-r026-20201014 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
e7fe3c6dfede8d5781bd000741c3dea7088307a4)
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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git remote add hch-dma-mapping
git://git.infradead.org/users/hch/dma-mapping
git fetch --no-tags hch-dma-mapping for-next
git checkout 5ceda74093a5c1c3f42a02b894df031f3bbc9af1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> arch/mips/bmips/dma.c:43:12: warning: no previous prototype for
function 'phys_to_dma' [-Wmissing-prototypes]
dma_addr_t
phys_to_dma(struct device *dev, phys_addr_t pa)
^
arch/mips/bmips/dma.c:43:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
dma_addr_t phys_to_dma(struct device *dev, phys_addr_t pa)
^
static
arch/mips/bmips/dma.c:55:13: warning: no previous prototype for function
'dma_to_phys' [-Wmissing-prototypes]
phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dma_addr)
^
arch/mips/bmips/dma.c:55:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dma_addr)
^
static
arch/mips/bmips/dma.c:67:6: warning: no previous prototype for function
'arch_sync_dma_for_cpu_all' [-Wmissing-prototypes]
void arch_sync_dma_for_cpu_all(void)
^
arch/mips/bmips/dma.c:67:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
void arch_sync_dma_for_cpu_all(void)
^
static
3 warnings generated.
vim +/phys_to_dma +43 arch/mips/bmips/dma.c
42
43 dma_addr_t phys_to_dma(struct device *dev, phys_addr_t pa)
44 {
45 struct bmips_dma_range *r;
46
47 for (r = bmips_dma_ranges; r && r->size; r++) {
48 if (pa >= r->child_addr &&
49 pa < (r->child_addr + r->size))
50 return pa - r->child_addr + r->parent_addr;
51 }
52 return pa;
53 }
54
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org