Re: [PATCH v3 6/6] sparc64: Enable 64-bit DMA

From: kbuild test robot
Date: Sun Oct 30 2016 - 02:34:18 EST


Hi Tushar,

[auto build test ERROR on sparc/master]
[also build test ERROR on v4.9-rc3 next-20161028]
[cannot apply to sparc-next/master]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url: https://github.com/0day-ci/linux/commits/Tushar-Dave/sparc-Enable-sun4v-hypervisor-PCI-IOMMU-v2-APIs-and-ATU/20161029-013638
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc.git master
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
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=sparc

All errors (new ones prefixed by >>):

drivers/scsi/qlogicpti.c: In function 'qpti_map_queues':
>> drivers/scsi/qlogicpti.c:813:9: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
&qpti->res_dvma, GFP_ATOMIC);
^
In file included from drivers/scsi/qlogicpti.c:28:0:
include/linux/dma-mapping.h:491:21: note: expected 'dma_addr_t * {aka long long unsigned int *}' but argument is of type '__u32 * {aka unsigned int *}'
static inline void *dma_alloc_coherent(struct device *dev, size_t size,
^~~~~~~~~~~~~~~~~~
drivers/scsi/qlogicpti.c:822:9: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
&qpti->req_dvma, GFP_ATOMIC);
^
In file included from drivers/scsi/qlogicpti.c:28:0:
include/linux/dma-mapping.h:491:21: note: expected 'dma_addr_t * {aka long long unsigned int *}' but argument is of type '__u32 * {aka unsigned int *}'
static inline void *dma_alloc_coherent(struct device *dev, size_t size,
^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
sound/sparc/dbri.c: In function 'snd_dbri_create':
>> sound/sparc/dbri.c:2538:6: error: passing argument 3 of 'dma_zalloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
&dbri->dma_dvma, GFP_ATOMIC);
^
In file included from sound/sparc/dbri.c:60:0:
include/linux/dma-mapping.h:654:21: note: expected 'dma_addr_t * {aka long long unsigned int *}' but argument is of type 'u32 * {aka unsigned int *}'
static inline void *dma_zalloc_coherent(struct device *dev, size_t size,
^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/dma_alloc_coherent +813 drivers/scsi/qlogicpti.c

^1da177e Linus Torvalds 2005-04-16 797 cfreq = prom_getintdefault(qpti->prom_node,"clock-frequency",40000000);
^1da177e Linus Torvalds 2005-04-16 798 qpti->clock = (cfreq + 500000)/1000000;
^1da177e Linus Torvalds 2005-04-16 799 if (qpti->clock == 0) /* bullshit */
^1da177e Linus Torvalds 2005-04-16 800 qpti->clock = 40;
^1da177e Linus Torvalds 2005-04-16 801 }
^1da177e Linus Torvalds 2005-04-16 802
^1da177e Linus Torvalds 2005-04-16 803 /* The request and response queues must each be aligned
^1da177e Linus Torvalds 2005-04-16 804 * on a page boundary.
^1da177e Linus Torvalds 2005-04-16 805 */
6f039790 Greg Kroah-Hartman 2012-12-21 806 static int qpti_map_queues(struct qlogicpti *qpti)
^1da177e Linus Torvalds 2005-04-16 807 {
2dc11581 Grant Likely 2010-08-06 808 struct platform_device *op = qpti->op;
^1da177e Linus Torvalds 2005-04-16 809
^1da177e Linus Torvalds 2005-04-16 810 #define QSIZE(entries) (((entries) + 1) * QUEUE_ENTRY_LEN)
5dc2536b David S. Miller 2008-08-27 811 qpti->res_cpu = dma_alloc_coherent(&op->dev,
^1da177e Linus Torvalds 2005-04-16 812 QSIZE(RES_QUEUE_LEN),
738f2b7b David S. Miller 2008-08-27 @813 &qpti->res_dvma, GFP_ATOMIC);
^1da177e Linus Torvalds 2005-04-16 814 if (qpti->res_cpu == NULL ||
^1da177e Linus Torvalds 2005-04-16 815 qpti->res_dvma == 0) {
^1da177e Linus Torvalds 2005-04-16 816 printk("QPTI: Cannot map response queue.\n");
^1da177e Linus Torvalds 2005-04-16 817 return -1;
^1da177e Linus Torvalds 2005-04-16 818 }
^1da177e Linus Torvalds 2005-04-16 819
5dc2536b David S. Miller 2008-08-27 820 qpti->req_cpu = dma_alloc_coherent(&op->dev,
^1da177e Linus Torvalds 2005-04-16 821 QSIZE(QLOGICPTI_REQ_QUEUE_LEN),

:::::: The code at line 813 was first introduced by commit
:::::: 738f2b7b813913e651f39387d007dd961755dee2 sparc: Convert all SBUS drivers to dma_*() interfaces.

:::::: TO: David S. Miller <davem@xxxxxxxxxxxxx>
:::::: CC: David S. Miller <davem@xxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip