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-next>] [day] [month] [year] [list]
Date:	Thu, 2 Apr 2015 17:50:56 +0800
From:	kbuild test robot <fengguang.wu@...el.com>
To:	Rameshwar Prasad Sahu <rsahu@....com>
Cc:	kbuild-all@...org, Vinod Koul <vinod.koul@...el.com>,
	Loc Ho <lho@....com>, Dan Williams <dan.j.williams@...el.com>,
	dmaengine@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [slave-dma:for-linus 26/28] drivers/dma/xgene-dma.c:396:25: sparse:
 incorrect type in assignment (different base types)

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 linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ