lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202102221554.AsuUhCrH-lkp@intel.com>
Date:   Mon, 22 Feb 2021 15:08:55 +0800
From:   kernel test robot <lkp@...el.com>
To:     Christoph Hellwig <hch@....de>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org, Robin Murphy <robin.murphy@....com>
Subject: arch/mips/pci/pci-ar2315.c:178:13: warning: no previous prototype
 for function 'dma_to_phys'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   31caf8b2a847214be856f843e251fc2ed2cd1075
commit: 7bc5c428a660d4d1bc95ba54bf4cb6bccf8c3029 dma-direct: remove __dma_to_phys
date:   5 months ago
config: mips-randconfig-r032-20210222 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7bc5c428a660d4d1bc95ba54bf4cb6bccf8c3029
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7bc5c428a660d4d1bc95ba54bf4cb6bccf8c3029
        # 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@...el.com>

All warnings (new ones prefixed by >>):

   arch/mips/pci/pci-ar2315.c:173:12: warning: no previous prototype for function '__phys_to_dma' [-Wmissing-prototypes]
   dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr)
              ^
   arch/mips/pci/pci-ar2315.c:173: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 paddr)
   ^
   static 
>> arch/mips/pci/pci-ar2315.c:178: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/pci/pci-ar2315.c:178: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 
   2 warnings generated.


vim +/dma_to_phys +178 arch/mips/pci/pci-ar2315.c

   172	
 > 173	dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr)
   174	{
   175		return paddr + ar2315_dev_offset(dev);
   176	}
   177	
 > 178	phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dma_addr)
   179	{
   180		return dma_addr - ar2315_dev_offset(dev);
   181	}
   182	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (35150 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ