tree: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next head: 54210dc420589ed7b101a6a5edcea9d9ee651512 commit: b840c3627b6f4f856b333a14a72f8ed86da2f86c [119/125] mpt3sas: Add dummy Kconfig option for backwards compatibility config: mips-allyesconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout b840c3627b6f4f856b333a14a72f8ed86da2f86c # save the attached .config to linux build tree make.cross ARCH=mips All error/warnings (new ones prefixed by >>): drivers/scsi/mpt3sas/mpt3sas_base.c: In function 'mpt3sas_remove_dead_ioc_func': >> drivers/scsi/mpt3sas/mpt3sas_base.c:140:2: error: implicit declaration of function 'pci_stop_and_remove_bus_device_locked' [-Werror=implicit-function-declaration] pci_stop_and_remove_bus_device_locked(pdev); ^ drivers/scsi/mpt3sas/mpt3sas_base.c: In function '_base_disable_msix': >> drivers/scsi/mpt3sas/mpt3sas_base.c:1921:2: error: implicit declaration of function 'pci_disable_msix' [-Werror=implicit-function-declaration] pci_disable_msix(ioc->pdev); ^ drivers/scsi/mpt3sas/mpt3sas_base.c: In function '_base_enable_msix': >> drivers/scsi/mpt3sas/mpt3sas_base.c:1964:51: error: invalid application of 'sizeof' to incomplete type 'struct msix_entry' entries = kcalloc(ioc->reply_queue_count, sizeof(struct msix_entry), ^ >> drivers/scsi/mpt3sas/mpt3sas_base.c:1973:61: error: increment of pointer to an incomplete type 'struct msix_entry' for (i = 0, a = entries; i < ioc->reply_queue_count; i++, a++) ^ >> drivers/scsi/mpt3sas/mpt3sas_base.c:1974:4: error: dereferencing pointer to incomplete type 'struct msix_entry' a->entry = i; ^ >> drivers/scsi/mpt3sas/mpt3sas_base.c:1976:6: error: implicit declaration of function 'pci_enable_msix_exact' [-Werror=implicit-function-declaration] r = pci_enable_msix_exact(ioc->pdev, entries, ioc->reply_queue_count); ^ drivers/scsi/mpt3sas/mpt3sas_base.c:1986:61: error: increment of pointer to an incomplete type 'struct msix_entry' for (i = 0, a = entries; i < ioc->reply_queue_count; i++, a++) { ^ drivers/scsi/mpt3sas/mpt3sas_base.c: In function 'mpt3sas_base_unmap_resources': >> drivers/scsi/mpt3sas/mpt3sas_base.c:2031:6: error: implicit declaration of function 'pci_is_enabled' [-Werror=implicit-function-declaration] if (pci_is_enabled(pdev)) { ^ >> drivers/scsi/mpt3sas/mpt3sas_base.c:2032:3: error: implicit declaration of function 'pci_release_selected_regions' [-Werror=implicit-function-declaration] pci_release_selected_regions(ioc->pdev, ioc->bars); ^ drivers/scsi/mpt3sas/mpt3sas_base.c: In function 'mpt3sas_base_map_resources': >> drivers/scsi/mpt3sas/mpt3sas_base.c:2058:14: error: implicit declaration of function 'pci_select_bars' [-Werror=implicit-function-declaration] ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM); ^ >> drivers/scsi/mpt3sas/mpt3sas_base.c:2059:6: error: implicit declaration of function 'pci_enable_device_mem' [-Werror=implicit-function-declaration] if (pci_enable_device_mem(pdev)) { ^ >> drivers/scsi/mpt3sas/mpt3sas_base.c:2067:6: error: implicit declaration of function 'pci_request_selected_regions' [-Werror=implicit-function-declaration] if (pci_request_selected_regions(pdev, ioc->bars, ^ drivers/scsi/mpt3sas/mpt3sas_base.c: In function '_base_release_memory_pools': >> drivers/scsi/mpt3sas/mpt3sas_base.c:3058:3: error: implicit declaration of function 'pci_pool_free' [-Werror=implicit-function-declaration] pci_pool_free(ioc->sense_dma_pool, ioc->sense, ioc->sense_dma); ^ >> drivers/scsi/mpt3sas/mpt3sas_base.c:3060:4: error: implicit declaration of function 'pci_pool_destroy' [-Werror=implicit-function-declaration] pci_pool_destroy(ioc->sense_dma_pool); ^ drivers/scsi/mpt3sas/mpt3sas_base.c: In function '_base_allocate_memory_pools': >> drivers/scsi/mpt3sas/mpt3sas_base.c:3280:34: error: implicit declaration of function 'pci_pool_create' [-Werror=implicit-function-declaration] ioc->reply_post_free_dma_pool = pci_pool_create("reply_post_free pool", ^ >> drivers/scsi/mpt3sas/mpt3sas_base.c:3280:32: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ioc->reply_post_free_dma_pool = pci_pool_create("reply_post_free pool", ^ >> drivers/scsi/mpt3sas/mpt3sas_base.c:3291:7: error: implicit declaration of function 'pci_pool_alloc' [-Werror=implicit-function-declaration] pci_pool_alloc(ioc->reply_post_free_dma_pool, ^ drivers/scsi/mpt3sas/mpt3sas_base.c:3290:38: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ioc->reply_post[i].reply_post_free = ^ drivers/scsi/mpt3sas/mpt3sas_base.c:3410:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ioc->chain_dma_pool = pci_pool_create("chain pool", ioc->pdev, ^ drivers/scsi/mpt3sas/mpt3sas_base.c:3418:37: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ioc->chain_lookup[i].chain_buffer = pci_pool_alloc( ^ drivers/scsi/mpt3sas/mpt3sas_base.c:3463:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ioc->sense_dma_pool = pci_pool_create("sense pool", ioc->pdev, sz, 4, ^ drivers/scsi/mpt3sas/mpt3sas_base.c:3470:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ioc->sense = pci_pool_alloc(ioc->sense_dma_pool , GFP_KERNEL, ^ drivers/scsi/mpt3sas/mpt3sas_base.c:3487:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ioc->reply_dma_pool = pci_pool_create("reply pool", ioc->pdev, sz, 4, ^ drivers/scsi/mpt3sas/mpt3sas_base.c:3494:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ioc->reply = pci_pool_alloc(ioc->reply_dma_pool , GFP_KERNEL, ^ drivers/scsi/mpt3sas/mpt3sas_base.c:3513:27: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ioc->reply_free_dma_pool = pci_pool_create("reply_free pool", ^ drivers/scsi/mpt3sas/mpt3sas_base.c:3520:18: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ioc->reply_free = pci_pool_alloc(ioc->reply_free_dma_pool , GFP_KERNEL, ^ cc1: some warnings being treated as errors vim +/pci_stop_and_remove_bus_device_locked +140 drivers/scsi/mpt3sas/mpt3sas_base.c f92363d1 Sreekanth Reddy 2012-11-30 124 * @arg: input argument, used to derive ioc f92363d1 Sreekanth Reddy 2012-11-30 125 * f92363d1 Sreekanth Reddy 2012-11-30 126 * Return 0 if controller is removed from pci subsystem. f92363d1 Sreekanth Reddy 2012-11-30 127 * Return -1 for other case. f92363d1 Sreekanth Reddy 2012-11-30 128 */ f92363d1 Sreekanth Reddy 2012-11-30 129 static int mpt3sas_remove_dead_ioc_func(void *arg) f92363d1 Sreekanth Reddy 2012-11-30 130 { f92363d1 Sreekanth Reddy 2012-11-30 131 struct MPT3SAS_ADAPTER *ioc = (struct MPT3SAS_ADAPTER *)arg; f92363d1 Sreekanth Reddy 2012-11-30 132 struct pci_dev *pdev; f92363d1 Sreekanth Reddy 2012-11-30 133 f92363d1 Sreekanth Reddy 2012-11-30 134 if ((ioc == NULL)) f92363d1 Sreekanth Reddy 2012-11-30 135 return -1; f92363d1 Sreekanth Reddy 2012-11-30 136 f92363d1 Sreekanth Reddy 2012-11-30 137 pdev = ioc->pdev; f92363d1 Sreekanth Reddy 2012-11-30 138 if ((pdev == NULL)) f92363d1 Sreekanth Reddy 2012-11-30 139 return -1; 64cdb418 Rafael J. Wysocki 2014-01-10 @140 pci_stop_and_remove_bus_device_locked(pdev); f92363d1 Sreekanth Reddy 2012-11-30 141 return 0; f92363d1 Sreekanth Reddy 2012-11-30 142 } f92363d1 Sreekanth Reddy 2012-11-30 143 f92363d1 Sreekanth Reddy 2012-11-30 144 /** f92363d1 Sreekanth Reddy 2012-11-30 145 * _base_fault_reset_work - workq handling ioc fault conditions f92363d1 Sreekanth Reddy 2012-11-30 146 * @work: input argument, used to derive ioc f92363d1 Sreekanth Reddy 2012-11-30 147 * Context: sleep. f92363d1 Sreekanth Reddy 2012-11-30 148 * :::::: The code at line 140 was first introduced by commit :::::: 64cdb4181d87900c6560f8c72d02c7ccf75c9070 MPT / PCI: Use pci_stop_and_remove_bus_device_locked() :::::: TO: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx> :::::: CC: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data