[lkml]   [2021]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[intel-tdx:guest 37/107] lib/pci_iomap.c:30:9: error: implicit declaration of function 'ioremap_shared'
tree: guest
head: a81fb28d2e12ec7ee9667fbd8b08c7128d352f10
commit: 9627c7de2c9fd39517b723ef9759e9579f25800c [37/107] pci: Add pci_iomap_shared{,_range}
config: mips-randconfig-r001-20210726 (attached as .config)
compiler: clang version 13.0.0 ( c63dbd850182797bc4b76124d08e1c320ab2365d)
reproduce (this is a W=1 build):
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git remote add intel-tdx
git fetch --no-tags intel-tdx guest
git checkout 9627c7de2c9fd39517b723ef9759e9579f25800c
# save the attached .config to linux build tree

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <>

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

>> lib/pci_iomap.c:30:9: error: implicit declaration of function 'ioremap_shared' [-Werror,-Wimplicit-function-declaration]
return ioremap_shared(addr, size);
lib/pci_iomap.c:30:9: note: did you mean 'map_ioremap_shared'?
lib/pci_iomap.c:28:22: note: 'map_ioremap_shared' declared here
static void __iomem *map_ioremap_shared(phys_addr_t addr, size_t size)
>> lib/pci_iomap.c:30:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
return ioremap_shared(addr, size);
1 warning and 1 error generated.

vim +/ioremap_shared +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
[unhandled content-type:application/gzip]
 \ /
  Last update: 2021-07-26 17:21    [W:0.027 / U:0.940 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site