All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: zhenwei pi <pizhenwei@bytedance.com>,
	mst@redhat.com, arei.gonglei@huawei.com
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	jasowang@redhat.com, virtualization@lists.linux-foundation.org,
	linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org,
	helei.sig11@bytedance.com, zhenwei pi <pizhenwei@bytedance.com>
Subject: Re: [PATCH 3/3] virtio-crypto: implement RSA algorithm
Date: Fri, 21 Jan 2022 14:36:51 +0800	[thread overview]
Message-ID: <202201211427.TgczsUOo-lkp@intel.com> (raw)
In-Reply-To: <20220121022438.1042547-4-pizhenwei@bytedance.com>

Hi zhenwei,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on herbert-cryptodev-2.6/master]
[also build test WARNING on herbert-crypto-2.6/master linux/master linus/master v5.16 next-20220121]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/zhenwei-pi/Introduce-akcipher-service-for-virtio-crypto/20220121-102730
base:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: hexagon-randconfig-r026-20220120 (https://download.01.org/0day-ci/archive/20220121/202201211427.TgczsUOo-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d4baf3b1322b84816aa623d8e8cb45a49cb68b84)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/fa1045d13dd16399ab0287c599719a977892cf05
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review zhenwei-pi/Introduce-akcipher-service-for-virtio-crypto/20220121-102730
        git checkout fa1045d13dd16399ab0287c599719a977892cf05
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/crypto/virtio/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/crypto/virtio/virtio_crypto_akcipher_algo.c:276:5: warning: no previous prototype for function 'virtio_crypto_rsa_do_req' [-Wmissing-prototypes]
   int virtio_crypto_rsa_do_req(struct crypto_engine *engine, void *vreq)
       ^
   drivers/crypto/virtio/virtio_crypto_akcipher_algo.c:276:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int virtio_crypto_rsa_do_req(struct crypto_engine *engine, void *vreq)
   ^
   static 
   1 warning generated.


vim +/virtio_crypto_rsa_do_req +276 drivers/crypto/virtio/virtio_crypto_akcipher_algo.c

   275	
 > 276	int virtio_crypto_rsa_do_req(struct crypto_engine *engine, void *vreq)
   277	{
   278		struct akcipher_request *req = container_of(vreq, struct akcipher_request, base);
   279		struct virtio_crypto_akcipher_request *vc_akcipher_req = akcipher_request_ctx(req);
   280		struct virtio_crypto_request *vc_req = &vc_akcipher_req->base;
   281		struct virtio_crypto_akcipher_ctx *ctx = vc_akcipher_req->akcipher_ctx;
   282		struct virtio_crypto *vcrypto = ctx->vcrypto;
   283		struct data_queue *data_vq = vc_req->dataq;
   284		struct virtio_crypto_op_header *header;
   285		struct virtio_crypto_akcipher_data_req *akcipher_req;
   286		int ret;
   287	
   288		vc_req->sgs = NULL;
   289		vc_req->req_data = kzalloc_node(sizeof(*vc_req->req_data),
   290			GFP_KERNEL, dev_to_node(&vcrypto->vdev->dev));
   291		if (!vc_req->req_data)
   292			return -ENOMEM;
   293	
   294		/* build request header */
   295		header = &vc_req->req_data->header;
   296		header->opcode = cpu_to_le32(vc_akcipher_req->opcode);
   297		header->algo = cpu_to_le32(VIRTIO_CRYPTO_AKCIPHER_RSA);
   298		header->session_id = cpu_to_le64(ctx->session_id);
   299	
   300		/* build request akcipher data */
   301		akcipher_req = &vc_req->req_data->u.akcipher_req;
   302		akcipher_req->para.src_data_len = cpu_to_le32(req->src_len);
   303		akcipher_req->para.dst_data_len = cpu_to_le32(req->dst_len);
   304	
   305		ret = __virtio_crypto_akcipher_do_req(vc_akcipher_req, req, data_vq);
   306		if (ret < 0) {
   307			kfree_sensitive(vc_req->req_data);
   308			vc_req->req_data = NULL;
   309			return ret;
   310		}
   311	
   312		return 0;
   313	}
   314	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: zhenwei pi <pizhenwei@bytedance.com>,
	mst@redhat.com, arei.gonglei@huawei.com
Cc: kbuild-all@lists.01.org, helei.sig11@bytedance.com,
	llvm@lists.linux.dev, linux-kernel@vger.kernel.org,
	zhenwei pi <pizhenwei@bytedance.com>,
	virtualization@lists.linux-foundation.org,
	linux-crypto@vger.kernel.org
Subject: Re: [PATCH 3/3] virtio-crypto: implement RSA algorithm
Date: Fri, 21 Jan 2022 14:36:51 +0800	[thread overview]
Message-ID: <202201211427.TgczsUOo-lkp@intel.com> (raw)
In-Reply-To: <20220121022438.1042547-4-pizhenwei@bytedance.com>

Hi zhenwei,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on herbert-cryptodev-2.6/master]
[also build test WARNING on herbert-crypto-2.6/master linux/master linus/master v5.16 next-20220121]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/zhenwei-pi/Introduce-akcipher-service-for-virtio-crypto/20220121-102730
base:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: hexagon-randconfig-r026-20220120 (https://download.01.org/0day-ci/archive/20220121/202201211427.TgczsUOo-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d4baf3b1322b84816aa623d8e8cb45a49cb68b84)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/fa1045d13dd16399ab0287c599719a977892cf05
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review zhenwei-pi/Introduce-akcipher-service-for-virtio-crypto/20220121-102730
        git checkout fa1045d13dd16399ab0287c599719a977892cf05
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/crypto/virtio/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/crypto/virtio/virtio_crypto_akcipher_algo.c:276:5: warning: no previous prototype for function 'virtio_crypto_rsa_do_req' [-Wmissing-prototypes]
   int virtio_crypto_rsa_do_req(struct crypto_engine *engine, void *vreq)
       ^
   drivers/crypto/virtio/virtio_crypto_akcipher_algo.c:276:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int virtio_crypto_rsa_do_req(struct crypto_engine *engine, void *vreq)
   ^
   static 
   1 warning generated.


vim +/virtio_crypto_rsa_do_req +276 drivers/crypto/virtio/virtio_crypto_akcipher_algo.c

   275	
 > 276	int virtio_crypto_rsa_do_req(struct crypto_engine *engine, void *vreq)
   277	{
   278		struct akcipher_request *req = container_of(vreq, struct akcipher_request, base);
   279		struct virtio_crypto_akcipher_request *vc_akcipher_req = akcipher_request_ctx(req);
   280		struct virtio_crypto_request *vc_req = &vc_akcipher_req->base;
   281		struct virtio_crypto_akcipher_ctx *ctx = vc_akcipher_req->akcipher_ctx;
   282		struct virtio_crypto *vcrypto = ctx->vcrypto;
   283		struct data_queue *data_vq = vc_req->dataq;
   284		struct virtio_crypto_op_header *header;
   285		struct virtio_crypto_akcipher_data_req *akcipher_req;
   286		int ret;
   287	
   288		vc_req->sgs = NULL;
   289		vc_req->req_data = kzalloc_node(sizeof(*vc_req->req_data),
   290			GFP_KERNEL, dev_to_node(&vcrypto->vdev->dev));
   291		if (!vc_req->req_data)
   292			return -ENOMEM;
   293	
   294		/* build request header */
   295		header = &vc_req->req_data->header;
   296		header->opcode = cpu_to_le32(vc_akcipher_req->opcode);
   297		header->algo = cpu_to_le32(VIRTIO_CRYPTO_AKCIPHER_RSA);
   298		header->session_id = cpu_to_le64(ctx->session_id);
   299	
   300		/* build request akcipher data */
   301		akcipher_req = &vc_req->req_data->u.akcipher_req;
   302		akcipher_req->para.src_data_len = cpu_to_le32(req->src_len);
   303		akcipher_req->para.dst_data_len = cpu_to_le32(req->dst_len);
   304	
   305		ret = __virtio_crypto_akcipher_do_req(vc_akcipher_req, req, data_vq);
   306		if (ret < 0) {
   307			kfree_sensitive(vc_req->req_data);
   308			vc_req->req_data = NULL;
   309			return ret;
   310		}
   311	
   312		return 0;
   313	}
   314	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 3/3] virtio-crypto: implement RSA algorithm
Date: Fri, 21 Jan 2022 14:36:51 +0800	[thread overview]
Message-ID: <202201211427.TgczsUOo-lkp@intel.com> (raw)
In-Reply-To: <20220121022438.1042547-4-pizhenwei@bytedance.com>

[-- Attachment #1: Type: text/plain, Size: 4204 bytes --]

Hi zhenwei,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on herbert-cryptodev-2.6/master]
[also build test WARNING on herbert-crypto-2.6/master linux/master linus/master v5.16 next-20220121]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/zhenwei-pi/Introduce-akcipher-service-for-virtio-crypto/20220121-102730
base:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: hexagon-randconfig-r026-20220120 (https://download.01.org/0day-ci/archive/20220121/202201211427.TgczsUOo-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d4baf3b1322b84816aa623d8e8cb45a49cb68b84)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/fa1045d13dd16399ab0287c599719a977892cf05
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review zhenwei-pi/Introduce-akcipher-service-for-virtio-crypto/20220121-102730
        git checkout fa1045d13dd16399ab0287c599719a977892cf05
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/crypto/virtio/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/crypto/virtio/virtio_crypto_akcipher_algo.c:276:5: warning: no previous prototype for function 'virtio_crypto_rsa_do_req' [-Wmissing-prototypes]
   int virtio_crypto_rsa_do_req(struct crypto_engine *engine, void *vreq)
       ^
   drivers/crypto/virtio/virtio_crypto_akcipher_algo.c:276:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int virtio_crypto_rsa_do_req(struct crypto_engine *engine, void *vreq)
   ^
   static 
   1 warning generated.


vim +/virtio_crypto_rsa_do_req +276 drivers/crypto/virtio/virtio_crypto_akcipher_algo.c

   275	
 > 276	int virtio_crypto_rsa_do_req(struct crypto_engine *engine, void *vreq)
   277	{
   278		struct akcipher_request *req = container_of(vreq, struct akcipher_request, base);
   279		struct virtio_crypto_akcipher_request *vc_akcipher_req = akcipher_request_ctx(req);
   280		struct virtio_crypto_request *vc_req = &vc_akcipher_req->base;
   281		struct virtio_crypto_akcipher_ctx *ctx = vc_akcipher_req->akcipher_ctx;
   282		struct virtio_crypto *vcrypto = ctx->vcrypto;
   283		struct data_queue *data_vq = vc_req->dataq;
   284		struct virtio_crypto_op_header *header;
   285		struct virtio_crypto_akcipher_data_req *akcipher_req;
   286		int ret;
   287	
   288		vc_req->sgs = NULL;
   289		vc_req->req_data = kzalloc_node(sizeof(*vc_req->req_data),
   290			GFP_KERNEL, dev_to_node(&vcrypto->vdev->dev));
   291		if (!vc_req->req_data)
   292			return -ENOMEM;
   293	
   294		/* build request header */
   295		header = &vc_req->req_data->header;
   296		header->opcode = cpu_to_le32(vc_akcipher_req->opcode);
   297		header->algo = cpu_to_le32(VIRTIO_CRYPTO_AKCIPHER_RSA);
   298		header->session_id = cpu_to_le64(ctx->session_id);
   299	
   300		/* build request akcipher data */
   301		akcipher_req = &vc_req->req_data->u.akcipher_req;
   302		akcipher_req->para.src_data_len = cpu_to_le32(req->src_len);
   303		akcipher_req->para.dst_data_len = cpu_to_le32(req->dst_len);
   304	
   305		ret = __virtio_crypto_akcipher_do_req(vc_akcipher_req, req, data_vq);
   306		if (ret < 0) {
   307			kfree_sensitive(vc_req->req_data);
   308			vc_req->req_data = NULL;
   309			return ret;
   310		}
   311	
   312		return 0;
   313	}
   314	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

  reply	other threads:[~2022-01-21  6:37 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-21  2:24 [PATCH 0/3] Introduce akcipher service for virtio-crypto zhenwei pi
2022-01-21  2:24 ` zhenwei pi
2022-01-21  2:24 ` [PATCH 1/3] virtio_crypto: Introduce VIRTIO_CRYPTO_NOSPC zhenwei pi
2022-01-21  2:24   ` zhenwei pi
2022-02-10  7:22   ` Gonglei (Arei)
2022-02-10  7:22     ` Gonglei (Arei) via Virtualization
2022-01-21  2:24 ` [PATCH 2/3] virtio-crypto: introduce akcipher service zhenwei pi
2022-01-21  2:24   ` zhenwei pi
2022-02-10  7:51   ` Gonglei (Arei)
2022-02-10  7:51     ` Gonglei (Arei) via Virtualization
2022-02-10  8:18     ` zhenwei pi
2022-02-10  8:18       ` zhenwei pi
2022-02-10  9:21       ` Gonglei (Arei)
2022-02-10  9:21         ` Gonglei (Arei) via Virtualization
2022-01-21  2:24 ` [PATCH 3/3] virtio-crypto: implement RSA algorithm zhenwei pi
2022-01-21  2:24   ` zhenwei pi
2022-01-21  6:36   ` kernel test robot [this message]
2022-01-21  6:36     ` kernel test robot
2022-01-21  6:36     ` kernel test robot
2022-01-21  8:29   ` [RFC PATCH] virtio-crypto: virtio_crypto_rsa_do_req() can be static kernel test robot
2022-01-21  8:29     ` kernel test robot
2022-01-21  8:29     ` kernel test robot
2022-01-21  8:39   ` [PATCH 3/3] virtio-crypto: implement RSA algorithm kernel test robot
2022-01-21  8:39     ` kernel test robot
2022-01-21  8:39     ` kernel test robot
2022-01-21 21:43   ` kernel test robot
2022-01-21 21:43     ` kernel test robot
2022-01-21 21:43     ` kernel test robot
2022-01-22  0:19   ` kernel test robot
2022-01-22  0:19     ` kernel test robot
2022-01-22  0:19     ` kernel test robot
2022-02-10  6:55 ` PING: [PATCH 0/3] Introduce akcipher service for virtio-crypto zhenwei pi
2022-02-10  6:55   ` zhenwei pi
2022-02-10  7:17   ` Jason Wang
2022-02-10  7:17     ` Jason Wang
2022-02-10  7:23     ` Michael S. Tsirkin
2022-02-10  7:23       ` Michael S. Tsirkin

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=202201211427.TgczsUOo-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arei.gonglei@huawei.com \
    --cc=helei.sig11@bytedance.com \
    --cc=jasowang@redhat.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mst@redhat.com \
    --cc=pizhenwei@bytedance.com \
    --cc=virtualization@lists.linux-foundation.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.