public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Matthew Rosato <mjrosato@linux.ibm.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Christian Borntraeger <borntraeger@linux.ibm.com>,
	Pierre Morel <pmorel@linux.ibm.com>
Subject: drivers/vfio/pci/vfio_pci_zdev.c:151: undefined reference to `kvm_s390_pci_register_kvm'
Date: Fri, 12 Aug 2022 09:34:30 +0800	[thread overview]
Message-ID: <202208120916.loN3Qrx7-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7ebfc85e2cd7b08f518b526173e9a33b56b3913b
commit: 8061d1c31f1a018281bc9877ecce44bfc779e21d vfio-pci/zdev: add open/close device hooks
date:   5 weeks ago
config: s390-randconfig-s042-20220811 (https://download.01.org/0day-ci/archive/20220812/202208120916.loN3Qrx7-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 12.1.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8061d1c31f1a018281bc9877ecce44bfc779e21d
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 8061d1c31f1a018281bc9877ecce44bfc779e21d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=s390 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   s390-linux-ld: drivers/vfio/pci/vfio_pci_zdev.o: in function `vfio_pci_zdev_open_device':
>> drivers/vfio/pci/vfio_pci_zdev.c:151: undefined reference to `kvm_s390_pci_register_kvm'
   s390-linux-ld: drivers/vfio/pci/vfio_pci_zdev.o: in function `vfio_pci_zdev_close_device':
>> drivers/vfio/pci/vfio_pci_zdev.c:161: undefined reference to `kvm_s390_pci_unregister_kvm'


vim +151 drivers/vfio/pci/vfio_pci_zdev.c

   140	
   141	int vfio_pci_zdev_open_device(struct vfio_pci_core_device *vdev)
   142	{
   143		struct zpci_dev *zdev = to_zpci(vdev->pdev);
   144	
   145		if (!zdev)
   146			return -ENODEV;
   147	
   148		if (!vdev->vdev.kvm)
   149			return 0;
   150	
 > 151		return kvm_s390_pci_register_kvm(zdev, vdev->vdev.kvm);
   152	}
   153	
   154	void vfio_pci_zdev_close_device(struct vfio_pci_core_device *vdev)
   155	{
   156		struct zpci_dev *zdev = to_zpci(vdev->pdev);
   157	
   158		if (!zdev || !vdev->vdev.kvm)
   159			return;
   160	
 > 161		kvm_s390_pci_unregister_kvm(zdev);

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-08-12  1:35 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=202208120916.loN3Qrx7-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjrosato@linux.ibm.com \
    --cc=pmorel@linux.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox