Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1219337pxf; Fri, 12 Mar 2021 05:02:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGeEOxSg5P14uvAYuTjW0cJfSGOv8vC1uYPdvuj2ATeYgFe3888nYBfmGGzhPDpUdzz7xW X-Received: by 2002:a1c:20c7:: with SMTP id g190mr12723999wmg.156.1615554153099; Fri, 12 Mar 2021 05:02:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615554153; cv=none; d=google.com; s=arc-20160816; b=GafF4yPFry2DftaazwgudbUWB/bkGhhL7lqmy7gxjJLZhPz4NUdTV8XjcQT58Y+KMa 0kc5h4shkX1q02HoHjo4PJOO32JBz3RJpij+/zbWpBxtzbLSebeg7ye6R7TKc4z48mkW UTehE71mAHK4zFscxnntXkxmPwwbOzwM70MLAgVKbeUQADGwugyb7MZWX7vFFeJ/0DaU SrX5XXE/axTzoNb7enJsNeQU7vKYuz0AKD0tlk2VZg6c9uPoFoZV6ERZHTezX/artUci LLuEuNdTTmGzo4SFDPQfGbLkKC0+LLt0+opdtfA9sLzln+trIePIZT9opP9GI38n5uFe PvVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=NwCHPI8r0J6WDTwVo4yU7IYX5bb3NT5igClbNc6Iyac=; b=byM+5uN56U7i8kvc/BjvOg21O/1kztaamDpdO68Xc0gdQAtG6KPsipP7+fndNRJpdN U8AmCFAcGv3tIi72x9wZgyWrTzXsjK3IS9cr7Q/QWtoG06riX4xgTHLXLy+UvylgsbMo pu4zKtuHuVE+2t1q+PEspi42WKpzWKFI/tAvefb1wIYv3x5wQD4jb9cnI7QFAqY/Xk/E HpjzVLJLmAT6MO9cZqYbB9t0qbQmVJX51rMdci8pZqyGVGSpPRYz5rGb1FvhbX2SVPBF kQJGA3qm275Dmqg6QLFJKL0iP3LTqBFAce4tOUjfJvqN79WawYPVfMkG43i4z+0EWi64 yBJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si3982003ejy.390.2021.03.12.05.01.54; Fri, 12 Mar 2021 05:02:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231285AbhCLM7u (ORCPT + 99 others); Fri, 12 Mar 2021 07:59:50 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:54334 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbhCLM7i (ORCPT ); Fri, 12 Mar 2021 07:59:38 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1lKhNu-0005xD-BK; Fri, 12 Mar 2021 23:59:19 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 12 Mar 2021 23:59:18 +1100 Date: Fri, 12 Mar 2021 23:59:18 +1100 From: Herbert Xu To: Longfang Liu 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 Message-ID: <20210312125918.GA12149@gondor.apana.org.au> References: <1614838735-52668-1-git-send-email-liulongfang@huawei.com> <1614838735-52668-2-git-send-email-liulongfang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1614838735-52668-2-git-send-email-liulongfang@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt