All of lore.kernel.org
 help / color / mirror / Atom feed
* [opencloudos:linux-5.4/lts/5.4.119-20.0009.spr 1598/2444] drivers/vfio/platform/vfio_platform.c:29:9: error: implicit declaration of function 'platform_get_mem_or_io'
@ 2024-09-27 15:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-27 15:37 UTC (permalink / raw)
  To: kaixuxia, frankjpliu, kasong, sagazchen, kernelxing, aurelianliu,
	deshengwu, flyingpeng, jingqunli, jason.zeng, wu.zheng,
	yingbao.jia, pei.p.jia
  Cc: oe-kbuild-all

Hi Jason,

First bad commit (maybe != root cause):

tree:   https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git linux-5.4/lts/5.4.119-20.0009.spr
head:   aabcc6dc6d7f9e12baf1f117341469c84afd545d
commit: 6c95419e5c4fa83ef61c2c0cbf752d39df4b9f3f [1598/2444] vfio-platform: Add COMPILE_TEST to VFIO_PLATFORM
config: x86_64-buildonly-randconfig-002-20240927 (https://download.01.org/0day-ci/archive/20240927/202409272348.MorJkFiJ-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240927/202409272348.MorJkFiJ-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409272348.MorJkFiJ-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/vfio/platform/vfio_platform.c:9:
   In file included from include/linux/vfio.h:12:
   In file included from include/linux/iommu.h:16:
   include/linux/ioasid.h:210:9: error: must use 'enum' tag to refer to type 'ioasid_set_type'
     210 |                                                   ioasid_set_type type)
         |                                                   ^
         |                                                   enum 
>> drivers/vfio/platform/vfio_platform.c:29:9: error: implicit declaration of function 'platform_get_mem_or_io' [-Werror,-Wimplicit-function-declaration]
      29 |         return platform_get_mem_or_io(dev, num);
         |                ^
   drivers/vfio/platform/vfio_platform.c:29:9: note: did you mean 'platform_get_resource'?
   include/linux/platform_device.h:52:25: note: 'platform_get_resource' declared here
      52 | extern struct resource *platform_get_resource(struct platform_device *,
         |                         ^
>> drivers/vfio/platform/vfio_platform.c:29:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct resource *' [-Wint-conversion]
      29 |         return platform_get_mem_or_io(dev, num);
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 errors generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for PCI_MSI_ARCH_FALLBACKS
   Depends on [n]: PCI [=n]
   Selected by [y]:
   - X86 [=y]


vim +/platform_get_mem_or_io +29 drivers/vfio/platform/vfio_platform.c

9df85aaa43297c Antonios Motakis 2015-03-16  23  
9df85aaa43297c Antonios Motakis 2015-03-16  24  static struct resource *get_platform_resource(struct vfio_platform_device *vdev,
9df85aaa43297c Antonios Motakis 2015-03-16  25  					      int num)
9df85aaa43297c Antonios Motakis 2015-03-16  26  {
9df85aaa43297c Antonios Motakis 2015-03-16  27  	struct platform_device *dev = (struct platform_device *) vdev->opaque;
9df85aaa43297c Antonios Motakis 2015-03-16  28  
f0953dcfbb5080 Andy Shevchenko  2020-12-09 @29  	return platform_get_mem_or_io(dev, num);
9df85aaa43297c Antonios Motakis 2015-03-16  30  }
9df85aaa43297c Antonios Motakis 2015-03-16  31  

:::::: The code at line 29 was first introduced by commit
:::::: f0953dcfbb508070e806a0c53aae09cdd3cde744 vfio: platform: Switch to use platform_get_mem_or_io()

:::::: TO: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
:::::: CC: Jianping Liu <frankjpliu@tencent.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-09-27 15:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-27 15:37 [opencloudos:linux-5.4/lts/5.4.119-20.0009.spr 1598/2444] drivers/vfio/platform/vfio_platform.c:29:9: error: implicit declaration of function 'platform_get_mem_or_io' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.