Re: [PATCH v2 2/2] spi: spi-pic32: Add PIC32 SPI master driver

From: kbuild test robot
Date: Sat Mar 05 2016 - 01:37:52 EST


Hi Purna,

[auto build test WARNING on robh/for-next]
[also build test WARNING on v4.5-rc6 next-20160304]
[cannot apply to spi/for-next]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Purna-Chandra-Mandal/dt-bindings-Add-bindings-for-PIC32-SPI-peripheral/20160304-214814
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux for-next
config: sparc64-allmodconfig (attached as .config)
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=sparc64

All warnings (new ones prefixed by >>):

In file included from include/linux/dmaengine.h:20:0,
from drivers/spi/spi-pic32.c:20:
drivers/spi/spi-pic32.c: In function 'pic32_spi_dma_transfer':
>> drivers/spi/spi-pic32.c:392:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
xfer->tx_buf, (void *)xfer->tx_dma,
^
include/linux/device.h:1286:41: note: in definition of macro 'dev_vdbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^
drivers/spi/spi-pic32.c:393:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
xfer->rx_buf, (void *)xfer->rx_dma);
^
include/linux/device.h:1286:41: note: in definition of macro 'dev_vdbg'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^

vim +392 drivers/spi/spi-pic32.c

376 ret = -EINVAL;
377 goto err_dma;
378 }
379
380 desc_tx = dmaengine_prep_slave_sg(master->dma_tx,
381 xfer->tx_sg.sgl,
382 xfer->tx_sg.nents,
383 DMA_TO_DEVICE,
384 DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
385 if (!desc_tx) {
386 ret = -EINVAL;
387 goto err_dma;
388 }
389
390 dev_vdbg(&master->dev, "dma_xfer %p: len %u, tx %p(%p), rx %p(%p)\n",
391 xfer, xfer->len,
> 392 xfer->tx_buf, (void *)xfer->tx_dma,
393 xfer->rx_buf, (void *)xfer->rx_dma);
394
395 /* Put callback on the RX transfer, that should finish last */
396 desc_rx->callback = pic32_spi_dma_rx_notify;
397 desc_rx->callback_param = pic32s;
398
399 cookie = dmaengine_submit(desc_rx);
400 ret = dma_submit_error(cookie);

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

Attachment: .config.gz
Description: Binary data