linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Vignesh R <vigneshr-l0cyMroinI0@public.gmane.org>
Cc: kbuild-all-JC7UmRfGjtg@public.gmane.org,
	linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: [spi:topic/ti-qspi 10/11] drivers/spi/spi-ti-qspi.c:404:7: error: implicit declaration of function 'dmaengine_prep_dma_memcpy'
Date: Mon, 27 Mar 2017 21:41:04 +0800	[thread overview]
Message-ID: <201703272102.marQ7Skc%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1909 bytes --]

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 #2: .config.gz --]
[-- Type: application/gzip, Size: 56822 bytes --]

                 reply	other threads:[~2017-03-27 13:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201703272102.marQ7Skc%fengguang.wu@intel.com \
    --to=fengguang.wu-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=kbuild-all-JC7UmRfGjtg@public.gmane.org \
    --cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=vigneshr-l0cyMroinI0@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).