[spi:topic/ti-qspi 10/11] drivers/spi/spi-ti-qspi.c:404:7: error: implicit declaration of function 'dmaengine_prep_dma_memcpy'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git topic/ti-qspi
head:   cb3c8e5ade3f01839ce0a9388ddc9729de4e2d6d
commit: 1351aaeb50b2ae5eb5469b3d3d0a84073a127a39 [10/11] spi: spi-ti-qspi: Use dma_engine wrapper for dma memcpy call
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 1351aaeb50b2ae5eb5469b3d3d0a84073a127a39
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   drivers/spi/spi-ti-qspi.c: In function 'ti_qspi_dma_xfer':
>> drivers/spi/spi-ti-qspi.c:404:7: error: implicit declaration of function 'dmaengine_prep_dma_memcpy' [-Werror=implicit-function-declaration]
     tx = dmaengine_prep_dma_memcpy(chan, dma_dst, dma_src, len, flags);
          ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/spi/spi-ti-qspi.c:404:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     tx = dmaengine_prep_dma_memcpy(chan, dma_dst, dma_src, len, flags);
        ^
   drivers/spi/spi-ti-qspi.c:398:21: warning: unused variable 'dma_dev' [-Wunused-variable]
     struct dma_device *dma_dev = chan->device;
                        ^~~~~~~
   cc1: some warnings being treated as errors

vim +/dmaengine_prep_dma_memcpy +404 drivers/spi/spi-ti-qspi.c

   398		struct dma_device *dma_dev = chan->device;
   399		dma_cookie_t cookie;
   400		enum dma_ctrl_flags flags = DMA_CTRL_ACK | DMA_PREP_INTERRUPT;
   401		struct dma_async_tx_descriptor *tx;
   402		int ret;
   403	
 > 404		tx = dmaengine_prep_dma_memcpy(chan, dma_dst, dma_src, len, flags);
   405		if (!tx) {
   406			dev_err(qspi->dev, "device_prep_dma_memcpy error\n");
   407			return -EIO;

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux