Re: [intel-tdx:guest 37/107] lib/pci_iomap.c:30:9: error: implicit declaration of function 'ioremap_shared'; did you mean 'map_ioremap_shared'?

From: Kuppuswamy, Sathyanarayanan
Date: Mon Jul 26 2021 - 17:20:28 EST

Andi, Any comments on this issue? it looks like ioremap_shared is not redefined as ioremp
in some archs.

On 7/26/21 1:30 PM, kernel test robot wrote:
tree: guest
head: a81fb28d2e12ec7ee9667fbd8b08c7128d352f10
commit: 9627c7de2c9fd39517b723ef9759e9579f25800c [37/107] pci: Add pci_iomap_shared{,_range}
config: parisc-randconfig-r026-20210726 (attached as .config)
compiler: hppa64-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add intel-tdx
git fetch --no-tags intel-tdx guest
git checkout 9627c7de2c9fd39517b723ef9759e9579f25800c
# 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 <lkp@xxxxxxxxx>

All error/warnings (new ones prefixed by >>):

lib/pci_iomap.c: In function 'map_ioremap_shared':
lib/pci_iomap.c:30:9: error: implicit declaration of function 'ioremap_shared'; did you mean 'map_ioremap_shared'? [-Werror=implicit-function-declaration]
30 | return ioremap_shared(addr, size);
| ^~~~~~~~~~~~~~
| map_ioremap_shared
lib/pci_iomap.c:30:9: warning: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
30 | return ioremap_shared(addr, size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +30 lib/pci_iomap.c

28 static void __iomem *map_ioremap_shared(phys_addr_t addr, size_t size)
29 {
> 30 return ioremap_shared(addr, size);
31 }

0-DAY CI Kernel Test Service, Intel Corporation

Sathyanarayanan Kuppuswamy
Linux Kernel Developer