[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZbIry8M6yFUAr5oL@gondor.apana.org.au>
Date: Thu, 25 Jan 2024 17:37:15 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Qi Tao <taoqi10@...wei.com>
Cc: davem@...emloft.net, liulongfang@...wei.com,
linux-kernel@...r.kernel.org, linux-crypto@...r.kernel.org
Subject: Re: [PATCH 3/4] crypto: hisilicon/sec2 - fix some cleanup issues
On Fri, Dec 29, 2023 at 02:44:20PM +0800, Qi Tao wrote:
>
> @@ -1371,7 +1371,7 @@ static int sec_skcipher_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req)
> sec_sqe3->bd_param = cpu_to_le32(bd_param);
>
> sec_sqe3->c_len_ivin |= cpu_to_le32(c_req->c_len);
> - sec_sqe3->tag = cpu_to_le64(req);
> + sec_sqe3->tag = cpu_to_le64((unsigned long)(uintptr_t)req);
Please explain why you're casting twice.
Thanks,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists