From: kernel test robot <lkp@intel.com>
To: Mukesh R <mrathor@linux.microsoft.com>
Cc: oe-kbuild-all@lists.linux.dev, 0day robot <lkp@intel.com>
Subject: arch/x86/include/asm/mshyperv.h:277: multiple definition of `hv_build_devid_type_pci'; arch/x86/kvm/vmx/vmx.o:arch/x86/include/asm/mshyperv.h:277: first defined here
Date: Sun, 03 May 2026 12:40:06 +0200 [thread overview]
Message-ID: <202605031213.PRvyoCZS-lkp@intel.com> (raw)
tree: https://github.com/intel-lab-lkp/linux/commits/Mukesh-R/iommu-hyperv-rename-hyperv-iommu-c-to-hyperv-irq-c/20260503-090312
head: f5351a96a6b1fd376b752c66714c4ae3b7598e18
commit: 28dd2164538308ef48df1f61c05c3cd1f6296c5f PCI: hv: Build device id for a VMBus device, export PCI devid function
date: 10 hours ago
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260503/202605031213.PRvyoCZS-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260503/202605031213.PRvyoCZS-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/202605031213.PRvyoCZS-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from arch/x86/kernel/cpu/mshyperv.c:23:
>> arch/x86/include/asm/mshyperv.h:277:5: warning: no previous prototype for 'hv_build_devid_type_pci' [-Wmissing-prototypes]
277 | u64 hv_build_devid_type_pci(struct pci_dev *pdev) { return 0; }
| ^~~~~~~~~~~~~~~~~~~~~~~
--
ld: arch/x86/kvm/vmx/pmu_intel.o: in function `hv_build_devid_type_pci':
>> arch/x86/include/asm/mshyperv.h:277: multiple definition of `hv_build_devid_type_pci'; arch/x86/kvm/vmx/vmx.o:arch/x86/include/asm/mshyperv.h:277: first defined here
ld: arch/x86/kvm/vmx/nested.o: in function `hv_build_devid_type_pci':
>> arch/x86/include/asm/mshyperv.h:277: multiple definition of `hv_build_devid_type_pci'; arch/x86/kvm/vmx/vmx.o:arch/x86/include/asm/mshyperv.h:277: first defined here
ld: arch/x86/kvm/vmx/posted_intr.o: in function `hv_build_devid_type_pci':
>> arch/x86/include/asm/mshyperv.h:277: multiple definition of `hv_build_devid_type_pci'; arch/x86/kvm/vmx/vmx.o:arch/x86/include/asm/mshyperv.h:277: first defined here
ld: arch/x86/kvm/vmx/main.o: in function `hv_build_devid_type_pci':
>> arch/x86/include/asm/mshyperv.h:277: multiple definition of `hv_build_devid_type_pci'; arch/x86/kvm/vmx/vmx.o:arch/x86/include/asm/mshyperv.h:277: first defined here
ld: arch/x86/kvm/vmx/sgx.o: in function `hv_build_devid_type_pci':
>> arch/x86/include/asm/mshyperv.h:277: multiple definition of `hv_build_devid_type_pci'; arch/x86/kvm/vmx/vmx.o:arch/x86/include/asm/mshyperv.h:277: first defined here
ld: arch/x86/kvm/vmx/hyperv.o: in function `hv_build_devid_type_pci':
>> arch/x86/include/asm/mshyperv.h:277: multiple definition of `hv_build_devid_type_pci'; arch/x86/kvm/vmx/vmx.o:arch/x86/include/asm/mshyperv.h:277: first defined here
--
ld: arch/x86/kvm/hyperv.o: in function `hv_build_devid_type_pci':
>> arch/x86/include/asm/mshyperv.h:277: multiple definition of `hv_build_devid_type_pci'; arch/x86/kvm/x86.o:arch/x86/include/asm/mshyperv.h:277: first defined here
--
ld: arch/x86/kvm/svm/nested.o: in function `hv_build_devid_type_pci':
>> arch/x86/include/asm/mshyperv.h:277: multiple definition of `hv_build_devid_type_pci'; arch/x86/kvm/svm/svm.o:arch/x86/include/asm/mshyperv.h:277: first defined here
ld: arch/x86/kvm/svm/hyperv.o: in function `hv_build_devid_type_pci':
>> arch/x86/include/asm/mshyperv.h:277: multiple definition of `hv_build_devid_type_pci'; arch/x86/kvm/svm/svm.o:arch/x86/include/asm/mshyperv.h:277: first defined here
vim +277 arch/x86/include/asm/mshyperv.h
273
274 #if IS_ENABLED(CONFIG_HYPERV_IOMMU)
275 u64 hv_build_devid_type_pci(struct pci_dev *pdev);
276 #else
> 277 u64 hv_build_devid_type_pci(struct pci_dev *pdev) { return 0; }
278 #endif /* IS_ENABLED(CONFIG_HYPERV_IOMMU) */
279
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-05-03 10:40 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=202605031213.PRvyoCZS-lkp@intel.com \
--to=lkp@intel.com \
--cc=mrathor@linux.microsoft.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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.