[linux-next:master 3913/4996] drivers/pci/endpoint/functions/pci-epf-vntb.c:975:5: warning: no previous prototype for function 'pci_read'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ac0ba5454ca85162c08dc429fef1999e077ca976
commit: ff32fac00d97661c715ee47bbfd867cae1f3aaf8 [3913/4996] NTB: EPF: support NTB transfer between PCI RC and EP connection
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220622/202206221813.Dn1s6uuh-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project af6d2a0b6825e71965f3e2701a63c239fa0ad70f)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=ff32fac00d97661c715ee47bbfd867cae1f3aaf8
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout ff32fac00d97661c715ee47bbfd867cae1f3aaf8
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/net/ drivers/pci/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/pci/endpoint/functions/pci-epf-vntb.c:975:5: warning: no previous prototype for function 'pci_read' [-Wmissing-prototypes]
   int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val)
       ^
   drivers/pci/endpoint/functions/pci-epf-vntb.c:975:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val)
   ^
   static 
>> drivers/pci/endpoint/functions/pci-epf-vntb.c:984:5: warning: no previous prototype for function 'pci_write' [-Wmissing-prototypes]
   int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val)
       ^
   drivers/pci/endpoint/functions/pci-epf-vntb.c:984:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val)
   ^
   static 
   2 warnings generated.


vim +/pci_read +975 drivers/pci/endpoint/functions/pci-epf-vntb.c

   974	
 > 975	int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val)
   976	{
   977		if (devfn == 0) {
   978			memcpy(val, ((uint8_t *)pci_space) + where, size);
   979			return 0;
   980		}
   981		return -1;
   982	}
   983	
 > 984	int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val)
   985	{
   986		return 0;
   987	}
   988	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux