[arnd-asm-generic:dma-sync-rework 20/20] arch/csky/mm/dma-mapping.c:65:18: error: 'paddr' undeclared

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git dma-sync-rework
head:   9a711fbea373208c1eeb2fafb0c744bc23a79a43
commit: 9a711fbea373208c1eeb2fafb0c744bc23a79a43 [20/20] dma-mapping: replace custom code with generic implementation
config: csky-defconfig (https://download.01.org/0day-ci/archive/20230324/202303242224.lSidB94K-lkp@xxxxxxxxx/config)
compiler: csky-linux-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git/commit/?id=9a711fbea373208c1eeb2fafb0c744bc23a79a43
        git remote add arnd-asm-generic https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git
        git fetch --no-tags arnd-asm-generic dma-sync-rework
        git checkout 9a711fbea373208c1eeb2fafb0c744bc23a79a43
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=csky olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=csky SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202303242224.lSidB94K-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   arch/csky/mm/dma-mapping.c: In function 'arch_dma_cache_inv':
>> arch/csky/mm/dma-mapping.c:65:18: error: 'paddr' undeclared (first use in this function)
      65 |         cache_op(paddr, size, dma_inv_range);
         |                  ^~~~~
   arch/csky/mm/dma-mapping.c:65:18: note: each undeclared identifier is reported only once for each function it appears in
   arch/csky/mm/dma-mapping.c: In function 'arch_dma_cache_wback_inv':
   arch/csky/mm/dma-mapping.c:70:18: error: 'paddr' undeclared (first use in this function)
      70 |         cache_op(paddr, size, dma_wbinv_range);
         |                  ^~~~~


vim +/paddr +65 arch/csky/mm/dma-mapping.c

013de2d6671d89 Guo Ren       2018-09-05  62  
9a711fbea37320 Arnd Bergmann 2023-03-22  63  static inline void arch_dma_cache_inv(phys_addr_t start, size_t size)
013de2d6671d89 Guo Ren       2018-09-05  64  {
ae76f635d4e1cf Guo Ren       2019-07-30 @65  	cache_op(paddr, size, dma_inv_range);
013de2d6671d89 Guo Ren       2018-09-05  66  }
9a711fbea37320 Arnd Bergmann 2023-03-22  67  

:::::: The code at line 65 was first introduced by commit
:::::: ae76f635d4e1cffa6870cc5472567ca9d6940a22 csky: Optimize arch_sync_dma_for_cpu/device with dma_inv_range

:::::: TO: Guo Ren <ren_guo@xxxxxxxxx>
:::::: CC: Guo Ren <ren_guo@xxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests



[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux