tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
queue-4.14
head: 324f5f78b95b8b45dc8f35babd86861b6f35d3c3
commit: 9137510bedfa34f887d81f514d7b537d2c40ec3c [84/86] USB: pci-quirks: Add Raspberry Pi
4 quirk
config: alpha-defconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 7.5.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 9137510bedfa34f887d81f514d7b537d2c40ec3c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=alpha
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/usb/host/pci-quirks.c: In function 'quirk_usb_early_handoff':
> drivers/usb/host/pci-quirks.c:1261:9: error: implicit declaration
of function 'rpi_firmware_init_vl805'; did you mean 'rpi_firmware_get'?
[-Werror=implicit-function-declaration]
ret = rpi_firmware_init_vl805(pdev);
^~~~~~~~~~~~~~~~~~~~~~~
rpi_firmware_get
drivers/usb/host/pci-quirks.c: In function 'quirk_usb_disable_ehci':
drivers/usb/host/pci-quirks.c:963:8: warning: this statement may fall through
[-Wimplicit-fallthrough=]
cap = 0; /* then fallthrough... */
~~~~^~~
drivers/usb/host/pci-quirks.c:964:3: note: here
default:
^~~~~~~
cc1: some warnings being treated as errors
vim +1261 drivers/usb/host/pci-quirks.c
1249
1250 static void quirk_usb_early_handoff(struct pci_dev *pdev)
1251 {
1252 int ret;
1253
1254 /* Skip Netlogic mips SoC's internal PCI USB controller.
1255 * This device does not need/support EHCI/OHCI handoff
1256 */
1257 if (pdev->vendor == 0x184e) /* vendor Netlogic */
1258 return;
1259
1260 if (pdev->vendor == PCI_VENDOR_ID_VIA && pdev->device == 0x3483) {
1261 ret = rpi_firmware_init_vl805(pdev);
1262 if (ret)
{
1263 /* Firmware might be outdated, or something failed */
1264 dev_warn(&pdev->dev,
1265 "Failed to load VL805's firmware: %d. Will continue to attempt to
work, but bad things might happen. You should fix this...\n",
1266 ret);
1267 }
1268 }
1269
1270 if (pdev->class != PCI_CLASS_SERIAL_USB_UHCI &&
1271 pdev->class != PCI_CLASS_SERIAL_USB_OHCI &&
1272 pdev->class != PCI_CLASS_SERIAL_USB_EHCI &&
1273 pdev->class != PCI_CLASS_SERIAL_USB_XHCI)
1274 return;
1275
1276 if (pci_enable_device(pdev) < 0) {
1277 dev_warn(&pdev->dev,
1278 "Can't enable PCI device, BIOS handoff failed.\n");
1279 return;
1280 }
1281 if (pdev->class == PCI_CLASS_SERIAL_USB_UHCI)
1282 quirk_usb_handoff_uhci(pdev);
1283 else if (pdev->class == PCI_CLASS_SERIAL_USB_OHCI)
1284 quirk_usb_handoff_ohci(pdev);
1285 else if (pdev->class == PCI_CLASS_SERIAL_USB_EHCI)
1286 quirk_usb_disable_ehci(pdev);
1287 else if (pdev->class == PCI_CLASS_SERIAL_USB_XHCI)
1288 quirk_usb_handoff_xhci(pdev);
1289 pci_disable_device(pdev);
1290 }
1291 DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_ANY_ID, PCI_ANY_ID,
1292 PCI_CLASS_SERIAL_USB, 8, quirk_usb_early_handoff);
1293
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org