2015-12-04 00:12:31

by Jim Davis

[permalink] [raw]
Subject: randconfig build error with next-20151203, in drivers/scsi/mpt3sas/mpt3sas_base.c

Building with the attached random configuration file,

warning: (SCSI_MPT2SAS) selects SCSI_MPT3SAS which has unmet direct
dependencies (SCSI_LOWLEVEL && PCI && SCSI)

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


--
Jim


Attachments:
randconfig-1449186792.txt (75.94 kB)