tree:
git://git.infradead.org/users/hch/misc.git dma-header-cleanups
head: 5093be553444b2cc6c459d6e9f5a4692ac0b4125
commit: 66216ba208594466fc57ef598198a7821a995ea0 [23/31] dma-mapping: split
<linux/dma-mapping.h>
config: x86_64-randconfig-a016-20200911 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git checkout 66216ba208594466fc57ef598198a7821a995ea0
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/pci/xen-pcifront.c: In function 'pcifront_connect_and_init_dma':
> drivers/pci/xen-pcifront.c:695:15: error: implicit declaration of
function 'swiotlb_nr_tbl' [-Werror=implicit-function-declaration]
695 |
if (!err && !swiotlb_nr_tbl()) {
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
git remote add hch-misc
git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc dma-header-cleanups
git checkout 66216ba208594466fc57ef598198a7821a995ea0
vim +/swiotlb_nr_tbl +695 drivers/pci/xen-pcifront.c
956a9202cd1220 Ryan Wilson 2010-08-02 674
956a9202cd1220 Ryan Wilson 2010-08-02 675 static irqreturn_t
pcifront_handler_aer(int irq, void *dev)
956a9202cd1220 Ryan Wilson 2010-08-02 676 {
956a9202cd1220 Ryan Wilson 2010-08-02 677 struct pcifront_device *pdev =
dev;
956a9202cd1220 Ryan Wilson 2010-08-02 678 schedule_pcifront_aer_op(pdev);
956a9202cd1220 Ryan Wilson 2010-08-02 679 return IRQ_HANDLED;
956a9202cd1220 Ryan Wilson 2010-08-02 680 }
3d925320e9e2de Konrad Rzeszutek Wilk 2012-07-31 681 static int
pcifront_connect_and_init_dma(struct pcifront_device *pdev)
956a9202cd1220 Ryan Wilson 2010-08-02 682 {
956a9202cd1220 Ryan Wilson 2010-08-02 683 int err = 0;
956a9202cd1220 Ryan Wilson 2010-08-02 684
956a9202cd1220 Ryan Wilson 2010-08-02 685 spin_lock(&pcifront_dev_lock);
956a9202cd1220 Ryan Wilson 2010-08-02 686
956a9202cd1220 Ryan Wilson 2010-08-02 687 if (!pcifront_dev) {
956a9202cd1220 Ryan Wilson 2010-08-02 688
dev_info(&pdev->xdev->dev, "Installing PCI frontend\n");
956a9202cd1220 Ryan Wilson 2010-08-02 689 pcifront_dev = pdev;
098b1aeaf4d614 Konrad Rzeszutek Wilk 2013-06-10 690 } else
956a9202cd1220 Ryan Wilson 2010-08-02 691 err = -EEXIST;
098b1aeaf4d614 Konrad Rzeszutek Wilk 2013-06-10 692
956a9202cd1220 Ryan Wilson 2010-08-02 693
spin_unlock(&pcifront_dev_lock);
956a9202cd1220 Ryan Wilson 2010-08-02 694
3d925320e9e2de Konrad Rzeszutek Wilk 2012-07-31 @695 if (!err &&
!swiotlb_nr_tbl()) {
3d925320e9e2de Konrad Rzeszutek Wilk 2012-07-31 696 err =
pci_xen_swiotlb_init_late();
3d925320e9e2de Konrad Rzeszutek Wilk 2012-07-31 697 if (err)
3d925320e9e2de Konrad Rzeszutek Wilk 2012-07-31 698
dev_err(&pdev->xdev->dev, "Could not setup SWIOTLB!\n");
3d925320e9e2de Konrad Rzeszutek Wilk 2012-07-31 699 }
956a9202cd1220 Ryan Wilson 2010-08-02 700 return err;
956a9202cd1220 Ryan Wilson 2010-08-02 701 }
956a9202cd1220 Ryan Wilson 2010-08-02 702
:::::: The code at line 695 was first introduced by commit
:::::: 3d925320e9e2de162bd138bf97816bda8c3f71be xen/pcifront: Use Xen-SWIOTLB when
initting if required.
:::::: TO: Konrad Rzeszutek Wilk <konrad.wilk(a)oracle.com>
:::::: CC: Konrad Rzeszutek Wilk <konrad.wilk(a)oracle.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org