Re: [PATCH v5 9/9] PCI: endpoint: Add PCI Endpoint function driver for MHI bus

From: kernel test robot
Date: Fri Jun 02 2023 - 01:18:20 EST


Hi Manivannan,

kernel test robot noticed the following build warnings:

[auto build test WARNING on pci/next]
[also build test WARNING on pci/for-linus jonmason-ntb/ntb-next linus/master v6.4-rc4 next-20230601]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Manivannan-Sadhasivam/MAINTAINERS-Add-entry-for-MHI-networking-drivers-under-MHI-bus/20230601-232444
base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next
patch link: https://lore.kernel.org/r/20230601145718.12204-10-manivannan.sadhasivam%40linaro.org
patch subject: [PATCH v5 9/9] PCI: endpoint: Add PCI Endpoint function driver for MHI bus
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230602/202306021200.ndNlhtdv-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/b6931b37d070b86af64eeb92c1d52b4a0c6d61e8
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Manivannan-Sadhasivam/MAINTAINERS-Add-entry-for-MHI-networking-drivers-under-MHI-bus/20230601-232444
git checkout b6931b37d070b86af64eeb92c1d52b4a0c6d61e8
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 olddefconfig
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/pci/endpoint/functions/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306021200.ndNlhtdv-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

drivers/pci/endpoint/functions/pci-epf-mhi.c: In function 'pci_epf_mhi_link_down':
>> drivers/pci/endpoint/functions/pci-epf-mhi.c:307:43: warning: unused variable 'info' [-Wunused-variable]
307 | const struct pci_epf_mhi_ep_info *info = epf_mhi->info;
| ^~~~
drivers/pci/endpoint/functions/pci-epf-mhi.c: In function 'pci_epf_mhi_bme':
drivers/pci/endpoint/functions/pci-epf-mhi.c:321:43: warning: unused variable 'info' [-Wunused-variable]
321 | const struct pci_epf_mhi_ep_info *info = epf_mhi->info;
| ^~~~


vim +/info +307 drivers/pci/endpoint/functions/pci-epf-mhi.c

303
304 static int pci_epf_mhi_link_down(struct pci_epf *epf)
305 {
306 struct pci_epf_mhi *epf_mhi = epf_get_drvdata(epf);
> 307 const struct pci_epf_mhi_ep_info *info = epf_mhi->info;
308 struct mhi_ep_cntrl *mhi_cntrl = &epf_mhi->mhi_cntrl;
309
310 if (mhi_cntrl->mhi_dev) {
311 mhi_ep_power_down(mhi_cntrl);
312 mhi_ep_unregister_controller(mhi_cntrl);
313 }
314
315 return 0;
316 }
317

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki