From: Herbert Xu <herbert@gondor.apana.org.au>
To: Longfang Liu <liulongfang@huawei.com>
Cc: wangzhou1@hisilicon.com, xuzaibo@huawei.com,
linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 1/2] crypto: hisilicon/sec - fixes some log printing style
Date: Fri, 12 Mar 2021 23:59:18 +1100 [thread overview]
Message-ID: <20210312125918.GA12149@gondor.apana.org.au> (raw)
In-Reply-To: <1614838735-52668-2-git-send-email-liulongfang@huawei.com>
On Thu, Mar 04, 2021 at 02:18:54PM +0800, Longfang Liu wrote:
>
> @@ -727,7 +725,7 @@ static void sec_cipher_pbuf_unmap(struct sec_ctx *ctx, struct sec_req *req,
> struct aead_request *aead_req = req->aead_req.aead_req;
> struct sec_cipher_req *c_req = &req->c_req;
> struct sec_qp_ctx *qp_ctx = req->qp_ctx;
> - struct device *dev = SEC_CTX_DEV(ctx);
> + struct device *dev = ctx->dev;
> int copy_size, pbuf_length;
> int req_id = req->req_id;
>
> @@ -737,11 +735,9 @@ static void sec_cipher_pbuf_unmap(struct sec_ctx *ctx, struct sec_req *req,
> copy_size = c_req->c_len;
>
> pbuf_length = sg_copy_from_buffer(dst, sg_nents(dst),
> - qp_ctx->res[req_id].pbuf,
> - copy_size);
> -
> + qp_ctx->res[req_id].pbuf, copy_size);
> if (unlikely(pbuf_length != copy_size))
> - dev_err(dev, "copy pbuf data to dst error!\n");
> + dev_err(ctx->dev, "copy pbuf data to dst error!\n");
> }
This triggers an unused warning on dev. Please fix.
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next prev parent reply other threads:[~2021-03-12 13:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-04 6:18 [PATCH v3 0/2] crypto:hisilicon/sec - fixes some coding style Longfang Liu
2021-03-04 6:18 ` [PATCH v3 1/2] crypto: hisilicon/sec - fixes some log printing style Longfang Liu
2021-03-12 12:59 ` Herbert Xu [this message]
2021-03-13 1:30 ` liulongfang
2021-03-04 6:18 ` [PATCH v3 2/2] crypto: hisilicon/sec - fixes some driver coding style Longfang Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210312125918.GA12149@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liulongfang@huawei.com \
--cc=wangzhou1@hisilicon.com \
--cc=xuzaibo@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®