[cryptodev:master 66/78] drivers/crypto/hisilicon/hpre/hpre_main.c:450:16: sparse: sparse: incorrect type in assignment (different base types)

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   504582e8e40b90b8f8c58783e2d1e4f6a2b71a3a
commit: c8b4b477079d1995cc0a1c10d5cdfd02be938cdf [66/78] crypto: hisilicon - add HiSilicon HPRE accelerator
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-rc1-42-g38eda53-dirty
        git checkout c8b4b477079d1995cc0a1c10d5cdfd02be938cdf
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>


sparse warnings: (new ones prefixed by >>)

>> drivers/crypto/hisilicon/hpre/hpre_main.c:450:16: sparse: sparse: incorrect type in assignment (different base types) @@    expected restricted pci_ers_result_t [usertype] qm_ret @@    got e] qm_ret @@
>> drivers/crypto/hisilicon/hpre/hpre_main.c:450:16: sparse:    expected restricted pci_ers_result_t [usertype] qm_ret
>> drivers/crypto/hisilicon/hpre/hpre_main.c:450:16: sparse:    got int
--
>> drivers/crypto/hisilicon/hpre/hpre_crypto.c:378:26: sparse: sparse: restricted __le16 degrades to integer
>> drivers/crypto/hisilicon/hpre/hpre_crypto.c:475:26: sparse: sparse: invalid assignment: |=
>> drivers/crypto/hisilicon/hpre/hpre_crypto.c:475:26: sparse:    left side has type restricted __le32
>> drivers/crypto/hisilicon/hpre/hpre_crypto.c:475:26: sparse:    right side has type int
   drivers/crypto/hisilicon/hpre/hpre_crypto.c:477:26: sparse: sparse: invalid assignment: |=
   drivers/crypto/hisilicon/hpre/hpre_crypto.c:477:26: sparse:    left side has type restricted __le32
   drivers/crypto/hisilicon/hpre/hpre_crypto.c:477:26: sparse:    right side has type int
   drivers/crypto/hisilicon/hpre/hpre_crypto.c:740:26: sparse: sparse: invalid assignment: |=
   drivers/crypto/hisilicon/hpre/hpre_crypto.c:740:26: sparse:    left side has type restricted __le32
   drivers/crypto/hisilicon/hpre/hpre_crypto.c:740:26: sparse:    right side has type int

vim +450 drivers/crypto/hisilicon/hpre/hpre_main.c

   443	
   444	static pci_ers_result_t hpre_process_hw_error(struct pci_dev *pdev)
   445	{
   446		struct hpre *hpre = pci_get_drvdata(pdev);
   447		pci_ers_result_t qm_ret, hpre_ret;
   448	
   449		/* log qm error */
 > 450		qm_ret = hisi_qm_hw_error_handle(&hpre->qm);
   451	
   452		/* log hpre error */
   453		hpre_ret = hpre_hw_error_handle(hpre);
   454	
   455		return (qm_ret == PCI_ERS_RESULT_NEED_RESET ||
   456			hpre_ret == PCI_ERS_RESULT_NEED_RESET) ?
   457			PCI_ERS_RESULT_NEED_RESET : PCI_ERS_RESULT_RECOVERED;
   458	}
   459	

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



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux