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: openrisc-allmodconfig (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=openrisc 

All errors (new ones prefixed by >>):

   drivers/scsi/mpt3sas/mpt3sas_transport.c: In function 
'_transport_expander_report_manufacture':
   drivers/scsi/mpt3sas/mpt3sas_transport.c:363:2: error: implicit declaration 
of function 'pci_alloc_consistent'
   drivers/scsi/mpt3sas/mpt3sas_transport.c:363:11: warning: assignment makes 
pointer from integer without a cast
   drivers/scsi/mpt3sas/mpt3sas_transport.c:454:3: error: implicit declaration 
of function 'pci_free_consistent'
   drivers/scsi/mpt3sas/mpt3sas_transport.c: In function 
'_transport_get_expander_phy_error_log':
   drivers/scsi/mpt3sas/mpt3sas_transport.c:1162:11: warning: assignment makes 
pointer from integer without a cast
   drivers/scsi/mpt3sas/mpt3sas_transport.c: In function 
'_transport_expander_phy_control':
   drivers/scsi/mpt3sas/mpt3sas_transport.c:1477:11: warning: assignment makes 
pointer from integer without a cast
   drivers/scsi/mpt3sas/mpt3sas_transport.c: In function 
'_transport_smp_handler':
   drivers/scsi/mpt3sas/mpt3sas_transport.c:1955:16: warning: assignment makes 
pointer from integer without a cast
   drivers/scsi/mpt3sas/mpt3sas_transport.c:1971:3: error: implicit declaration 
of function 'pci_map_single'
>> drivers/scsi/mpt3sas/mpt3sas_transport.c:1973:3: error: implicit declaration 
>> of function 'pci_dma_mapping_error'
   drivers/scsi/mpt3sas/mpt3sas_transport.c:1984:15: warning: assignment makes 
pointer from integer without a cast
   drivers/scsi/mpt3sas/mpt3sas_transport.c:2123:3: error: implicit declaration 
of function 'pci_unmap_single'

vim +/pci_dma_mapping_error +1973 drivers/scsi/mpt3sas/mpt3sas_transport.c

f92363d1 Sreekanth Reddy 2012-11-30  1957               if (!pci_addr_out) {
f92363d1 Sreekanth Reddy 2012-11-30  1958                       
pr_info(MPT3SAS_FMT "%s(): PCI Addr out = NULL\n",
f92363d1 Sreekanth Reddy 2012-11-30  1959                           ioc->name, 
__func__);
f92363d1 Sreekanth Reddy 2012-11-30  1960                       rc = -ENOMEM;
f92363d1 Sreekanth Reddy 2012-11-30  1961                       goto out;
f92363d1 Sreekanth Reddy 2012-11-30  1962               }
f92363d1 Sreekanth Reddy 2012-11-30  1963  
7988613b Kent Overstreet 2013-11-23  1964               
bio_for_each_segment(bvec, req->bio, iter) {
f92363d1 Sreekanth Reddy 2012-11-30  1965                       
memcpy(pci_addr_out + offset,
7988613b Kent Overstreet 2013-11-23  1966                           
page_address(bvec.bv_page) + bvec.bv_offset,
7988613b Kent Overstreet 2013-11-23  1967                           
bvec.bv_len);
7988613b Kent Overstreet 2013-11-23  1968                       offset += 
bvec.bv_len;
f92363d1 Sreekanth Reddy 2012-11-30  1969               }
f92363d1 Sreekanth Reddy 2012-11-30  1970       } else {
f92363d1 Sreekanth Reddy 2012-11-30  1971               dma_addr_out = 
pci_map_single(ioc->pdev, bio_data(req->bio),
f92363d1 Sreekanth Reddy 2012-11-30  1972                   blk_rq_bytes(req), 
PCI_DMA_BIDIRECTIONAL);
36814028 Sreekanth Reddy 2015-06-30 @1973               if 
(pci_dma_mapping_error(ioc->pdev, dma_addr_out)) {
f92363d1 Sreekanth Reddy 2012-11-30  1974                       
pr_info(MPT3SAS_FMT "%s(): DMA Addr out = NULL\n",
f92363d1 Sreekanth Reddy 2012-11-30  1975                           ioc->name, 
__func__);
f92363d1 Sreekanth Reddy 2012-11-30  1976                       rc = -ENOMEM;
f92363d1 Sreekanth Reddy 2012-11-30  1977                       goto free_pci;
f92363d1 Sreekanth Reddy 2012-11-30  1978               }
f92363d1 Sreekanth Reddy 2012-11-30  1979       }
f92363d1 Sreekanth Reddy 2012-11-30  1980  
f92363d1 Sreekanth Reddy 2012-11-30  1981       /* Check if the response needs 
to be populated across

:::::: The code at line 1973 was first introduced by commit
:::::: 36814028ad720165a6febcf9ddd7de20833fd240 mpt3sas: Call 
dma_mapping_error() API after mapping an address with dma_map_single() API

:::::: TO: Sreekanth Reddy <sreekanth.re...@avagotech.com>
:::::: CC: James Bottomley <jbottom...@odin.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data

Reply via email to