[soc:pxa-multiplatform-5.18 48/49] drivers/pcmcia/soc_common.c:786:2: error: call to undeclared function 'pci_unmap_iospace'; ISO C99 and later do not support implicit function declarations

kernel test robot lkp at intel.com
Thu Apr 28 14:32:02 PDT 2022


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git pxa-multiplatform-5.18
head:   bafe674c95e7e72094bdbeab22affaf87976929e
commit: 0150d5b2b3fb588a1f95dd12452c0fc4a8ea03fc [48/49] ARM: pxa/sa1100: move I/O space to PCI_IOBASE
config: arm-collie_defconfig (https://download.01.org/0day-ci/archive/20220429/202204290508.8lPpo1c3-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c59473aacce38cd7dd77eebceaf3c98c5707ab3b)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/commit/?id=0150d5b2b3fb588a1f95dd12452c0fc4a8ea03fc
        git remote add soc https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git
        git fetch --no-tags soc pxa-multiplatform-5.18
        git checkout 0150d5b2b3fb588a1f95dd12452c0fc4a8ea03fc
        # 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=arm SHELL=/bin/bash drivers/pcmcia/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

>> drivers/pcmcia/soc_common.c:786:2: error: call to undeclared function 'pci_unmap_iospace'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           pci_unmap_iospace(&skt->res_io_io);
           ^
   drivers/pcmcia/soc_common.c:786:2: note: did you mean 'pci_remap_iospace'?
   arch/arm/include/asm/io.h:186:5: note: 'pci_remap_iospace' declared here
   int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr);
       ^
   arch/arm/include/asm/io.h:185:27: note: expanded from macro 'pci_remap_iospace'
   #define pci_remap_iospace pci_remap_iospace
                             ^
   drivers/pcmcia/soc_common.c:875:2: error: call to undeclared function 'pci_unmap_iospace'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           pci_unmap_iospace(&skt->res_io_io);
           ^
   2 errors generated.


vim +/pci_unmap_iospace +786 drivers/pcmcia/soc_common.c

   780	
   781		soc_pcmcia_hw_shutdown(skt);
   782	
   783		/* should not be required; violates some lowlevel drivers */
   784		soc_common_pcmcia_config_skt(skt, &dead_socket);
   785	
 > 786		pci_unmap_iospace(&skt->res_io_io);
   787		release_resource(&skt->res_attr);
   788		release_resource(&skt->res_mem);
   789		release_resource(&skt->res_io);
   790		release_resource(&skt->res_skt);
   791	}
   792	EXPORT_SYMBOL(soc_pcmcia_remove_one);
   793	

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



More information about the linux-arm-kernel mailing list