Hi Javier, [auto build test WARNING on tj-libata/for-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/Javier-Martinez-Canillas/ata-Allow-drivers-to-build-if-COMPILE_TEST-is-enabled/20151013-214138 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 >>): drivers/ata/sata_dwc_460ex.c: In function 'dma_dwc_xfer_setup': >> drivers/ata/sata_dwc_460ex.c:308:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] dma_addr_t addr = (dma_addr_t)&hsdev->sata_dwc_regs->dmadr; ^ vim +308 drivers/ata/sata_dwc_460ex.c 8b344485 Andy Shevchenko 2015-03-03 292 if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_NONE) { 8b344485 Andy Shevchenko 2015-03-03 293 dev_err(ap->dev, "DMA not pending tag=0x%02x pending=%d\n", 8b344485 Andy Shevchenko 2015-03-03 294 tag, hsdevp->dma_pending[tag]); 62936009 Rupjyoti Sarmah 2010-07-06 295 } 62936009 Rupjyoti Sarmah 2010-07-06 296 8b344485 Andy Shevchenko 2015-03-03 297 if ((hsdevp->dma_interrupt_count % 2) == 0) 62936009 Rupjyoti Sarmah 2010-07-06 298 sata_dwc_dma_xfer_complete(ap, 1); 62936009 Rupjyoti Sarmah 2010-07-06 299 62936009 Rupjyoti Sarmah 2010-07-06 300 spin_unlock_irqrestore(&host->lock, flags); 62936009 Rupjyoti Sarmah 2010-07-06 301 } 62936009 Rupjyoti Sarmah 2010-07-06 302 8b344485 Andy Shevchenko 2015-03-03 303 static struct dma_async_tx_descriptor *dma_dwc_xfer_setup(struct ata_queued_cmd *qc) 62936009 Rupjyoti Sarmah 2010-07-06 304 { 8b344485 Andy Shevchenko 2015-03-03 305 struct ata_port *ap = qc->ap; 8b344485 Andy Shevchenko 2015-03-03 306 struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap); 8b344485 Andy Shevchenko 2015-03-03 307 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); 8b344485 Andy Shevchenko 2015-03-03 @308 dma_addr_t addr = (dma_addr_t)&hsdev->sata_dwc_regs->dmadr; 8b344485 Andy Shevchenko 2015-03-03 309 struct dma_slave_config sconf; 8b344485 Andy Shevchenko 2015-03-03 310 struct dma_async_tx_descriptor *desc; 62936009 Rupjyoti Sarmah 2010-07-06 311 8b344485 Andy Shevchenko 2015-03-03 312 if (qc->dma_dir == DMA_DEV_TO_MEM) { 8b344485 Andy Shevchenko 2015-03-03 313 sconf.src_addr = addr; 8b344485 Andy Shevchenko 2015-03-03 314 sconf.device_fc = true; 8b344485 Andy Shevchenko 2015-03-03 315 } else { /* DMA_MEM_TO_DEV */ 8b344485 Andy Shevchenko 2015-03-03 316 sconf.dst_addr = addr; :::::: The code at line 308 was first introduced by commit :::::: 8b3444852a2b58129ee68a8dd69fef81ceb902a1 sata_dwc_460ex: move to generic DMA driver :::::: TO: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> :::::: CC: Tejun Heo <tj@xxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data