mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* arch/mips/pci/pci-ar2315.c:173:12: warning: no previous prototype for function 'phys_to_dma'
@ 2021-02-22 11:03 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-22 11:03 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: kbuild-all, clang-built-linux, linux-kernel, Robin Murphy

[-- Attachment #1: Type: text/plain, Size: 2497 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   31caf8b2a847214be856f843e251fc2ed2cd1075
commit: 5ceda74093a5c1c3f42a02b894df031f3bbc9af1 dma-direct: rename and cleanup __phys_to_dma
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=5ceda74093a5c1c3f42a02b894df031f3bbc9af1
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        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@intel.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 +/phys_to_dma +173 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	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35150 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-22 11:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22 11:03 arch/mips/pci/pci-ar2315.c:173:12: warning: no previous prototype for function 'phys_to_dma' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome