CC: [email protected]
CC: [email protected]
TO: Sean Christopherson <[email protected]>
CC: Paolo Bonzini <[email protected]>

Hi Sean,

It's probably a bug fix that unveils the link errors.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   96144c58abe7ff767e754b5b80995f7b8846d49b
commit: 09df6307125cec07ef9168f1db2ffdbbcb304b1a KVM: MIPS: Fix a build error 
due to referencing not-yet-defined function
date:   4 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 4 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/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':
drivers/ntb/ntb_transport.c:2131: undefined reference to `dma_sync_wait'
mipsel-linux-ld: drivers/ntb/ntb_transport.c:2138: undefined reference to 
`dma_release_channel'
mipsel-linux-ld: drivers/ntb/ntb_transport.c:2151: undefined reference to 
`dma_sync_wait'
mipsel-linux-ld: drivers/ntb/ntb_transport.c:2153: undefined reference to 
`dma_release_channel'
mipsel-linux-ld: drivers/ntb/ntb_transport.o: in function `ntb_async_rx_submit':
drivers/ntb/ntb_transport.c:1541: undefined reference to 
`dmaengine_get_unmap_data'
mipsel-linux-ld: drivers/ntb/ntb_transport.c:1574: undefined reference to 
`dmaengine_unmap_put'
mipsel-linux-ld: drivers/ntb/ntb_transport.c:1583: undefined reference to 
`dmaengine_unmap_put'
mipsel-linux-ld: drivers/ntb/ntb_transport.c:1585: undefined reference to 
`dmaengine_unmap_put'
mipsel-linux-ld: drivers/ntb/ntb_transport.o: in function 
`ntb_transport_create_queue':
drivers/ntb/ntb_transport.c:2093: undefined reference to `dma_release_channel'
mipsel-linux-ld: drivers/ntb/ntb_transport.c:2095: undefined reference to 
`dma_release_channel'
mipsel-linux-ld: drivers/ntb/ntb_transport.c:2019: undefined reference to 
`__dma_request_channel'
mipsel-linux-ld: drivers/ntb/ntb_transport.c:2025: undefined reference to 
`__dma_request_channel'

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=09df6307125cec07ef9168f1db2ffdbbcb304b1a
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 09df6307125cec07ef9168f1db2ffdbbcb304b1a
vim +836 drivers/mmc/host/dw_mmc.c

3fc7eaef44dbcb Shawn Lin      2015-09-16  828  
3fc7eaef44dbcb Shawn Lin      2015-09-16  829  static int 
dw_mci_edmac_init(struct dw_mci *host)
3fc7eaef44dbcb Shawn Lin      2015-09-16  830  {
3fc7eaef44dbcb Shawn Lin      2015-09-16  831   /* Request external dma channel 
*/
3fc7eaef44dbcb Shawn Lin      2015-09-16  832   host->dms = 
kzalloc(sizeof(struct dw_mci_dma_slave), GFP_KERNEL);
3fc7eaef44dbcb Shawn Lin      2015-09-16  833   if (!host->dms)
3fc7eaef44dbcb Shawn Lin      2015-09-16  834           return -ENOMEM;
3fc7eaef44dbcb Shawn Lin      2015-09-16  835  
c1fce225220dcf Peter Ujfalusi 2019-12-17 @836   host->dms->ch = 
dma_request_chan(host->dev, "rx-tx");
c1fce225220dcf Peter Ujfalusi 2019-12-17  837   if (IS_ERR(host->dms->ch)) {
c1fce225220dcf Peter Ujfalusi 2019-12-17  838           int ret = 
PTR_ERR(host->dms->ch);
c1fce225220dcf Peter Ujfalusi 2019-12-17  839  
4539d36ef2bbf2 Dan Carpenter  2015-10-22  840           dev_err(host->dev, 
"Failed to get external DMA channel.\n");
3fc7eaef44dbcb Shawn Lin      2015-09-16  841           kfree(host->dms);
3fc7eaef44dbcb Shawn Lin      2015-09-16  842           host->dms = NULL;
c1fce225220dcf Peter Ujfalusi 2019-12-17  843           return ret;
3fc7eaef44dbcb Shawn Lin      2015-09-16  844   }
3fc7eaef44dbcb Shawn Lin      2015-09-16  845  
3fc7eaef44dbcb Shawn Lin      2015-09-16  846   return 0;
3fc7eaef44dbcb Shawn Lin      2015-09-16  847  }
3fc7eaef44dbcb Shawn Lin      2015-09-16  848  

:::::: The code at line 836 was first introduced by commit
:::::: c1fce225220dcfe8ba855b2373518fed9ea3e510 mmc: dw_mmc: Use 
dma_request_chan() instead dma_request_slave_channel()

:::::: TO: Peter Ujfalusi <[email protected]>
:::::: CC: Ulf Hansson <[email protected]>

---
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