All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kaixuxia@tencent.com, frankjpliu@tencent.com, kasong@tencent.com,
	sagazchen@tencent.com, kernelxing@tencent.com,
	aurelianliu@tencent.com, deshengwu@tencent.com,
	flyingpeng@tencent.com, jingqunli@tencent.com,
	jason.zeng@intel.com, wu.zheng@intel.com, yingbao.jia@intel.com,
	pei.p.jia@intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Fri, 27 Sep 2024 23:37:00 +0800	[thread overview]
Message-ID: <202409272348.MorJkFiJ-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-09-27 15:37 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=202409272348.MorJkFiJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aurelianliu@tencent.com \
    --cc=deshengwu@tencent.com \
    --cc=flyingpeng@tencent.com \
    --cc=frankjpliu@tencent.com \
    --cc=jason.zeng@intel.com \
    --cc=jingqunli@tencent.com \
    --cc=kaixuxia@tencent.com \
    --cc=kasong@tencent.com \
    --cc=kernelxing@tencent.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pei.p.jia@intel.com \
    --cc=sagazchen@tencent.com \
    --cc=wu.zheng@intel.com \
    --cc=yingbao.jia@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 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.