tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
queue-4.19
head: 7a462d454a5354302318d17cb32da8ec0c8e1a35
commit: 763f7e59b05ade60cfafee61e37cb10b3a2a013f [201/440] PCI: Add ACS quirk for Intel
Root Complex Integrated Endpoints
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.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
git checkout 763f7e59b05ade60cfafee61e37cb10b3a2a013f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the sashal-linux-stable/queue-4.19 HEAD 7a462d454a5354302318d17cb32da8ec0c8e1a35
builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:10,
from drivers/pci/quirks.c:16:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/xtensa/include/asm/page.h:182:9: warning: comparison of unsigned expression >=
0 is always true [-Wtype-limits]
182 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) <
max_mapnr)
| ^~
include/linux/compiler.h:77:42: note: in definition of macro 'unlikely'
77 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
arch/xtensa/include/asm/page.h:190:32: note: in expansion of macro 'pfn_valid'
190 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
| ^~~~~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro
'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/xtensa/include/asm/page.h:182:9: warning: comparison of unsigned expression >=
0 is always true [-Wtype-limits]
182 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) <
max_mapnr)
| ^~
include/linux/compiler.h:77:42: note: in definition of macro 'unlikely'
77 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/dma-mapping.h:329:2: note: in expansion of macro 'BUG_ON'
329 | BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
| ^~~~~~
include/linux/dma-mapping.h:329:9: note: in expansion of macro 'pfn_valid'
329 | BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
| ^~~~~~~~~
drivers/pci/quirks.c: In function 'pci_quirk_rciep_acs':
> drivers/pci/quirks.c:4556:9: error: implicit declaration of
function 'pci_acs_ctrl_enabled'; did you mean 'pci_acs_path_enabled'?
[-Werror=implicit-function-declaration]
4556 | return
pci_acs_ctrl_enabled(acs_flags,
| ^~~~~~~~~~~~~~~~~~~~
| pci_acs_path_enabled
drivers/pci/quirks.c: In function 'quirk_switchtec_ntb_dma_alias':
drivers/pci/quirks.c:5164:32: warning: variable 'mmio_sys_info' set but not
used [-Wunused-but-set-variable]
5164 | struct sys_info_regs __iomem *mmio_sys_info;
| ^~~~~~~~~~~~~
In file included from drivers/pci/quirks.c:18:
drivers/pci/quirks.c: At top level:
drivers/pci/quirks.c:5348:25: error: 'PCI_VENDOR_ID_PERICOM' undeclared here
(not in a function); did you mean 'PCI_VENDOR_ID_MYRICOM'?
5348 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_PERICOM, 0x400e, pci_fixup_no_pme);
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/pci.h:1855:7: note: in definition of macro
'DECLARE_PCI_FIXUP_SECTION'
1855 | = { vendor, device, class, class_shift, hook };
| ^~~~~~
drivers/pci/quirks.c:5348:1: note: in expansion of macro
'DECLARE_PCI_FIXUP_FINAL'
5348 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_PERICOM, 0x400e, pci_fixup_no_pme);
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/quirks.c: In function 'quirk_netmos':
drivers/pci/quirks.c:2201:6: warning: this statement may fall through
[-Wimplicit-fallthrough=]
2201 | if (dev->subsystem_vendor == PCI_VENDOR_ID_IBM &&
| ^
drivers/pci/quirks.c:2205:2: note: here
2205 | case PCI_DEVICE_ID_NETMOS_9735:
| ^~~~
cc1: some warnings being treated as errors
vim +4556 drivers/pci/quirks.c
4545
4546 static int pci_quirk_rciep_acs(struct pci_dev *dev, u16 acs_flags)
4547 {
4548 /*
4549 * Intel RCiEP's are required to allow p2p only on translated
4550 * addresses. Refer to Intel VT-d specification, r3.1, sec 3.16,
4551 * "Root-Complex Peer to Peer Considerations".
4552 */
4553 if (pci_pcie_type(dev) != PCI_EXP_TYPE_RC_END)
4554 return -ENOTTY;
4555
4556 return pci_acs_ctrl_enabled(acs_flags,
4557 PCI_ACS_SV | PCI_ACS_RR | PCI_ACS_CR | PCI_ACS_UF);
4558 }
4559
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org