[soc:pxa-multiplatform-5.18 48/49] arch/arm/mm/ioremap.c:461:6: error: redefinition of 'pci_ioremap_set_mem_type'
kernel test robot
lkp at intel.com
Thu Apr 28 13:50:51 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-omap1_defconfig (https://download.01.org/0day-ci/archive/20220429/202204290421.uTDRBzzm-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
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 >>):
>> arch/arm/mm/ioremap.c:461:6: error: redefinition of 'pci_ioremap_set_mem_type'
void pci_ioremap_set_mem_type(int mem_type)
^
arch/arm/include/asm/io.h:180:20: note: previous definition is here
static inline void pci_ioremap_set_mem_type(int mem_type) {}
^
1 error generated.
vim +/pci_ioremap_set_mem_type +461 arch/arm/mm/ioremap.c
1c8c3cf0b523938 Thomas Petazzoni 2014-05-19 460
1c8c3cf0b523938 Thomas Petazzoni 2014-05-19 @461 void pci_ioremap_set_mem_type(int mem_type)
1c8c3cf0b523938 Thomas Petazzoni 2014-05-19 462 {
1c8c3cf0b523938 Thomas Petazzoni 2014-05-19 463 pci_ioremap_mem_type = mem_type;
1c8c3cf0b523938 Thomas Petazzoni 2014-05-19 464 }
1c8c3cf0b523938 Thomas Petazzoni 2014-05-19 465
:::::: The code at line 461 was first introduced by commit
:::::: 1c8c3cf0b5239388e712508a85821f4718f4d889 ARM: 8060/1: mm: allow sub-architectures to override PCI I/O memory type
:::::: TO: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
:::::: CC: Russell King <rmk+kernel at arm.linux.org.uk>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
More information about the linux-arm-kernel
mailing list