* [linux-next:master 3951/5720] drivers/pci/endpoint/functions/pci-epf-vntb.c:1247: undefined reference to `ntb_register_device'
@ 2022-06-25 21:42 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-06-25 21:42 UTC (permalink / raw)
To: Frank Li; +Cc: kbuild-all, Linux Memory Management List, Jon Mason
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 2f9cb3d3bd73fc2225d66aa8fcffb632ed3eb235
commit: ff32fac00d97661c715ee47bbfd867cae1f3aaf8 [3951/5720] NTB: EPF: support NTB transfer between PCI RC and EP connection
config: parisc-randconfig-c003-20220626
compiler: hppa-linux-gcc (GCC) 11.3.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/next/linux-next.git/commit/?id=ff32fac00d97661c715ee47bbfd867cae1f3aaf8
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout ff32fac00d97661c715ee47bbfd867cae1f3aaf8
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=parisc 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 >>):
hppa-linux-ld: drivers/pci/endpoint/functions/pci-epf-vntb.o: in function `pci_vntb_probe':
>> drivers/pci/endpoint/functions/pci-epf-vntb.c:1247: undefined reference to `ntb_register_device'
hppa-linux-ld: drivers/pci/endpoint/functions/pci-epf-vntb.o: in function `epf_ntb_cmd_handler':
>> drivers/pci/endpoint/functions/pci-epf-vntb.c:262: undefined reference to `ntb_db_event'
hppa-linux-ld: drivers/pci/endpoint/functions/pci-epf-vntb.o: in function `epf_ntb_link_up':
>> drivers/pci/endpoint/functions/pci-epf-vntb.c:174: undefined reference to `ntb_link_event'
vim +1247 drivers/pci/endpoint/functions/pci-epf-vntb.c
1230
1231 static int pci_vntb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1232 {
1233 int ret;
1234 struct epf_ntb *ndev = (struct epf_ntb *)pdev->sysdata;
1235 struct device *dev = &pdev->dev;
1236
1237 ndev->ntb.pdev = pdev;
1238 ndev->ntb.topo = NTB_TOPO_NONE;
1239 ndev->ntb.ops = &vntb_epf_ops;
1240
1241 ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
1242 if (ret) {
1243 dev_err(dev, "Cannot set DMA mask\n");
1244 return -1;
1245 }
1246
> 1247 ret = ntb_register_device(&ndev->ntb);
1248 if (ret) {
1249 dev_err(dev, "Failed to register NTB device\n");
1250 goto err_register_dev;
1251 }
1252
1253 dev_info(dev, "PCI Virtual NTB driver loaded\n");
1254 return 0;
1255
1256 err_register_dev:
1257 return -1;
1258 }
1259
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-25 21:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-25 21:42 [linux-next:master 3951/5720] drivers/pci/endpoint/functions/pci-epf-vntb.c:1247: undefined reference to `ntb_register_device' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox