tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-linus head: 22449df3017d056abde1a1366abe6bb6a3e87751 commit: 22449df3017d056abde1a1366abe6bb6a3e87751 [18/18] sh: Always enable CONFIG_GENERIC_PCI_IOMAP config: sh-allyesconfig (attached as .config) compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.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 22449df3017d056abde1a1366abe6bb6a3e87751 # save the attached .config to linux build tree GCC_VERSION=7.2.0 make.cross ARCH=sh
All errors (new ones prefixed by >>):
drivers/net//ethernet/via/via-rhine.c: In function 'rhine_init_one_pci':
drivers/net//ethernet/via/via-rhine.c:1118:2: error: implicit declaration of function 'pci_iounmap'; did you mean 'pcim_iounmap'? [-Werror=implicit-function-declaration]
pci_iounmap(pdev, ioaddr); ^~~~~~~~~~~ pcim_iounmap drivers/net//ethernet/via/via-rhine.c: In function 'rhine_remove_one_platform': drivers/net//ethernet/via/via-rhine.c:2467:24: warning: unused variable 'rp' [-Wunused-variable] struct rhine_private *rp = netdev_priv(dev); ^~ cc1: some warnings being treated as errors
vim +1118 drivers/net//ethernet/via/via-rhine.c
2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1060 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1061 rc = pci_enable_device(pdev); 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1062 if (rc) 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1063 goto err_out; 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1064 ca8b6e04b drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-30 1065 if (pdev->revision < VTunknown0) { 5b579e212 drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-05-03 1066 quirks |= rqRhineI; ca8b6e04b drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-30 1067 } else if (pdev->revision >= VT6102) { 5b579e212 drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-05-03 1068 quirks |= rqWOL | rqForceReset; ca8b6e04b drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-30 1069 if (pdev->revision < VT6105) { ca8b6e04b drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-30 1070 quirks |= rqStatusWBRace; ca8b6e04b drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-30 1071 } else { ca8b6e04b drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-30 1072 quirks |= rqIntPHY; ca8b6e04b drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-30 1073 if (pdev->revision >= VT6105_B0) ca8b6e04b drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-30 1074 quirks |= rq6patterns; ca8b6e04b drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-30 1075 if (pdev->revision >= VT6105M) ca8b6e04b drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-30 1076 quirks |= rqMgmt; ca8b6e04b drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-30 1077 } ca8b6e04b drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-30 1078 } ca8b6e04b drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-30 1079 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1080 /* sanity check */ 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1081 if ((pci_resource_len(pdev, 0) < io_size) || 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1082 (pci_resource_len(pdev, 1) < io_size)) { 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1083 rc = -EIO; 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1084 dev_err(hwdev, "Insufficient PCI resources, aborting\n"); 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1085 goto err_out_pci_disable; 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1086 } 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1087 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1088 pioaddr = pci_resource_start(pdev, 0); 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1089 memaddr = pci_resource_start(pdev, 1); 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1090 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1091 pci_set_master(pdev); 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1092 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1093 rc = pci_request_regions(pdev, DRV_NAME); 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1094 if (rc) 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1095 goto err_out_pci_disable; 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1096 5b579e212 drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-05-03 1097 ioaddr = pci_iomap(pdev, (quirks & rqNeedEnMMIO ? 1 : 0), io_size); 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1098 if (!ioaddr) { 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1099 rc = -EIO; 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1100 dev_err(hwdev, 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1101 "ioremap failed for device %s, region 0x%X @ 0x%lX\n", 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1102 dev_name(hwdev), io_size, memaddr); 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1103 goto err_out_free_res; 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1104 } 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1105 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1106 enable_mmio(pioaddr, quirks); 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1107 5b579e212 drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-05-03 1108 rc = verify_mmio(hwdev, pioaddr, ioaddr, quirks); 5b579e212 drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-05-03 1109 if (rc) 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1110 goto err_out_unmap; 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1111 ca8b6e04b drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-30 1112 rc = rhine_init_one_common(&pdev->dev, quirks, 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1113 pioaddr, ioaddr, pdev->irq); 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1114 if (!rc) 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1115 return 0; 2d283862d drivers/net/ethernet/via/via-rhine.c Alexey Charkov 2014-04-22 1116 ^1da177e4 drivers/net/via-rhine.c Linus Torvalds 2005-04-16 1117 err_out_unmap: ^1da177e4 drivers/net/via-rhine.c Linus Torvalds 2005-04-16 @1118 pci_iounmap(pdev, ioaddr); ^1da177e4 drivers/net/via-rhine.c Linus Torvalds 2005-04-16 1119 err_out_free_res: ^1da177e4 drivers/net/via-rhine.c Linus Torvalds 2005-04-16 1120 pci_release_regions(pdev); ae996154f drivers/net/ethernet/via/via-rhine.c Roger Luethi 2014-03-18 1121 err_out_pci_disable: ae996154f drivers/net/ethernet/via/via-rhine.c Roger Luethi 2014-03-18 1122 pci_disable_device(pdev); ^1da177e4 drivers/net/via-rhine.c Linus Torvalds 2005-04-16 1123 err_out: ^1da177e4 drivers/net/via-rhine.c Linus Torvalds 2005-04-16 1124 return rc; ^1da177e4 drivers/net/via-rhine.c Linus Torvalds 2005-04-16 1125 } ^1da177e4 drivers/net/via-rhine.c Linus Torvalds 2005-04-16 1126
:::::: The code at line 1118 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds torvalds@ppc970.osdl.org :::::: CC: Linus Torvalds torvalds@ppc970.osdl.org
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation