CC: [email protected]
CC: [email protected]
TO: Kishon Vijay Abraham I <[email protected]>
CC: Lorenzo Pieralisi <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   96144c58abe7ff767e754b5b80995f7b8846d49b
commit: 5ebf3fc59bd20d17df3ba26159787d13cf20d362 PCI: endpoint: 
functions/pci-epf-test: Add DMA support to transfer data
date:   2 months ago
:::::: branch date: 6 hours ago
:::::: commit date: 2 months ago
config: mips-randconfig-c022-20200613 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All errors (new ones prefixed by >>, old ones prefixed by <<):

mipsel-linux-ld: drivers/pci/endpoint/functions/pci-epf-test.o: in function 
`pci_epf_test_clean_dma_chan':
>> drivers/pci/endpoint/functions/pci-epf-test.c:189: undefined reference to 
>> `dma_release_channel'
mipsel-linux-ld: drivers/pci/endpoint/functions/pci-epf-test.o: in function 
`pci_epf_test_init_dma_chan':
>> drivers/pci/endpoint/functions/pci-epf-test.c:167: undefined reference to 
>> `dma_request_chan_by_mask'
mipsel-linux-ld: drivers/tty/serial/pch_uart.o: in function `pch_free_dma':
drivers/tty/serial/pch_uart.c:674: undefined reference to `dma_release_channel'
mipsel-linux-ld: drivers/tty/serial/pch_uart.c:678: undefined reference to 
`dma_release_channel'
mipsel-linux-ld: drivers/tty/serial/pch_uart.o: in function `pch_request_dma':
drivers/tty/serial/pch_uart.c:726: undefined reference to 
`__dma_request_channel'
mipsel-linux-ld: drivers/tty/serial/pch_uart.c:740: undefined reference to 
`__dma_request_channel'
mipsel-linux-ld: drivers/tty/serial/pch_uart.c:744: undefined reference to 
`dma_release_channel'
mipsel-linux-ld: drivers/spi/spi-pxa2xx-dma.o: in function 
`dma_request_slave_channel_compat':
include/linux/dmaengine.h:1546: undefined reference to 
`dma_request_slave_channel'
mipsel-linux-ld: include/linux/dmaengine.h:1546: undefined reference to 
`dma_request_slave_channel'
mipsel-linux-ld: include/linux/dmaengine.h:1553: undefined reference to 
`__dma_request_channel'
mipsel-linux-ld: include/linux/dmaengine.h:1553: undefined reference to 
`__dma_request_channel'
mipsel-linux-ld: drivers/spi/spi-pxa2xx-dma.o: in function 
`pxa2xx_spi_dma_setup':
drivers/spi/spi-pxa2xx-dma.c:209: undefined reference to `dma_release_channel'
mipsel-linux-ld: drivers/spi/spi-pxa2xx-dma.o: in function 
`pxa2xx_spi_dma_release':
drivers/spi/spi-pxa2xx-dma.c:223: undefined reference to `dma_release_channel'
mipsel-linux-ld: drivers/spi/spi-pxa2xx-dma.c:228: undefined reference to 
`dma_release_channel'
mipsel-linux-ld: drivers/spi/spi-rockchip.o: in function `rockchip_spi_remove':
drivers/spi/spi-rockchip.c:759: undefined reference to `dma_release_channel'
mipsel-linux-ld: drivers/spi/spi-rockchip.c:761: undefined reference to 
`dma_release_channel'
mipsel-linux-ld: drivers/spi/spi-rockchip.o: in function `rockchip_spi_probe':
drivers/spi/spi-rockchip.c:691: undefined reference to `dma_request_chan'
mipsel-linux-ld: drivers/spi/spi-rockchip.c:702: undefined reference to 
`dma_request_chan'
mipsel-linux-ld: drivers/spi/spi-rockchip.c:731: undefined reference to 
`dma_release_channel'
mipsel-linux-ld: drivers/spi/spi-rockchip.c:728: undefined reference to 
`dma_release_channel'
mipsel-linux-ld: drivers/spi/spi-topcliff-pch.o: in function 
`pch_spi_release_dma':
drivers/spi/spi-topcliff-pch.c:902: undefined reference to `dma_release_channel'
mipsel-linux-ld: drivers/spi/spi-topcliff-pch.c:906: undefined reference to 
`dma_release_channel'
mipsel-linux-ld: drivers/spi/spi-topcliff-pch.o: in function 
`pch_spi_request_dma':
drivers/spi/spi-topcliff-pch.c:869: undefined reference to 
`__dma_request_channel'
mipsel-linux-ld: drivers/spi/spi-topcliff-pch.c:884: undefined reference to 
`__dma_request_channel'
mipsel-linux-ld: drivers/spi/spi-topcliff-pch.c:888: undefined reference to 
`dma_release_channel'
mipsel-linux-ld: drivers/mmc/host/dw_mmc.o: in function `dw_mci_edmac_exit':
drivers/mmc/host/dw_mmc.c:853: undefined reference to `dma_release_channel'
mipsel-linux-ld: drivers/mmc/host/dw_mmc.o: in function `dw_mci_edmac_init':
drivers/mmc/host/dw_mmc.c:836: undefined reference to `dma_request_chan'
mipsel-linux-ld: drivers/mmc/host/usdhi6rol0.o: in function 
`usdhi6_dma_release':
drivers/mmc/host/usdhi6rol0.c:521: undefined reference to `dma_release_channel'
mipsel-linux-ld: drivers/mmc/host/usdhi6rol0.c:526: undefined reference to 
`dma_release_channel'
mipsel-linux-ld: drivers/mmc/host/usdhi6rol0.o: in function 
`usdhi6_dma_request':
drivers/mmc/host/usdhi6rol0.c:679: undefined reference to `dma_request_chan'
mipsel-linux-ld: drivers/mmc/host/usdhi6rol0.c:696: undefined reference to 
`dma_request_chan'
mipsel-linux-ld: drivers/mmc/host/usdhi6rol0.c:716: undefined reference to 
`dma_release_channel'
mipsel-linux-ld: drivers/mmc/host/usdhi6rol0.c:719: undefined reference to 
`dma_release_channel'
mipsel-linux-ld: drivers/crypto/img-hash.o: in function `img_hash_remove':
drivers/crypto/img-hash.c:1063: undefined reference to `dma_release_channel'
mipsel-linux-ld: drivers/crypto/img-hash.o: in function `img_hash_dma_init':
drivers/crypto/img-hash.c:335: undefined reference to `dma_request_chan'
mipsel-linux-ld: drivers/crypto/img-hash.o: in function `img_hash_probe':
drivers/crypto/img-hash.c:1037: undefined reference to `dma_release_channel'
mipsel-linux-ld: drivers/staging/mt7621-dma/mtk-hsdma.o: in function 
`mtk_hsdma_remove':
drivers/staging/mt7621-dma/mtk-hsdma.c:742: undefined reference to 
`dma_async_device_unregister'
mipsel-linux-ld: drivers/staging/mt7621-dma/mtk-hsdma.o: in function 
`vchan_tx_prep':
drivers/dma/virt-dma.h:61: undefined reference to `dma_async_tx_descriptor_init'
mipsel-linux-ld: drivers/dma/virt-dma.h:63: undefined reference to 
`vchan_tx_submit'
mipsel-linux-ld: drivers/dma/virt-dma.h:63: undefined reference to 
`vchan_tx_submit'
mipsel-linux-ld: drivers/dma/virt-dma.h:64: undefined reference to 
`vchan_tx_desc_free'
mipsel-linux-ld: drivers/dma/virt-dma.h:64: undefined reference to 
`vchan_tx_desc_free'
mipsel-linux-ld: drivers/staging/mt7621-dma/mtk-hsdma.o: in function 
`mtk_hsdma_terminate_all':
drivers/staging/mt7621-dma/mtk-hsdma.c:297: undefined reference to 
`vchan_dma_desc_free_list'
mipsel-linux-ld: drivers/staging/mt7621-dma/mtk-hsdma.o: in function 
`vchan_free_chan_resources':
drivers/dma/virt-dma.h:199: undefined reference to `vchan_dma_desc_free_list'
mipsel-linux-ld: drivers/staging/mt7621-dma/mtk-hsdma.o: in function 
`mtk_hsdma_probe':
drivers/staging/mt7621-dma/mtk-hsdma.c:704: undefined reference to `vchan_init'
mipsel-linux-ld: drivers/staging/mt7621-dma/mtk-hsdma.c:713: undefined 
reference to `dma_async_device_register'
mipsel-linux-ld: drivers/staging/mt7621-dma/mtk-hsdma.c:731: undefined 
reference to `dma_async_device_unregister'
mipsel-linux-ld: drivers/staging/ralink-gdma/ralink-gdma.o: in function 
`gdma_dma_remove':
drivers/staging/ralink-gdma/ralink-gdma.c:899: undefined reference to 
`dma_async_device_unregister'
mipsel-linux-ld: drivers/staging/ralink-gdma/ralink-gdma.o: in function 
`gdma_dma_tx_status':
drivers/staging/ralink-gdma/ralink-gdma.c:683: undefined reference to 
`vchan_find_desc'
mipsel-linux-ld: drivers/staging/ralink-gdma/ralink-gdma.o: in function 
`gdma_dma_terminate_all':
drivers/staging/ralink-gdma/ralink-gdma.c:234: undefined reference to 
`vchan_dma_desc_free_list'
mipsel-linux-ld: drivers/staging/ralink-gdma/ralink-gdma.o: in function 
`vchan_free_chan_resources':
drivers/dma/virt-dma.h:199: undefined reference to `vchan_dma_desc_free_list'
mipsel-linux-ld: drivers/staging/ralink-gdma/ralink-gdma.o: in function 
`vchan_tx_prep':
drivers/dma/virt-dma.h:61: undefined reference to `dma_async_tx_descriptor_init'
mipsel-linux-ld: drivers/dma/virt-dma.h:63: undefined reference to 
`vchan_tx_submit'
mipsel-linux-ld: drivers/dma/virt-dma.h:63: undefined reference to 
`vchan_tx_submit'
mipsel-linux-ld: drivers/dma/virt-dma.h:64: undefined reference to 
`vchan_tx_desc_free'
mipsel-linux-ld: drivers/dma/virt-dma.h:64: undefined reference to 
`vchan_tx_desc_free'
mipsel-linux-ld: drivers/dma/virt-dma.h:61: undefined reference to 
`dma_async_tx_descriptor_init'
mipsel-linux-ld: drivers/dma/virt-dma.h:63: undefined reference to 
`vchan_tx_submit'
mipsel-linux-ld: drivers/dma/virt-dma.h:63: undefined reference to 
`vchan_tx_submit'
mipsel-linux-ld: drivers/dma/virt-dma.h:64: undefined reference to 
`vchan_tx_desc_free'
mipsel-linux-ld: drivers/dma/virt-dma.h:64: undefined reference to 
`vchan_tx_desc_free'
mipsel-linux-ld: drivers/dma/virt-dma.h:61: undefined reference to 
`dma_async_tx_descriptor_init'
mipsel-linux-ld: drivers/dma/virt-dma.h:63: undefined reference to 
`vchan_tx_submit'
mipsel-linux-ld: drivers/dma/virt-dma.h:63: undefined reference to 
`vchan_tx_submit'
mipsel-linux-ld: drivers/dma/virt-dma.h:64: undefined reference to 
`vchan_tx_desc_free'
mipsel-linux-ld: drivers/dma/virt-dma.h:64: undefined reference to 
`vchan_tx_desc_free'
mipsel-linux-ld: drivers/staging/ralink-gdma/ralink-gdma.o: in function 
`gdma_dma_probe':
drivers/staging/ralink-gdma/ralink-gdma.c:865: undefined reference to 
`vchan_init'
mipsel-linux-ld: drivers/staging/ralink-gdma/ralink-gdma.c:871: undefined 
reference to `dma_async_device_register'
mipsel-linux-ld: drivers/staging/ralink-gdma/ralink-gdma.c:889: undefined 
reference to `dma_async_device_unregister'
mipsel-linux-ld: drivers/ntb/ntb_transport.o: in function `ntb_async_tx_submit':
drivers/ntb/ntb_transport.c:1822: undefined reference to 
`dmaengine_get_unmap_data'
mipsel-linux-ld: drivers/ntb/ntb_transport.c:1847: undefined reference to 
`dmaengine_unmap_put'
mipsel-linux-ld: drivers/ntb/ntb_transport.c:1853: undefined reference to 
`dmaengine_unmap_put'
mipsel-linux-ld: drivers/ntb/ntb_transport.c:1855: undefined reference to 
`dmaengine_unmap_put'
mipsel-linux-ld: drivers/ntb/ntb_transport.o: in function 
`ntb_transport_free_queue':

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5ebf3fc59bd20d17df3ba26159787d13cf20d362
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 5ebf3fc59bd20d17df3ba26159787d13cf20d362
vim +189 drivers/pci/endpoint/functions/pci-epf-test.c

5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  149  
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  150  /**
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  151   * 
pci_epf_test_init_dma_chan() - Function to initialize EPF test DMA channel
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  152   * @epf_test: the EPF 
test device that performs data transfer operation
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  153   *
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  154   * Function to 
initialize EPF test DMA channel.
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  155   */
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  156  static int 
pci_epf_test_init_dma_chan(struct pci_epf_test *epf_test)
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  157  {
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  158   struct pci_epf *epf = 
epf_test->epf;
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  159   struct device *dev = 
&epf->dev;
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  160   struct dma_chan 
*dma_chan;
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  161   dma_cap_mask_t mask;
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  162   int ret;
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  163  
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  164   dma_cap_zero(mask);
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  165   dma_cap_set(DMA_MEMCPY, 
mask);
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  166  
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16 @167   dma_chan = 
dma_request_chan_by_mask(&mask);
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  168   if (IS_ERR(dma_chan)) {
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  169           ret = 
PTR_ERR(dma_chan);
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  170           if (ret != 
-EPROBE_DEFER)
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  171                   
dev_err(dev, "Failed to get DMA channel\n");
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  172           return ret;
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  173   }
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  174   
init_completion(&epf_test->transfer_complete);
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  175  
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  176   epf_test->dma_chan = 
dma_chan;
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  177  
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  178   return 0;
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  179  }
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  180  
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  181  /**
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  182   * 
pci_epf_test_clean_dma_chan() - Function to cleanup EPF test DMA channel
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  183   * @epf: the EPF test 
device that performs data transfer operation
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  184   *
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  185   * Helper to cleanup EPF 
test DMA channel.
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  186   */
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  187  static void 
pci_epf_test_clean_dma_chan(struct pci_epf_test *epf_test)
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  188  {
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16 @189   
dma_release_channel(epf_test->dma_chan);
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  190   epf_test->dma_chan = 
NULL;
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  191  }
5ebf3fc59bd20d Kishon Vijay Abraham I 2020-03-16  192  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to