Re: [PATCH v3 1/2] spi: Add DMA support for spi_flash_read()

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

 



Hi,

[auto build test ERROR on spi/for-next]
[also build test ERROR on v4.7-rc2 next-20160607]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Vignesh-R/spi-Add-DMA-support-for-ti-qspi/20160607-162134
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi for-next
config: m32r-allyesconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
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
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   drivers/spi/spi.c: In function 'spi_flash_read':
>> drivers/spi/spi.c:2758:3: error: implicit declaration of function 'spi_map_buf' [-Werror=implicit-function-declaration]
      ret = spi_map_buf(master, rx_dev, &msg->rx_sg,
      ^
>> drivers/spi/spi.c:2766:3: error: implicit declaration of function 'spi_unmap_buf' [-Werror=implicit-function-declaration]
      spi_unmap_buf(master, rx_dev, &msg->rx_sg,
      ^
   cc1: some warnings being treated as errors

vim +/spi_map_buf +2758 drivers/spi/spi.c

  2752			}
  2753		}
  2754	
  2755		mutex_lock(&master->bus_lock_mutex);
  2756		if (master->dma_rx) {
  2757			rx_dev = master->dma_rx->device->dev;
> 2758			ret = spi_map_buf(master, rx_dev, &msg->rx_sg,
  2759					  msg->buf, msg->len,
  2760					  DMA_FROM_DEVICE);
  2761			if (!ret)
  2762				msg->cur_msg_mapped = true;
  2763		}
  2764		ret = master->spi_flash_read(spi, msg);
  2765		if (msg->cur_msg_mapped)
> 2766			spi_unmap_buf(master, rx_dev, &msg->rx_sg,
  2767				      DMA_FROM_DEVICE);
  2768		mutex_unlock(&master->bus_lock_mutex);
  2769	

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux