[boqun:dev/arm64 1/3] drivers/pci/controller/pci-hyperv.c:769:13: error: 'hv_set_msi_entry_from_desc' defined but not used

From: kernel test robot
Date: Sun Feb 13 2022 - 17:02:21 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git dev/arm64
head: 715cdf131dd8fcb33591dc7143d193050368ecc1
commit: 39649970d5e2d161268189e1dcb9b3cb7a6ee03b [1/3] PCI: hv: Avoid the retarget interrupt hypercall in irq_unmask() on ARM64
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220214/202202140532.7tKzn8ca-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git/commit/?id=39649970d5e2d161268189e1dcb9b3cb7a6ee03b
git remote add boqun https://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git
git fetch --no-tags boqun dev/arm64
git checkout 39649970d5e2d161268189e1dcb9b3cb7a6ee03b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/ drivers/pci/ kernel//

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/pci/controller/pci-hyperv.c:769:13: error: 'hv_set_msi_entry_from_desc' defined but not used [-Werror=unused-function]
769 | static void hv_set_msi_entry_from_desc(union hv_msi_entry *msi_entry,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors


vim +/hv_set_msi_entry_from_desc +769 drivers/pci/controller/pci-hyperv.c

d9932b46915664 Sunil Muthuswamy 2022-01-05 768
d9932b46915664 Sunil Muthuswamy 2022-01-05 @769 static void hv_set_msi_entry_from_desc(union hv_msi_entry *msi_entry,
d9932b46915664 Sunil Muthuswamy 2022-01-05 770 struct msi_desc *msi_desc)
d9932b46915664 Sunil Muthuswamy 2022-01-05 771 {
d9932b46915664 Sunil Muthuswamy 2022-01-05 772 msi_entry->address = ((u64)msi_desc->msg.address_hi << 32) |
d9932b46915664 Sunil Muthuswamy 2022-01-05 773 msi_desc->msg.address_lo;
d9932b46915664 Sunil Muthuswamy 2022-01-05 774 msi_entry->data = msi_desc->msg.data;
d9932b46915664 Sunil Muthuswamy 2022-01-05 775 }
d9932b46915664 Sunil Muthuswamy 2022-01-05 776

:::::: The code at line 769 was first introduced by commit
:::::: d9932b46915664c88709d59927fa67e797adec56 PCI: hv: Add arm64 Hyper-V vPCI support

:::::: TO: Sunil Muthuswamy <sunilmut@xxxxxxxxxxxxx>
:::::: CC: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx