tree:
https://github.com/0day-ci/linux/commits/UPDATE-20191127-073645/James-Sew...
head: d9604ccbe460b68657fafe31b7fbdf11a96c38b7
commit: d9604ccbe460b68657fafe31b7fbdf11a96c38b7 [1/1] PCI: Add DMA alias quirk for PLX
PEX NTB
config: riscv-defconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 7.4.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d9604ccbe460b68657fafe31b7fbdf11a96c38b7
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers//pci/quirks.c: In function 'quirk_plx_ntb_dma_alias':
> drivers//pci/quirks.c:5387:2: error: implicit declaration of
function 'pci_add_dma_alias_range'; did you mean 'pci_add_dma_alias'?
[-Werror=implicit-function-declaration]
pci_add_dma_alias_range(pdev, 0, 256);
^~~~~~~~~~~~~~~~~~~~~~~
pci_add_dma_alias
cc1: some warnings being treated as errors
vim +5387 drivers//pci/quirks.c
5376
5377 /*
5378 * PLX NTB uses devfn proxy IDs to move TLPs between NT endpoints. These IDs
5379 * are used to forward responses to the originator on the other side of the
5380 * NTB. Alias all possible IDs to the NTB to permit access when the IOMMU is
5381 * turned on.
5382 */
5383 static void quirk_plx_ntb_dma_alias(struct pci_dev *pdev)
5384 {
5385 pci_info(pdev, "Setting PLX NTB proxy ID aliases\n");
5386 /* PLX NTB may use all 256 devfns */
5387 pci_add_dma_alias_range(pdev, 0, 256);
5388 }
5389 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_PLX, 0x87b0, quirk_plx_ntb_dma_alias);
5390 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_PLX, 0x87b1, quirk_plx_ntb_dma_alias);
5391
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation