From: kernel test robot <lkp@intel.com>
To: Mukesh R <mrathor@linux.microsoft.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
0day robot <lkp@intel.com>
Subject: ld.lld: error: duplicate symbol: hv_build_devid_type_pci
Date: Sun, 03 May 2026 11:08:58 +0200 [thread overview]
Message-ID: <202605031145.isCXrMkx-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: 8 hours ago
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260503/202605031145.isCXrMkx-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260503/202605031145.isCXrMkx-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/202605031145.isCXrMkx-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from arch/x86/kvm/x86.c:80:
>> arch/x86/include/asm/mshyperv.h:277:5: warning: no previous prototype for function 'hv_build_devid_type_pci' [-Wmissing-prototypes]
277 | u64 hv_build_devid_type_pci(struct pci_dev *pdev) { return 0; }
| ^
arch/x86/include/asm/mshyperv.h:277:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
277 | u64 hv_build_devid_type_pci(struct pci_dev *pdev) { return 0; }
| ^
| static
1 warning generated.
--
>> ld.lld: error: duplicate symbol: hv_build_devid_type_pci
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> arch/x86/kvm/vmx/vmx.o:(hv_build_devid_type_pci)
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> arch/x86/kvm/vmx/hyperv.o:(.text+0x10)
--
>> ld.lld: error: duplicate symbol: hv_build_devid_type_pci
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> arch/x86/kvm/vmx/vmx.o:(hv_build_devid_type_pci)
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> arch/x86/kvm/vmx/main.o:(.text+0x10)
--
>> ld.lld: error: duplicate symbol: hv_build_devid_type_pci
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> arch/x86/kvm/vmx/vmx.o:(hv_build_devid_type_pci)
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> arch/x86/kvm/vmx/posted_intr.o:(.text+0x10)
--
>> ld.lld: error: duplicate symbol: hv_build_devid_type_pci
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> arch/x86/kvm/vmx/vmx.o:(hv_build_devid_type_pci)
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> arch/x86/kvm/vmx/nested.o:(.text+0x10)
--
>> ld.lld: error: duplicate symbol: hv_build_devid_type_pci
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> arch/x86/kvm/vmx/vmx.o:(hv_build_devid_type_pci)
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> arch/x86/kvm/vmx/pmu_intel.o:(.text+0x10)
--
>> ld.lld: error: duplicate symbol: hv_build_devid_type_pci
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> arch/x86/kvm/x86.o:(hv_build_devid_type_pci)
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> arch/x86/kvm/hyperv.o:(.text+0x10)
--
>> ld.lld: error: duplicate symbol: hv_build_devid_type_pci
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> ./vmx/vmx.o:(hv_build_devid_type_pci)
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> ./vmx/hyperv.o:(.text+0x10)
--
>> ld.lld: error: duplicate symbol: hv_build_devid_type_pci
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> ./vmx/vmx.o:(hv_build_devid_type_pci)
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> ./vmx/main.o:(.text+0x10)
--
>> ld.lld: error: duplicate symbol: hv_build_devid_type_pci
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> ./vmx/vmx.o:(hv_build_devid_type_pci)
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> ./vmx/posted_intr.o:(.text+0x10)
--
>> ld.lld: error: duplicate symbol: hv_build_devid_type_pci
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> ./vmx/vmx.o:(hv_build_devid_type_pci)
>>> defined at mshyperv.h:277 (arch/x86/include/asm/mshyperv.h:277)
>>> ./vmx/nested.o:(.text+0x10)
..
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-05-03 9:09 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=202605031145.isCXrMkx-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--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.