lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 28 Jul 2021 08:58:57 +0800
From:   kernel test robot <lkp@...el.com>
To:     Andi Kleen <ak@...ux.intel.com>
Cc:     clang-built-linux@...glegroups.com, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Kuppuswamy Sathyanarayanan 
        <sathyanarayanan.kuppuswamy@...ux.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 *'

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (37104 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ