CC: [email protected] CC: [email protected] TO: Chunyan Zhang <[email protected]> CC: "Greg Kroah-Hartman" <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 96144c58abe7ff767e754b5b80995f7b8846d49b commit: 7ba87cfec71a21d195f08675a7e8603bf461ee32 tty: serial: make SERIAL_SPRD not depend on ARCH_SPRD date: 3 months ago :::::: branch date: 4 hours ago :::::: commit date: 3 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/tty/serial/sprd_serial.o: in function `sprd_release_dma': >> drivers/tty/serial/sprd_serial.c:486: undefined reference to >> `dma_release_channel' >> mipsel-linux-ld: drivers/tty/serial/sprd_serial.c:489: undefined reference >> to `dma_release_channel' mipsel-linux-ld: drivers/tty/serial/sprd_serial.o: in function `sprd_request_dma': >> drivers/tty/serial/sprd_serial.c:503: undefined reference to >> `dma_request_chan' >> mipsel-linux-ld: drivers/tty/serial/sprd_serial.c:510: undefined reference >> to `dma_request_chan' mipsel-linux-ld: drivers/tty/serial/sprd_serial.o: in function `sprd_uart_dma_startup': drivers/tty/serial/sprd_serial.c:705: 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': # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7ba87cfec71a21d195f08675a7e8603bf461ee32 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git remote update linus git checkout 7ba87cfec71a21d195f08675a7e8603bf461ee32 vim +486 drivers/tty/serial/sprd_serial.c f4487db58eb780 Lanqing Liu 2019-03-04 477 f4487db58eb780 Lanqing Liu 2019-03-04 478 static void sprd_release_dma(struct uart_port *port) f4487db58eb780 Lanqing Liu 2019-03-04 479 { f4487db58eb780 Lanqing Liu 2019-03-04 480 struct sprd_uart_port *sp = f4487db58eb780 Lanqing Liu 2019-03-04 481 container_of(port, struct sprd_uart_port, port); f4487db58eb780 Lanqing Liu 2019-03-04 482 f4487db58eb780 Lanqing Liu 2019-03-04 483 sprd_uart_dma_enable(port, false); f4487db58eb780 Lanqing Liu 2019-03-04 484 f4487db58eb780 Lanqing Liu 2019-03-04 485 if (sp->rx_dma.enable) f4487db58eb780 Lanqing Liu 2019-03-04 @486 dma_release_channel(sp->rx_dma.chn); f4487db58eb780 Lanqing Liu 2019-03-04 487 f4487db58eb780 Lanqing Liu 2019-03-04 488 if (sp->tx_dma.enable) f4487db58eb780 Lanqing Liu 2019-03-04 @489 dma_release_channel(sp->tx_dma.chn); f4487db58eb780 Lanqing Liu 2019-03-04 490 f4487db58eb780 Lanqing Liu 2019-03-04 491 sp->tx_dma.enable = false; f4487db58eb780 Lanqing Liu 2019-03-04 492 sp->rx_dma.enable = false; f4487db58eb780 Lanqing Liu 2019-03-04 493 } f4487db58eb780 Lanqing Liu 2019-03-04 494 f4487db58eb780 Lanqing Liu 2019-03-04 495 static void sprd_request_dma(struct uart_port *port) f4487db58eb780 Lanqing Liu 2019-03-04 496 { f4487db58eb780 Lanqing Liu 2019-03-04 497 struct sprd_uart_port *sp = f4487db58eb780 Lanqing Liu 2019-03-04 498 container_of(port, struct sprd_uart_port, port); f4487db58eb780 Lanqing Liu 2019-03-04 499 f4487db58eb780 Lanqing Liu 2019-03-04 500 sp->tx_dma.enable = true; f4487db58eb780 Lanqing Liu 2019-03-04 501 sp->rx_dma.enable = true; f4487db58eb780 Lanqing Liu 2019-03-04 502 f4487db58eb780 Lanqing Liu 2019-03-04 @503 sp->tx_dma.chn = dma_request_chan(port->dev, "tx"); f4487db58eb780 Lanqing Liu 2019-03-04 504 if (IS_ERR(sp->tx_dma.chn)) { f4487db58eb780 Lanqing Liu 2019-03-04 505 dev_err(port->dev, "request TX DMA channel failed, ret = %ld\n", f4487db58eb780 Lanqing Liu 2019-03-04 506 PTR_ERR(sp->tx_dma.chn)); f4487db58eb780 Lanqing Liu 2019-03-04 507 sp->tx_dma.enable = false; f4487db58eb780 Lanqing Liu 2019-03-04 508 } f4487db58eb780 Lanqing Liu 2019-03-04 509 f4487db58eb780 Lanqing Liu 2019-03-04 @510 sp->rx_dma.chn = dma_request_chan(port->dev, "rx"); f4487db58eb780 Lanqing Liu 2019-03-04 511 if (IS_ERR(sp->rx_dma.chn)) { f4487db58eb780 Lanqing Liu 2019-03-04 512 dev_err(port->dev, "request RX DMA channel failed, ret = %ld\n", 7a7457ba40f147 YueHaibing 2019-03-30 513 PTR_ERR(sp->rx_dma.chn)); f4487db58eb780 Lanqing Liu 2019-03-04 514 sp->rx_dma.enable = false; f4487db58eb780 Lanqing Liu 2019-03-04 515 } f4487db58eb780 Lanqing Liu 2019-03-04 516 } f4487db58eb780 Lanqing Liu 2019-03-04 517 :::::: The code at line 486 was first introduced by commit :::::: f4487db58eb780a52d768f3b36aaaa8fd5839215 serial: sprd: Add DMA mode support :::::: TO: Lanqing Liu <[email protected]> :::::: CC: Greg Kroah-Hartman <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
