* [intel-tdx:guest 39/106] drivers/pci/msi.c:685:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *'
@ 2021-07-28 0:58 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-28 0:58 UTC (permalink / raw)
To: Andi Kleen
Cc: clang-built-linux, kbuild-all, linux-kernel, Kuppuswamy Sathyanarayanan
[-- Attachment #1: Type: text/plain, Size: 2609 bytes --]
tree: https://github.com/intel/tdx.git guest
head: 2fd34c2d8c2ec22dd7b1d191ec53a2491adf2259
commit: 1cc1ca45ae8d0f3bb82c851a6ef440cd6b4b8812 [39/106] pci: Mark MSI data shared
config: mips-randconfig-r011-20210727 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c658b472f3e61e1818e1909bf02f3d65470018a5)
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://github.com/intel/tdx/commit/1cc1ca45ae8d0f3bb82c851a6ef440cd6b4b8812
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest
git checkout 1cc1ca45ae8d0f3bb82c851a6ef440cd6b4b8812
# 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 >>):
drivers/pci/msi.c:685:9: error: implicit declaration of function 'ioremap_shared' [-Werror,-Wimplicit-function-declaration]
return ioremap_shared(phys_addr, nr_entries * PCI_MSIX_ENTRY_SIZE);
^
>> drivers/pci/msi.c:685:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
return ioremap_shared(phys_addr, nr_entries * PCI_MSIX_ENTRY_SIZE);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37104 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-28 0:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-28 0:58 [intel-tdx:guest 39/106] drivers/pci/msi.c:685:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' 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;
as well as URLs for NNTP newsgroup(s).