linux/drivers/crypto/hisilicon
Shukun Tan 9a8641a7ff crypto: hisilicon - fix endianness verification problem of QM
This patch fixes following sparse warning:

qm.c:345:33: warning: cast removes address space '<asn:2>' of expression
qm.c:359:20: warning: incorrect type in assignment (different base types)
qm.c:359:20:    expected restricted __le16 [usertype] w0
qm.c:359:20:    got int
qm.c:362:27: warning: incorrect type in assignment (different base types)
qm.c:362:27:    expected restricted __le16 [usertype] queue_num
qm.c:362:27:    got unsigned short [usertype] queue
qm.c:363:24: warning: incorrect type in assignment (different base types)
qm.c:363:24:    expected restricted __le32 [usertype] base_l
qm.c:363:24:    got unsigned int [usertype]
qm.c:364:24: warning: incorrect type in assignment (different base types)
qm.c:364:24:    expected restricted __le32 [usertype] base_h
qm.c:364:24:    got unsigned int [usertype]
qm.c:451:22: warning: restricted __le32 degrades to integer
qm.c:471:24: warning: restricted __le16 degrades to integer
......
qm.c:1617:19: warning: incorrect type in assignment (different base types)
qm.c:1617:19:    expected restricted __le32 [usertype] dw6
qm.c:1617:19:    got int
qm.c:1891:24: warning: incorrect type in return expression (different base types)
qm.c:1891:24:    expected int
qm.c:1891:24:    got restricted pci_ers_result_t
qm.c:1894:40: warning: incorrect type in return expression (different base types)
qm.c:1894:40:    expected int
qm.c:1894:40:    got restricted pci_ers_result_t

Signed-off-by: Shukun Tan <tanshukun1@huawei.com>
Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-10-26 02:09:59 +11:00
..
hpre crypto: hisilicon: Fix misuse of GENMASK macro 2019-10-23 19:47:00 +11:00
sec crypto: hisilicon - Matching the dma address for dma_pool_free() 2019-09-20 22:53:09 +10:00
zip crypto: hisilicon - fix param should be static when not external. 2019-10-26 02:09:59 +11:00
Kconfig crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig 2019-10-23 19:46:56 +11:00
Makefile crypto: hisilicon - add HiSilicon HPRE accelerator 2019-10-10 23:36:31 +11:00
qm.c crypto: hisilicon - fix endianness verification problem of QM 2019-10-26 02:09:59 +11:00
qm.h crypto: hisilicon - fix endianness verification problem of QM 2019-10-26 02:09:59 +11:00
sgl.c crypto: hisilicon - misc fix about sgl 2019-10-10 23:36:31 +11:00