From: Tushar Dave <tushar.n.dave@xxxxxxxxxx> Date: Wed, 23 Nov 2016 18:28:04 -0800 > qlogicpti uses '__u32' for dma handle while invoking kernel DMA APIs, > instead of using dma_addr_t. This hasn't caused any 'incompatible > pointer type' warning on SPARC because until now dma_addr_t is of > type u32. However, recent changes in SPARC ATU (iommu) enabled 64bit > DMA and therefore dma_addr_t became of type u64. This makes > 'incompatible pointer type' warnings inevitable. > > e.g. > drivers/scsi/qlogicpti.c: In function ʽqpti_map_queuesʼ: > drivers/scsi/qlogicpti.c:813: warning: passing argument 3 of ʽdma_alloc_coherentʼ from incompatible pointer type > ./include/linux/dma-mapping.h:445: note: expected ʽdma_addr_t *ʼ but argument is of type ʽ__u32 *ʼ > drivers/scsi/qlogicpti.c:822: warning: passing argument 3 of ʽdma_alloc_coherentʼ from incompatible pointer type > ./include/linux/dma-mapping.h:445: note: expected ʽdma_addr_t *ʼ but argument is of type ʽ__u32 *ʼ > > For the record, qlogicpti never executes on sun4v. Therefore even > though 64bit DMA is enabled on SPARC, qlogicpti continues to use > legacy iommu that guarantees DMA address is always in 32bit range. > > This patch resolves aforementioned compiler warnings. > > Signed-off-by: Tushar Dave <tushar.n.dave@xxxxxxxxxx> > Reviewed-by: thomas tai <thomas.tai@xxxxxxxxxx> Applied. ?τθΊ{.nΗ+?·????+%?Λ?±ιέΆ??w?Ί{.nΗ+?·¬??ά?)ξΗψ§Ά?ʽά¨}©?²Ζ zΪ&j:+v?¨ώψ―ω?w?ώ?ΰ2?ή?¨θΪ&ʼ)ίʽ«aΆΪ??ϋΰzΏδzΉή?ϊ+?ω???έʼj??wθώf