From: kernel test robot <lkp@intel.com>
To: Andi Kleen <ak@linux.intel.com>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org,
Kuppuswamy Sathyanarayanan
<sathyanarayanan.kuppuswamy@linux.intel.com>
Subject: [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 *'
Date: Wed, 28 Jul 2021 08:58:57 +0800 [thread overview]
Message-ID: <202107280850.YPuUDZbs-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-07-28 0:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202107280850.YPuUDZbs-lkp@intel.com \
--to=lkp@intel.com \
--cc=ak@linux.intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sathyanarayanan.kuppuswamy@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox