[slave-dma:for-linus 26/28] drivers/dma/xgene-dma.c:396:25: sparse: incorrect type in assignment (different base types)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/slave-dma.git for-linus
head:   fe90ced9e9d7bdba75ccae83100ae656807a6261
commit: 9f2fd0dfa594d857fbdaeda523ff7a46f16567f5 [26/28] dmaengine: Add support for APM X-Gene SoC DMA engine driver
reproduce:
  # apt-get install sparse
  git checkout 9f2fd0dfa594d857fbdaeda523ff7a46f16567f5
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/dma/xgene-dma.c:396:25: sparse: incorrect type in assignment (different base types)
   drivers/dma/xgene-dma.c:396:25:    expected unsigned long long [unsigned] [long] [long long] [usertype] <noident>
   drivers/dma/xgene-dma.c:396:25:    got restricted __le64 [usertype] <noident>
>> drivers/dma/xgene-dma.c:818:26: sparse: cast to restricted __le64
>> drivers/dma/xgene-dma.c:818:26: sparse: cast to restricted __le64
>> drivers/dma/xgene-dma.c:1626:5: sparse: symbol 'xgene_dma_init_ring_mngr' was not declared. Should it be static?
   drivers/dma/xgene-dma.c:2088:1: sparse: symbol '__UNIQUE_ID_author__COUNTER__' has multiple initializers (originally initialized at drivers/dma/xgene-dma.c:2087)

Please review and possibly fold the followup patch.

vim +396 drivers/dma/xgene-dma.c

   380		[ERR_DESC_SRC_INT] = "HFB reading src link address error",
   381	};
   382	
   383	static bool is_pq_enabled(struct xgene_dma *pdma)
   384	{
   385		u32 val;
   386	
   387		val = ioread32(pdma->csr_efuse + XGENE_SOC_JTAG1_SHADOW);
   388		return !(val & XGENE_DMA_PQ_DISABLE_MASK);
   389	}
   390	
   391	static void xgene_dma_cpu_to_le64(u64 *desc, int count)
   392	{
   393		int i;
   394	
   395		for (i = 0; i < count; i++)
 > 396			desc[i] = cpu_to_le64(desc[i]);
   397	}
   398	
   399	static u16 xgene_dma_encode_len(u32 len)
   400	{
   401		return (len < XGENE_DMA_MAX_BYTE_CNT) ?
   402			len : XGENE_DMA_16K_BUFFER_LEN_CODE;
   403	}
   404	

---
0-DAY kernel test infrastructure                Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux