提交 e59f755c 编写于 作者: G Gilad Ben-Yossef 提交者: Herbert Xu

crypto: ccree - use a proper le32 type for le32 val

We build an explicit little endian value from the IDR register
values. Use a proper le32 type to mark the var as such to
satisfy Sparse.
Signed-off-by: NGilad Ben-Yossef <gilad@benyossef.com>
Reported-by: Nkbuild test robot <lkp@intel.com>
Fixes: dcf6285d ("crypto: ccree - add CID and PID support")
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 50af3272
......@@ -103,7 +103,7 @@ static u32 cc_read_idr(struct cc_drvdata *drvdata, const u32 *idr_offsets)
int i;
union {
u8 regs[CC_NUM_IDRS];
u32 val;
__le32 val;
} idr;
for (i = 0; i < CC_NUM_IDRS; ++i)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册