tree: https://github.com/intel/tdx.git guest head: 47f59bba16441d093f6f44da93c3a4e31701eb74 commit: 387bdd802cc9ef2bdcd9242a0b7d8475aad57d5b [38/108] pci: Mark MSI data shared config: parisc-randconfig-r026-20210726 (attached as .config) compiler: hppa64-linux-gcc (GCC) 10.3.0 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 # https://github.com/intel/tdx/commit/387bdd802cc9ef2bdcd9242a0b7d8475aad57d5b git remote add intel-tdx https://github.com/intel/tdx.git git fetch --no-tags intel-tdx guest git checkout 387bdd802cc9ef2bdcd9242a0b7d8475aad57d5b # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=parisc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/pci/msi.c: In function 'msix_map_region': drivers/pci/msi.c:685:9: error: implicit declaration of function 'ioremap_shared'; did you mean 'pci_iomap_shared'? [-Werror=implicit-function-declaration] 685 | return ioremap_shared(phys_addr, nr_entries * PCI_MSIX_ENTRY_SIZE); | ^~~~~~~~~~~~~~ | pci_iomap_shared >> drivers/pci/msi.c:685:9: warning: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion] 685 | return ioremap_shared(phys_addr, nr_entries * PCI_MSIX_ENTRY_SIZE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +685 drivers/pci/msi.c 667 668 static void __iomem *msix_map_region(struct pci_dev *dev, unsigned nr_entries) 669 { 670 resource_size_t phys_addr; 671 u32 table_offset; 672 unsigned long flags; 673 u8 bir; 674 675 pci_read_config_dword(dev, dev->msix_cap + PCI_MSIX_TABLE, 676 &table_offset); 677 bir = (u8)(table_offset & PCI_MSIX_TABLE_BIR); 678 flags = pci_resource_flags(dev, bir); 679 if (!flags || (flags & IORESOURCE_UNSET)) 680 return NULL; 681 682 table_offset &= PCI_MSIX_TABLE_OFFSET; 683 phys_addr = pci_resource_start(dev, bir) + table_offset; 684 > 685 return ioremap_shared(phys_addr, nr_entries * PCI_MSIX_ENTRY_SIZE); 686 } 687 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org