lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 5 Mar 2016 14:36:29 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Purna Chandra Mandal <purna.mandal@...rochip.com>
Cc:	kbuild-all@...org, linux-kernel@...r.kernel.org,
	linux-spi@...r.kernel.org,
	Purna Chandra Mandal <purna.mandal@...rochip.com>,
	Mark Brown <broonie@...nel.org>,
	Joshua Henderson <digitalpeer@...italpeer.com>,
	Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
Subject: Re: [PATCH v2 2/2] spi: spi-pic32: Add PIC32 SPI master driver

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

Download attachment ".config.gz" of type "application/octet-stream" (44806 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ