[cryptodev:master 132/132] drivers/crypto/caam/caamalg.c:140:9: note: in expansion of macro 'min'

2016-09-22 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   5ecf8ef9103cb018cbd82b6eace529ff4c5b5c66
commit: 5ecf8ef9103cb018cbd82b6eace529ff4c5b5c66 [132/132] crypto: caam - fix 
sg dump
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5ecf8ef9103cb018cbd82b6eace529ff4c5b5c66
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All warnings (new ones prefixed by >>):

   In file included from drivers/crypto/caam/compat.h:8:0,
from drivers/crypto/caam/caamalg.c:47:
   drivers/crypto/caam/caamalg.c: In function 'dbg_dump_sg':
   include/linux/kernel.h:742:17: warning: comparison of distinct pointer types 
lacks a cast
 (void) (&_min1 == &_min2);  \
^
>> drivers/crypto/caam/caamalg.c:140:9: note: in expansion of macro 'min'
  len = min(tlen, it->length);
^~~

vim +/min +140 drivers/crypto/caam/caamalg.c

41   * | SEQ_IN_PTR|
42   * | (input buffer)|
43   * | (input length)|
44   * -
45   */
46  
  > 47  #include "compat.h"
48  
49  #include "regs.h"
50  #include "intern.h"
51  #include "desc_constr.h"
52  #include "jr.h"
53  #include "error.h"
54  #include "sg_sw_sec4.h"
55  #include "key_gen.h"
56  
57  /*
58   * crypto alg
59   */
60  #define CAAM_CRA_PRIORITY   3000
61  /* max key is sum of AES_MAX_KEY_SIZE, max split key size */
62  #define CAAM_MAX_KEY_SIZE   (AES_MAX_KEY_SIZE + \
63   CTR_RFC3686_NONCE_SIZE + \
64   SHA512_DIGEST_SIZE * 2)
65  /* max IV is max of AES_BLOCK_SIZE, DES3_EDE_BLOCK_SIZE */
66  #define CAAM_MAX_IV_LENGTH  16
67  
68  #define AEAD_DESC_JOB_IO_LEN(DESC_JOB_IO_LEN + CAAM_CMD_SZ 
* 2)
69  #define GCM_DESC_JOB_IO_LEN (AEAD_DESC_JOB_IO_LEN + \
70   CAAM_CMD_SZ * 4)
71  #define AUTHENC_DESC_JOB_IO_LEN (AEAD_DESC_JOB_IO_LEN + \
72   CAAM_CMD_SZ * 5)
73  
74  /* length of descriptors text */
75  #define DESC_AEAD_BASE  (4 * CAAM_CMD_SZ)
76  #define DESC_AEAD_ENC_LEN   (DESC_AEAD_BASE + 11 * 
CAAM_CMD_SZ)
77  #define DESC_AEAD_DEC_LEN   (DESC_AEAD_BASE + 15 * 
CAAM_CMD_SZ)
78  #define DESC_AEAD_GIVENC_LEN(DESC_AEAD_ENC_LEN + 9 * 
CAAM_CMD_SZ)
79  
80  /* Note: Nonce is counted in enckeylen */
81  #define DESC_AEAD_CTR_RFC3686_LEN   (4 * CAAM_CMD_SZ)
82  
83  #define DESC_AEAD_NULL_BASE (3 * CAAM_CMD_SZ)
84  #define DESC_AEAD_NULL_ENC_LEN  (DESC_AEAD_NULL_BASE + 11 * 
CAAM_CMD_SZ)
85  #define DESC_AEAD_NULL_DEC_LEN  (DESC_AEAD_NULL_BASE + 13 * 
CAAM_CMD_SZ)
86  
87  #define DESC_GCM_BASE   (3 * CAAM_CMD_SZ)
88  #define DESC_GCM_ENC_LEN(DESC_GCM_BASE + 16 * 
CAAM_CMD_SZ)
89  #define DESC_GCM_DEC_LEN(DESC_GCM_BASE + 12 * 
CAAM_CMD_SZ)
90  
91  #define DESC_RFC4106_BASE   (3 * CAAM_CMD_SZ)
92  #define DESC_RFC4106_ENC_LEN(DESC_RFC4106_BASE + 13 * 
CAAM_CMD_SZ)
93  #define DESC_RFC4106_DEC_LEN(DESC_RFC4106_BASE + 13 * 
CAAM_CMD_SZ)
94  
95  #define DESC_RFC4543_BASE   (3 * CAAM_CMD_SZ)
96  #define DESC_RFC4543_ENC_LEN(DESC_RFC4543_BASE + 11 * 
CAAM_CMD_SZ)
97  #define DESC_RFC4543_DEC_LEN(DESC_RFC4543_BASE + 12 * 
CAAM_CMD_SZ)
98  
99  #define DESC_ABLKCIPHER_BASE(3 * CAAM_CMD_SZ)
   100  #define DESC_ABLKCIPHER_ENC_LEN (DESC_ABLKCIPHER_BASE + \
   101   20 * CAAM_CMD_SZ)
   102  #define DESC_ABLKCIPHER_DEC_LEN (DESC_ABLKCIPHER_BASE + \
   103   15 * CAAM_CMD_SZ)
   104  
   105  #define DESC_MAX_USED_BYTES (CAAM_DESC_BYTES_MAX - 
DESC_JOB_IO_LEN)
   106  #define DESC_MAX_USED_LEN   (DESC_MAX_USED_BYTES / 
CAAM_CMD_SZ)
   107  
   108  #ifdef DEBUG
   109  /* for print_hex_dumps with line references */
   110  #define debug(format, arg...) printk(format, arg)
   111  #else
   112  #define debug(format, arg...)
   113  #endif
   114  
   115  #ifdef DEBUG
   116  #include 
   117  
   118  static void dbg_dump_sg(const char *level, const char *prefix_str,
   119  int prefix_type, int rowsize, int groupsize,
   120  struct scatterlist *sg, size_t tlen, 

[cryptodev:master 41/47] ERROR: "crypto_acomp_scomp_free_ctx" [crypto/acompress.ko] undefined!

2016-10-25 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   d7db7a882debaffc78f91aabedee973aa1f73390
commit: 1ab53a77b772bf7369464a0e4fa6fd6499acf8f1 [41/47] crypto: acomp - add 
driver-side scomp interface
config: x86_64-randconfig-s4-10260656 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 1ab53a77b772bf7369464a0e4fa6fd6499acf8f1
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> ERROR: "crypto_acomp_scomp_free_ctx" [crypto/acompress.ko] undefined!
>> ERROR: "crypto_acomp_scomp_alloc_ctx" [crypto/acompress.ko] undefined!
>> ERROR: "crypto_init_scomp_ops_async" [crypto/acompress.ko] undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v3] poly1305: generic C can be faster on chips with slow unaligned access

2016-11-12 Thread kbuild test robot
Hi Jason,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.9-rc4 next-2016]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Jason-A-Donenfeld/poly1305-generic-C-can-be-faster-on-chips-with-slow-unaligned-access/20161108-053912
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: openrisc-allmodconfig (attached as .config)
compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=openrisc 

All errors (new ones prefixed by >>):

   crypto/poly1305_generic.c: In function 'poly1305_setrkey':
>> crypto/poly1305_generic.c:63:2: error: implicit declaration of function 
>> 'get_unaligned_le32'

vim +/get_unaligned_le32 +63 crypto/poly1305_generic.c

57  }
58  EXPORT_SYMBOL_GPL(crypto_poly1305_setkey);
59  
60  static void poly1305_setrkey(struct poly1305_desc_ctx *dctx, const u8 
*key)
61  {
62  /* r &= 0xffc0ffc0ffc0fff */
  > 63  dctx->r[0] = (get_unaligned_le32(key +  0) >> 0) & 0x3ff;
64  dctx->r[1] = (get_unaligned_le32(key +  3) >> 2) & 0x303;
65  dctx->r[2] = (get_unaligned_le32(key +  6) >> 4) & 0x3ffc0ff;
66  dctx->r[3] = (get_unaligned_le32(key +  9) >> 6) & 0x3f03fff;

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 3/3] drivers: crypto: Enable CPT options crypto for build

2016-11-18 Thread kbuild test robot
Hi George,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.9-rc5 next-20161117]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/gcherianv-gmail-com/Add-Support-for-Cavium-Cryptographic-Accelerarion-Unit/20161119-005337
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All error/warnings (new ones prefixed by >>):

warning: (CRYPTO_DEV_CPT) selects HW_RANDOM_OCTEON which has unmet direct 
dependencies (HW_RANDOM && CAVIUM_OCTEON_SOC)
   In file included from drivers/crypto/cavium/cpt/cpt_common.h:27:0,
from drivers/crypto/cavium/cpt/cpt.h:12,
from drivers/crypto/cavium/cpt/cpt_main.c:19:
>> drivers/crypto/cavium/cpt/cpt_hw_types.h:439:2: warning: no semicolon at end 
>> of struct or union
 } s;
 ^
>> drivers/crypto/cavium/cpt/cpt_hw_types.h:608:3: error: expected ',', ';' or 
>> '}' before 'uint64_t'
  uint64_t reserved_0_5:6;
  ^~~~
   drivers/crypto/cavium/cpt/cpt_main.c:236:13: warning: 
'cpt_enable_all_interrupts' defined but not used [-Wunused-function]
static void cpt_enable_all_interrupts(struct cpt_device *cpt)
^
--
   In file included from drivers/crypto/cavium/cpt/cpt_common.h:27:0,
from drivers/crypto/cavium/cpt/cpt.h:12,
from drivers/crypto/cavium/cpt/cpt_pf_mbox.c:11:
>> drivers/crypto/cavium/cpt/cpt_hw_types.h:439:2: warning: no semicolon at end 
>> of struct or union
 } s;
 ^
>> drivers/crypto/cavium/cpt/cpt_hw_types.h:608:3: error: expected ',', ';' or 
>> '}' before 'uint64_t'
  uint64_t reserved_0_5:6;
  ^~~~
--
>> drivers/char/hw_random/octeon-rng.c:19:31: fatal error: asm/octeon/octeon.h: 
>> No such file or directory
#include 
  ^
   compilation terminated.

vim +608 drivers/crypto/cavium/cpt/cpt_hw_types.h

fcb2dbd1 George Cherian 2016-11-18  433 uint64_t 
reserved_48_63:16;
fcb2dbd1 George Cherian 2016-11-18  434 uint64_t bstatus:48
fcb2dbd1 George Cherian 2016-11-18  435  #else /* Word 0 - Little Endian */
fcb2dbd1 George Cherian 2016-11-18  436 uint64_t bstatus:48;
fcb2dbd1 George Cherian 2016-11-18  437 uint64_t 
reserved_48_63:16;
fcb2dbd1 George Cherian 2016-11-18  438  #endif /* Word 0 - End */
fcb2dbd1 George Cherian 2016-11-18 @439 } s;
fcb2dbd1 George Cherian 2016-11-18  440 struct 
cptx_pf_exe_bist_status_cn81xx {
fcb2dbd1 George Cherian 2016-11-18  441  #if defined(__BIG_ENDIAN_BITFIELD) /* 
Word 0 - Big Endian */
fcb2dbd1 George Cherian 2016-11-18  442 uint64_t 
reserved_16_63:48;
fcb2dbd1 George Cherian 2016-11-18  443 uint64_t bstatus:16;
fcb2dbd1 George Cherian 2016-11-18  444  #else /* Word 0 - Little Endian */
fcb2dbd1 George Cherian 2016-11-18  445 uint64_t bstatus:16;
fcb2dbd1 George Cherian 2016-11-18  446 uint64_t 
reserved_16_63:48;
fcb2dbd1 George Cherian 2016-11-18  447  #endif /* Word 0 - End */
fcb2dbd1 George Cherian 2016-11-18  448 } cn81xx;
fcb2dbd1 George Cherian 2016-11-18  449  };
fcb2dbd1 George Cherian 2016-11-18  450  
fcb2dbd1 George Cherian 2016-11-18  451  /**
fcb2dbd1 George Cherian 2016-11-18  452   * Register (NCB) cpt#_pf_exe_ctl
fcb2dbd1 George Cherian 2016-11-18  453   *
fcb2dbd1 George Cherian 2016-11-18  454   * CPT PF Engine Control Register
fcb2dbd1 George Cherian 2016-11-18  455   * This register enables the engines.
fcb2dbd1 George Cherian 2016-11-18  456   * cptx_pf_exe_ctl_s
fcb2dbd1 George Cherian 2016-11-18  457   * Word0
fcb2dbd1 George Cherian 2016-11-18  458   *  enable:64 [63:0](R/W) Individual 
enables for each of the engines.
fcb2dbd1 George Cherian 2016-11-18  459   */
fcb2dbd1 George Cherian 2016-11-18  460  union cptx_pf_exe_ctl {
fcb2dbd1 George Cherian 2016-11-18  461 uint64_t u;
fcb2dbd1 George Cherian 2016-11-18  462 struct cptx_pf_exe_ctl_s {
fcb2dbd1 George Cherian 2016-11-18  463  #if defined(__BIG_ENDIAN_BITFIELD) /* 
Word 0 - Big Endian */
fcb2dbd1 George Cherian 2016-11-18  464 uint64_t enable:64;
fcb2dbd1 George Cherian 2016-11-18  465  #else /* Word 0 - Little Endian */
fcb2dbd1 George Cherian 2016-11-18  466 uint64_t enable:64;
fcb2dbd1 George Cherian 2016-11-18  467  #endif /* Word 0 - End */
fcb2dbd1 George Cherian 2016-11-18  468 } s;
fcb2dbd1 George Cherian 2016-11-18  469  };
fcb2

Re: [PATCH v3] crypto: add virtio-crypto driver

2016-11-28 Thread kbuild test robot
Hi Gonglei,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.9-rc7 next-20161128]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Gonglei/crypto-add-virtio-crypto-driver/20161128-214706
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: sparc-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sparc 

All error/warnings (new ones prefixed by >>):

   In file included from arch/sparc/include/asm/topology.h:4:0,
from include/linux/topology.h:35,
from include/linux/gfp.h:8,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/crypto/virtio/virtio_crypto_mgr.c:21:
   drivers/crypto/virtio/virtio_crypto_common.h: In function 
'virtio_crypto_get_current_node':
>> arch/sparc/include/asm/topology_64.h:44:44: error: implicit declaration of 
>> function 'cpu_data' [-Werror=implicit-function-declaration]
#define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id)
   ^
>> drivers/crypto/virtio/virtio_crypto_common.h:118:9: note: in expansion of 
>> macro 'topology_physical_package_id'
 return topology_physical_package_id(smp_processor_id());
^~~~
>> arch/sparc/include/asm/topology_64.h:44:57: error: request for member 
>> 'proc_id' in something not a structure or union
#define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id)
^
>> drivers/crypto/virtio/virtio_crypto_common.h:118:9: note: in expansion of 
>> macro 'topology_physical_package_id'
 return topology_physical_package_id(smp_processor_id());
^~~~
   cc1: some warnings being treated as errors

vim +/topology_physical_package_id +118 
drivers/crypto/virtio/virtio_crypto_common.h

   102  };
   103  
   104  int virtcrypto_devmgr_add_dev(struct virtio_crypto *vcrypto_dev);
   105  struct list_head *virtcrypto_devmgr_get_head(void);
   106  void virtcrypto_devmgr_rm_dev(struct virtio_crypto *vcrypto_dev);
   107  struct virtio_crypto *virtcrypto_devmgr_get_first(void);
   108  int virtcrypto_dev_in_use(struct virtio_crypto *vcrypto_dev);
   109  int virtcrypto_dev_get(struct virtio_crypto *vcrypto_dev);
   110  void virtcrypto_dev_put(struct virtio_crypto *vcrypto_dev);
   111  int virtcrypto_dev_started(struct virtio_crypto *vcrypto_dev);
   112  struct virtio_crypto *virtcrypto_get_dev_node(int node);
   113  int virtcrypto_dev_start(struct virtio_crypto *vcrypto);
   114  void virtcrypto_dev_stop(struct virtio_crypto *vcrypto);
   115  
   116  static inline int virtio_crypto_get_current_node(void)
   117  {
 > 118  return topology_physical_package_id(smp_processor_id());
   119  }
   120  
   121  int virtio_crypto_algs_register(void);
   122  void virtio_crypto_algs_unregister(void);
   123  
   124  #endif /* _VIRITO_CRYPTO_COMMON_H */

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[cryptodev:master 89/113] crypto/lrw.c:313:2-7: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorgani

2016-11-28 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   eb0955935e2ae3aa1fc9c34ec684ffe086e81da7
commit: 700cb3f5fe755b1a2d0f5cf3ae89ad7ef69d321f [89/113] crypto: lrw - Convert 
to skcipher


coccinelle warnings: (new ones prefixed by >>)

>> crypto/lrw.c:313:2-7: WARNING: NULL check before freeing functions like 
>> kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not 
>> needed. Maybe consider reorganizing relevant code to avoid passing NULL 
>> values.

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] crypto: fix ifnullfree.cocci warnings

2016-11-28 Thread kbuild test robot
crypto/lrw.c:313:2-7: WARNING: NULL check before freeing functions like kfree, 
debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe 
consider reorganizing relevant code to avoid passing NULL values.

 NULL check before some freeing functions is not needed.

 Based on checkpatch warning
 "kfree(NULL) is safe this check is probably not required"
 and kfreeaddr.cocci by Julia Lawall.

Generated by: scripts/coccinelle/free/ifnullfree.cocci

Signed-off-by: Fengguang Wu 
---

 lrw.c |3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/crypto/lrw.c
+++ b/crypto/lrw.c
@@ -309,8 +309,7 @@ static void exit_crypt(struct skcipher_r
 
rctx->left = 0;
 
-   if (rctx->ext)
-   kfree(rctx->ext);
+   kfree(rctx->ext);
 }
 
 static int do_encrypt(struct skcipher_request *req, int err)
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[cryptodev:master 90/113] crypto/xts.c:254:2-8: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorgani

2016-11-28 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   eb0955935e2ae3aa1fc9c34ec684ffe086e81da7
commit: f1c131b45410a202eb45cc55980a7a9e4e4b4f40 [90/113] crypto: xts - Convert 
to skcipher


coccinelle warnings: (new ones prefixed by >>)

>> crypto/xts.c:254:2-8: WARNING: NULL check before freeing functions like 
>> kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not 
>> needed. Maybe consider reorganizing relevant code to avoid passing NULL 
>> values.

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] crypto: fix ifnullfree.cocci warnings

2016-11-28 Thread kbuild test robot
crypto/xts.c:254:2-8: WARNING: NULL check before freeing functions like kfree, 
debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe 
consider reorganizing relevant code to avoid passing NULL values.

 NULL check before some freeing functions is not needed.

 Based on checkpatch warning
 "kfree(NULL) is safe this check is probably not required"
 and kfreeaddr.cocci by Julia Lawall.

Generated by: scripts/coccinelle/free/ifnullfree.cocci

Signed-off-by: Fengguang Wu 
---

 xts.c |3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/crypto/xts.c
+++ b/crypto/xts.c
@@ -250,8 +250,7 @@ static void exit_crypt(struct skcipher_r
 
rctx->left = 0;
 
-   if (rctx->ext)
-   kzfree(rctx->ext);
+   kzfree(rctx->ext);
 }
 
 static int do_encrypt(struct skcipher_request *req, int err)
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[cryptodev:master 109/113] drivers/crypto/caam/caamalg_desc.c:67:27: warning: cast to pointer from integer of different size

2016-11-28 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   eb0955935e2ae3aa1fc9c34ec684ffe086e81da7
commit: 8cea7b66b821fd914aa26a2af156604f9ef5f709 [109/113] crypto: caam - 
refactor encryption descriptors generation
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 8cea7b66b821fd914aa26a2af156604f9ef5f709
# save the attached .config to linux build tree
make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

   drivers/crypto/caam/caamalg_desc.c: In function 
'cnstr_shdsc_aead_null_encap':
>> drivers/crypto/caam/caamalg_desc.c:67:27: warning: cast to pointer from 
>> integer of different size [-Wint-to-pointer-cast]
  append_key_as_imm(desc, (void *)adata->key, adata->keylen_pad,
  ^
   drivers/crypto/caam/caamalg_desc.c: In function 
'cnstr_shdsc_aead_null_decap':
   drivers/crypto/caam/caamalg_desc.c:143:27: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
  append_key_as_imm(desc, (void *)adata->key, adata->keylen_pad,
  ^
   drivers/crypto/caam/caamalg_desc.c: In function 'init_sh_desc_key_aead':
   drivers/crypto/caam/caamalg_desc.c:228:27: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
  append_key_as_imm(desc, (void *)adata->key, adata->keylen_pad,
  ^
   drivers/crypto/caam/caamalg_desc.c:236:27: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
  append_key_as_imm(desc, (void *)cdata->key, enckeylen,
  ^
   drivers/crypto/caam/caamalg_desc.c: In function 'cnstr_shdsc_gcm_encap':
   drivers/crypto/caam/caamalg_desc.c:539:27: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
  append_key_as_imm(desc, (void *)cdata->key, cdata->keylen,
  ^
   drivers/crypto/caam/caamalg_desc.c: In function 'cnstr_shdsc_gcm_decap':
   drivers/crypto/caam/caamalg_desc.c:629:27: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
  append_key_as_imm(desc, (void *)cdata->key, cdata->keylen,
  ^
   drivers/crypto/caam/caamalg_desc.c: In function 'cnstr_shdsc_rfc4106_encap':
   drivers/crypto/caam/caamalg_desc.c:705:27: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
  append_key_as_imm(desc, (void *)cdata->key, cdata->keylen,
  ^
   drivers/crypto/caam/caamalg_desc.c: In function 'cnstr_shdsc_rfc4106_decap':
   drivers/crypto/caam/caamalg_desc.c:776:27: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
  append_key_as_imm(desc, (void *)cdata->key, cdata->keylen,
  ^
   drivers/crypto/caam/caamalg_desc.c: In function 'cnstr_shdsc_rfc4543_encap':
   drivers/crypto/caam/caamalg_desc.c:848:27: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
  append_key_as_imm(desc, (void *)cdata->key, cdata->keylen,
  ^
   drivers/crypto/caam/caamalg_desc.c: In function 'cnstr_shdsc_rfc4543_decap':
   drivers/crypto/caam/caamalg_desc.c:918:27: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
  append_key_as_imm(desc, (void *)cdata->key, cdata->keylen,
  ^
   drivers/crypto/caam/caamalg_desc.c: In function 
'cnstr_shdsc_ablkcipher_encap':
   drivers/crypto/caam/caamalg_desc.c:1009:26: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
 append_key_as_imm(desc, (void *)cdata->key, cdata->keylen,
 ^
   drivers/crypto/caam/caamalg_desc.c:1014:15: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
  u8 *nonce = (u8 *)cdata->key + cdata->keylen;
  ^
   drivers/crypto/caam/caamalg_desc.c: In function 
'cnstr_shdsc_ablkcipher_decap':
   drivers/crypto/caam/caamalg_desc.c:1074:26: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
 append_key_as_imm(desc, (void *)cdata->key, cdata->keylen,
 ^
   drivers/crypto/caam/caamalg_desc.c:1079:15: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
  u8 *nonce = (u8 *)cdata->key + cdata->keylen;
  ^
   drivers/crypto/caam/caamalg_desc.c: In function 
'cnstr_shdsc_ablkcipher_givencap':
   drivers/crypto/caam/caamalg_desc.c:1143:26: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast]
 append_key_as_imm(desc, (void *)cdata->key, cdata->keylen,

[cryptodev:master 98/113] arch/arm64/crypto/aes-glue.c:353: undefined reference to `simd_skcipher_free'

2016-11-28 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   eb0955935e2ae3aa1fc9c34ec684ffe086e81da7
commit: d0ed0db149fce92f4d69490f18be23ddc470bf6f [98/113] crypto: arm64/aes - 
Convert to skcipher
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d0ed0db149fce92f4d69490f18be23ddc470bf6f
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   arch/arm64/crypto/built-in.o: In function `aes_exit':
>> arch/arm64/crypto/aes-glue.c:353: undefined reference to `simd_skcipher_free'
   arch/arm64/crypto/aes-glue.c:353:(.text+0x2440): relocation truncated to 
fit: R_AARCH64_CALL26 against undefined symbol `simd_skcipher_free'
>> arch/arm64/crypto/aes-glue.c:353: undefined reference to `simd_skcipher_free'
   arch/arm64/crypto/aes-glue.c:353:(.text+0x2454): relocation truncated to 
fit: R_AARCH64_CALL26 against undefined symbol `simd_skcipher_free'
   arch/arm64/crypto/built-in.o: In function `aes_init':
>> arch/arm64/crypto/aes-glue.c:375: undefined reference to 
>> `simd_skcipher_create_compat'
   arch/arm64/crypto/aes-glue.c:375:(.init.text+0x150): relocation truncated to 
fit: R_AARCH64_CALL26 against undefined symbol `simd_skcipher_create_compat'

vim +353 arch/arm64/crypto/aes-glue.c

   347  
   348  static void aes_exit(void)
   349  {
   350  int i;
   351  
   352  for (i = 0; i < ARRAY_SIZE(aes_simd_algs) && aes_simd_algs[i]; 
i++)
 > 353  simd_skcipher_free(aes_simd_algs[i]);
   354  
   355  crypto_unregister_skciphers(aes_algs, ARRAY_SIZE(aes_algs));
   356  }
   357  
   358  static int __init aes_init(void)
   359  {
   360  struct simd_skcipher_alg *simd;
   361  const char *basename;
   362  const char *algname;
   363  const char *drvname;
   364  int err;
   365  int i;
   366  
   367  err = crypto_register_skciphers(aes_algs, ARRAY_SIZE(aes_algs));
   368  if (err)
   369  return err;
   370  
   371  for (i = 0; i < ARRAY_SIZE(aes_algs); i++) {
   372  algname = aes_algs[i].base.cra_name + 2;
   373  drvname = aes_algs[i].base.cra_driver_name + 2;
   374  basename = aes_algs[i].base.cra_driver_name;
 > 375  simd = simd_skcipher_create_compat(algname, drvname, 
 > basename);
   376  err = PTR_ERR(simd);
   377  if (IS_ERR(simd))
   378  goto unregister_simds;

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[cryptodev:master 99/113] ERROR: "simd_skcipher_free" [arch/arm/crypto/aes-arm-ce.ko] undefined!

2016-11-28 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   eb0955935e2ae3aa1fc9c34ec684ffe086e81da7
commit: da40e7a4ba4d6391a797f4bdbd6d534067d87087 [99/113] crypto: aes-ce - 
Convert to skcipher
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout da40e7a4ba4d6391a797f4bdbd6d534067d87087
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

>> ERROR: "simd_skcipher_free" [arch/arm/crypto/aes-arm-ce.ko] undefined!
>> ERROR: "simd_skcipher_create_compat" [arch/arm/crypto/aes-arm-ce.ko] 
>> undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[cryptodev:master 102/113] ERROR: "simd_skcipher_free" [arch/arm/crypto/aes-arm-bs.ko] undefined!

2016-11-28 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   eb0955935e2ae3aa1fc9c34ec684ffe086e81da7
commit: 211f41af534ad426199a523e4cfec2034a2bdef7 [102/113] crypto: aesbs - 
Convert to skcipher
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 211f41af534ad426199a523e4cfec2034a2bdef7
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   ERROR: "simd_skcipher_free" [arch/arm/crypto/aes-arm-ce.ko] undefined!
   ERROR: "simd_skcipher_create_compat" [arch/arm/crypto/aes-arm-ce.ko] 
undefined!
>> ERROR: "simd_skcipher_free" [arch/arm/crypto/aes-arm-bs.ko] undefined!
>> ERROR: "simd_skcipher_create_compat" [arch/arm/crypto/aes-arm-bs.ko] 
>> undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[cryptodev:master 98/130] arch/arm64/crypto/aes-neon-blk.o:(.bss+0x0): multiple definition of `aes_simd_algs'

2016-11-30 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   81126d1a8bc23c72a13c05c4308dc6951afc3b45
commit: d0ed0db149fce92f4d69490f18be23ddc470bf6f [98/130] crypto: arm64/aes - 
Convert to skcipher
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d0ed0db149fce92f4d69490f18be23ddc470bf6f
# save the attached .config to linux build tree
make.cross ARCH=arm64 

Note: the cryptodev/master HEAD 81126d1a8bc23c72a13c05c4308dc6951afc3b45 builds 
fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

>> arch/arm64/crypto/aes-neon-blk.o:(.bss+0x0): multiple definition of 
>> `aes_simd_algs'
   arch/arm64/crypto/aes-ce-blk.o:(.bss+0x0): first defined here

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 2/3] crypto: brcm: Add Broadcom SPU driver

2016-12-01 Thread kbuild test robot
Hi Rob,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.9-rc7 next-20161201]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Rob-Rice/crypto-brcm-DT-documentation-for-Broadcom-SPU-driver/20161202-010038
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

>> ERROR: "des_ekey" [drivers/crypto/bcm/bcm_crypto_spu.ko] undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v5 1/1] crypto: add virtio-crypto driver

2016-12-03 Thread kbuild test robot
Hi Gonglei,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.9-rc7 next-20161202]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Gonglei/crypto-add-virtio-crypto-driver/20161202-190424
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   In file included from arch/sparc/include/asm/topology.h:4:0,
from include/linux/topology.h:35,
from include/linux/gfp.h:8,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/crypto/virtio/virtio_crypto_mgr.c:21:
   drivers/crypto/virtio/virtio_crypto_common.h: In function 
'virtio_crypto_get_current_node':
>> arch/sparc/include/asm/topology_64.h:44:44: error: implicit declaration of 
>> function 'cpu_data' [-Werror=implicit-function-declaration]
#define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id)
   ^
   drivers/crypto/virtio/virtio_crypto_common.h:116:9: note: in expansion of 
macro 'topology_physical_package_id'
 return topology_physical_package_id(smp_processor_id());
^~~~
>> arch/sparc/include/asm/topology_64.h:44:57: error: request for member 
>> 'proc_id' in something not a structure or union
#define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id)
^
   drivers/crypto/virtio/virtio_crypto_common.h:116:9: note: in expansion of 
macro 'topology_physical_package_id'
 return topology_physical_package_id(smp_processor_id());
^~~~
   cc1: some warnings being treated as errors

vim +/cpu_data +44 arch/sparc/include/asm/topology_64.h

f5e706ad include/asm-sparc/topology_64.h  Sam Ravnborg2008-07-17  
28  
9d079337 arch/sparc/include/asm/topology_64.h David Miller2009-01-11  
29  #define cpumask_of_pcibus(bus)\
9d079337 arch/sparc/include/asm/topology_64.h David Miller2009-01-11  
30(pcibus_to_node(bus) == -1 ? \
e9b37512 arch/sparc/include/asm/topology_64.h Rusty Russell   2009-03-16  
31 cpu_all_mask : \
9d079337 arch/sparc/include/asm/topology_64.h David Miller2009-01-11  
32 cpumask_of_node(pcibus_to_node(bus)))
f5e706ad include/asm-sparc/topology_64.h  Sam Ravnborg2008-07-17  
33  
52708d69 arch/sparc/include/asm/topology_64.h Nitin Gupta 2015-11-02  
34  int __node_distance(int, int);
52708d69 arch/sparc/include/asm/topology_64.h Nitin Gupta 2015-11-02  
35  #define node_distance(a, b) __node_distance(a, b)
52708d69 arch/sparc/include/asm/topology_64.h Nitin Gupta 2015-11-02  
36  
f5e706ad include/asm-sparc/topology_64.h  Sam Ravnborg2008-07-17  
37  #else /* CONFIG_NUMA */
f5e706ad include/asm-sparc/topology_64.h  Sam Ravnborg2008-07-17  
38  
f5e706ad include/asm-sparc/topology_64.h  Sam Ravnborg2008-07-17  
39  #include 
f5e706ad include/asm-sparc/topology_64.h  Sam Ravnborg2008-07-17  
40  
f5e706ad include/asm-sparc/topology_64.h  Sam Ravnborg2008-07-17  
41  #endif /* !(CONFIG_NUMA) */
f5e706ad include/asm-sparc/topology_64.h  Sam Ravnborg2008-07-17  
42  
f5e706ad include/asm-sparc/topology_64.h  Sam Ravnborg2008-07-17  
43  #ifdef CONFIG_SMP
f5e706ad include/asm-sparc/topology_64.h  Sam Ravnborg2008-07-17 
@44  #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id)
f5e706ad include/asm-sparc/topology_64.h  Sam Ravnborg2008-07-17  
45  #define topology_core_id(cpu) (cpu_data(cpu).core_id)
acc455cf arch/sparc/include/asm/topology_64.h chris hyser 2015-04-22  
46  #define topology_core_cpumask(cpu)(&cpu_core_sib_map[cpu])
06931e62 arch/sparc/include/asm/topology_64.h Bartosz Golaszewski 2015-05-26  
47  #define topology_sibling_cpumask(cpu) (&per_cpu(cpu_sibling_map, 
cpu))
f5e706ad include/asm-sparc/topology_64.h  Sam Ravnborg2008-07-17  
48  #endif /* CONFIG_SMP */
f5e706ad include/asm-sparc/topology_64.h  Sam Ravnborg2008-07-17  
49  
3905c54f arch/sparc/include/asm/topology_64.h Stephen Rothwell2011-04-12  
50  extern cpumask_t cpu_core_map[NR_CPUS];
acc455cf arch/sparc/include/asm/topology_64.h chris hyser 2015-04-22  
51  extern cpumask_t cpu_core_sib_ma

Re: [PATCH 7/7] hwrng: core: Remove two unused include

2016-12-09 Thread kbuild test robot
Hi Corentin,

[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on v4.9-rc8 next-20161209]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Corentin-Labbe/hwrng-core-do-not-use-multiple-blank-lines/20161210-072632
config: i386-randconfig-x007-201649 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/linkage.h:4:0,
from include/linux/kernel.h:6,
from include/linux/delay.h:10,
from drivers/char/hw_random/core.c:13:
   drivers/char/hw_random/core.c: In function 'rng_dev_open':
>> drivers/char/hw_random/core.c:169:11: error: dereferencing pointer to 
>> incomplete type 'struct file'
 if ((filp->f_mode & FMODE_READ) == 0)
  ^
   include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> drivers/char/hw_random/core.c:169:2: note: in expansion of macro 'if'
 if ((filp->f_mode & FMODE_READ) == 0)
 ^~
>> drivers/char/hw_random/core.c:169:22: error: 'FMODE_READ' undeclared (first 
>> use in this function)
 if ((filp->f_mode & FMODE_READ) == 0)
 ^
   include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> drivers/char/hw_random/core.c:169:2: note: in expansion of macro 'if'
 if ((filp->f_mode & FMODE_READ) == 0)
 ^~
   drivers/char/hw_random/core.c:169:22: note: each undeclared identifier is 
reported only once for each function it appears in
 if ((filp->f_mode & FMODE_READ) == 0)
 ^
   include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> drivers/char/hw_random/core.c:169:2: note: in expansion of macro 'if'
 if ((filp->f_mode & FMODE_READ) == 0)
 ^~
>> drivers/char/hw_random/core.c:171:21: error: 'FMODE_WRITE' undeclared (first 
>> use in this function)
 if (filp->f_mode & FMODE_WRITE)
^
   include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
   drivers/char/hw_random/core.c:171:2: note: in expansion of macro 'if'
 if (filp->f_mode & FMODE_WRITE)
 ^~
   drivers/char/hw_random/core.c: In function 'rng_dev_read':
>> drivers/char/hw_random/core.c:221:23: error: 'O_NONBLOCK' undeclared (first 
>> use in this function)
!(filp->f_flags & O_NONBLOCK));
  ^~
   drivers/char/hw_random/core.c: At top level:
>> drivers/char/hw_random/core.c:272:21: error: variable 'rng_chrdev_ops' has 
>> initializer but incomplete type
static const struct file_operations rng_chrdev_ops = {
^~~
>> drivers/char/hw_random/core.c:273:2: error: unknown field 'owner' specified 
>> in initializer
 .owner  = THIS_MODULE,
 ^
   In file included from include/linux/linkage.h:6:0,
from include/linux/kernel.h:6,
from include/linux/delay.h:10,
from drivers/char/hw_random/core.c:13:
   include/linux/export.h:37:21: warning: excess elements in struct initializer
#define THIS_MODULE ((struct module *)0)
^
>> drivers/char/hw_random/core.c:273:12: note: in expansion of macro 
>> 'THIS_MODULE'
 .owner  = THIS_MODULE,
   ^~~
   include/linux/export.h:37:21: note: (near initialization for 
'rng_chrdev_ops')
#define THIS_MODULE ((struct module *)0)
^
>> drivers/char/hw_random/core.c:273:12: note: in expansion of macro 
>> 'THIS_MODULE'
 .owner  = THIS_MODULE,
   ^~~
>> drivers/char/hw_random/core.c:274:2: error: unknown field 'open' specified 
>> in initializer
 .open  = rng_dev_open,
 ^
>> drivers/char/hw_random/core.c:274:11: warning: excess elements in struct 
>> initializer
 .open  = rng_dev_open,
  ^~~~
   drivers/char/hw_random/core.c:274:11: note: (near initialization for 
'rng_chrdev_ops')
>> drivers/char/hw_random/core.c:275:2: error: unknown field 'read' specified 
>> in initializer
 .read  = rng_dev_read,
 ^
   drivers/char/hw_random/core.c:275:11: warning: excess elements in struct 
initializer
 .read  = rng_dev_read,
  ^~~~
   drivers/char/hw_random/core.c:275:11: note: (near initialization for 
'rng_chrdev_ops')
>> drivers/char/hw_random/core.c:276:2: error: unknown field 'l

Re: [PATCH 7/7] hwrng: core: Remove two unused include

2016-12-09 Thread kbuild test robot
Hi Corentin,

[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on v4.9-rc8 next-20161209]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Corentin-Labbe/hwrng-core-do-not-use-multiple-blank-lines/20161210-072632
config: i386-randconfig-i0-201649 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/char/hw_random/core.c: In function 'rng_dev_open':
>> drivers/char/hw_random/core.c:169:11: error: dereferencing pointer to 
>> incomplete type
 if ((filp->f_mode & FMODE_READ) == 0)
  ^
   drivers/char/hw_random/core.c:169:22: error: 'FMODE_READ' undeclared (first 
use in this function)
 if ((filp->f_mode & FMODE_READ) == 0)
 ^
   drivers/char/hw_random/core.c:169:22: note: each undeclared identifier is 
reported only once for each function it appears in
   drivers/char/hw_random/core.c:171:10: error: dereferencing pointer to 
incomplete type
 if (filp->f_mode & FMODE_WRITE)
 ^
   drivers/char/hw_random/core.c:171:21: error: 'FMODE_WRITE' undeclared (first 
use in this function)
 if (filp->f_mode & FMODE_WRITE)
^
   drivers/char/hw_random/core.c: In function 'rng_dev_read':
   drivers/char/hw_random/core.c:221:11: error: dereferencing pointer to 
incomplete type
!(filp->f_flags & O_NONBLOCK));
  ^
   drivers/char/hw_random/core.c:221:23: error: 'O_NONBLOCK' undeclared (first 
use in this function)
!(filp->f_flags & O_NONBLOCK));
  ^
   drivers/char/hw_random/core.c:230:12: error: dereferencing pointer to 
incomplete type
   if (filp->f_flags & O_NONBLOCK) {
   ^
   drivers/char/hw_random/core.c: At top level:
   drivers/char/hw_random/core.c:272:21: error: variable 'rng_chrdev_ops' has 
initializer but incomplete type
static const struct file_operations rng_chrdev_ops = {
^
   drivers/char/hw_random/core.c:273:2: error: unknown field 'owner' specified 
in initializer
 .owner  = THIS_MODULE,
 ^
   In file included from include/linux/linkage.h:6:0,
from include/linux/kernel.h:6,
from include/linux/delay.h:10,
from drivers/char/hw_random/core.c:13:
   include/linux/export.h:37:30: warning: excess elements in struct initializer 
[enabled by default]
#define THIS_MODULE ((struct module *)0)
 ^
   drivers/char/hw_random/core.c:273:12: note: in expansion of macro 
'THIS_MODULE'
 .owner  = THIS_MODULE,
   ^
   include/linux/export.h:37:30: warning: (near initialization for 
'rng_chrdev_ops') [enabled by default]
#define THIS_MODULE ((struct module *)0)
 ^
   drivers/char/hw_random/core.c:273:12: note: in expansion of macro 
'THIS_MODULE'
 .owner  = THIS_MODULE,
   ^
   drivers/char/hw_random/core.c:274:2: error: unknown field 'open' specified 
in initializer
 .open  = rng_dev_open,
 ^
   drivers/char/hw_random/core.c:274:2: warning: excess elements in struct 
initializer [enabled by default]
   drivers/char/hw_random/core.c:274:2: warning: (near initialization for 
'rng_chrdev_ops') [enabled by default]
   drivers/char/hw_random/core.c:275:2: error: unknown field 'read' specified 
in initializer
 .read  = rng_dev_read,
 ^
   drivers/char/hw_random/core.c:275:2: warning: excess elements in struct 
initializer [enabled by default]
   drivers/char/hw_random/core.c:275:2: warning: (near initialization for 
'rng_chrdev_ops') [enabled by default]
   drivers/char/hw_random/core.c:276:2: error: unknown field 'llseek' specified 
in initializer
 .llseek  = noop_llseek,
 ^
   drivers/char/hw_random/core.c:276:13: error: 'noop_llseek' undeclared here 
(not in a function)
 .llseek  = noop_llseek,
^
   drivers/char/hw_random/core.c:276:2: warning: excess elements in struct 
initializer [enabled by default]
 .llseek  = noop_llseek,
 ^
   drivers/char/hw_random/core.c:276:2: warning: (near initialization for 
'rng_chrdev_ops') [enabled by default]

vim +169 drivers/char/hw_random/core.c

844dd05f Michael Buesch 2006-06-26  163 return 0;
844dd05f Michael Buesch 2006-06-26  164  }
844dd05f Michael Buesch 2006-06-26  165  
844dd05f Michael Buesch 2006-06-26  166  static int rng_dev_open(struct inode 
*inode, struct file *filp)
844dd05f Michael Buesch 2006-06-26  167  {
844dd05f Michael Buesch 2006-06-26  168 /* enforce read-only access to 
this chrdev */
844dd05f Michael Buesch 2006-06-26 @169 if ((filp->f_mode & FMODE_READ) 
== 0)
844dd05f Michael Buesch 2006-06-26  170 return -EINVAL;
844dd05f Michael Buesch 2006-06-26

Re: [PATCH 3/3] crypto: brcm: Add Broadcom SPU driver DT entry.

2016-12-10 Thread kbuild test robot
Hi Rob,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.9-rc8]
[cannot apply to next-20161209]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Rob-Rice/crypto-brcm-DT-documentation-for-Broadcom-SPU-driver/20161202-010038
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

>> ERROR: Input tree has errors, aborting (use -f to force output)

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v3 1/3] siphash: add cryptographically secure hashtable function

2016-12-14 Thread kbuild test robot
Hi Jason,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.9 next-20161214]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Jason-A-Donenfeld/siphash-add-cryptographically-secure-hashtable-function/20161215-041458
config: i386-randconfig-i1-201650 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   lib/test_siphash.c: In function 'siphash_test_init':
>> lib/test_siphash.c:49:2: error: requested alignment is not an integer 
>> constant
 u8 in[64] __aligned(SIPHASH24_ALIGNMENT);
 ^
   lib/test_siphash.c:50:2: error: requested alignment is not an integer 
constant
 u8 k[16] __aligned(SIPHASH24_ALIGNMENT);
 ^

vim +49 lib/test_siphash.c

43  0x6ca4ecb15c5f91e1ULL, 0x9f626da15c9625f3ULL, 
0xe51b38608ef25f57ULL,
44  0x958a324ceb064572ULL
45  };
46  
47  static int __init siphash_test_init(void)
48  {
  > 49  u8 in[64] __aligned(SIPHASH24_ALIGNMENT);
50  u8 k[16] __aligned(SIPHASH24_ALIGNMENT);
51  u8 in_unaligned[65];
52  u8 k_unaligned[65];

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v3 2/3] secure_seq: use siphash24 instead of md5_transform

2016-12-14 Thread kbuild test robot
Hi Jason,

[auto build test ERROR on linus/master]
[also build test ERROR on next-20161214]
[cannot apply to v4.9]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Jason-A-Donenfeld/siphash-add-cryptographically-secure-hashtable-function/20161215-041458
config: openrisc-or1ksim_defconfig (attached as .config)
compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=openrisc 

All errors (new ones prefixed by >>):

>> net/core/secure_seq.c:20:1: error: requested alignment is not a constant
   net/core/secure_seq.c: In function 'secure_tcp_sequence_number':
   net/core/secure_seq.c:99:2: error: requested alignment is not a constant
   net/core/secure_seq.c: In function 'secure_ipv4_port_ephemeral':
   net/core/secure_seq.c:119:2: error: requested alignment is not a constant

vim +20 net/core/secure_seq.c

14  #include 
15  
16  #if IS_ENABLED(CONFIG_IPV6) || IS_ENABLED(CONFIG_INET)
17  #include 
18  #include 
19  
  > 20  static u8 net_secret[SIPHASH24_KEY_LEN] __aligned(SIPHASH24_ALIGNMENT);
21  
22  static __always_inline void net_secret_init(void)
23  {

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v3 3/3] random: use siphash24 instead of md5 for get_random_int/long

2016-12-14 Thread kbuild test robot
Hi Jason,

[auto build test ERROR on linus/master]
[also build test ERROR on next-20161214]
[cannot apply to v4.9]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Jason-A-Donenfeld/siphash-add-cryptographically-secure-hashtable-function/20161215-041458
config: i386-randconfig-i1-201650 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

>> drivers/char/random.c:2046:1: error: requested alignment is not an integer 
>> constant
static u8 random_int_secret[SIPHASH24_KEY_LEN] 
__aligned(SIPHASH24_ALIGNMENT);
^
   drivers/char/random.c: In function 'get_random_int':
   drivers/char/random.c:2071:2: error: requested alignment is not an integer 
constant
 } __aligned(SIPHASH24_ALIGNMENT) combined;
 ^
   drivers/char/random.c: In function 'get_random_long':
   drivers/char/random.c:2100:2: error: requested alignment is not an integer 
constant
 } __aligned(SIPHASH24_ALIGNMENT) combined;
 ^

vim +2046 drivers/char/random.c

  2040  },
  2041  #endif
  2042  { }
  2043  };
  2044  #endif  /* CONFIG_SYSCTL */
  2045  
> 2046  static u8 random_int_secret[SIPHASH24_KEY_LEN] 
> __aligned(SIPHASH24_ALIGNMENT);
  2047  
  2048  int random_int_secret_init(void)
  2049  {

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v3 3/3] random: use siphash24 instead of md5 for get_random_int/long

2016-12-14 Thread kbuild test robot
Hi Jason,

[auto build test ERROR on linus/master]
[also build test ERROR on next-20161214]
[cannot apply to v4.9]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Jason-A-Donenfeld/siphash-add-cryptographically-secure-hashtable-function/20161215-041458
config: openrisc-or1ksim_defconfig (attached as .config)
compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=openrisc 

All errors (new ones prefixed by >>):

>> drivers/char/random.c:2046:1: error: requested alignment is not a constant
   drivers/char/random.c: In function 'get_random_int':
   drivers/char/random.c:2071:2: error: requested alignment is not a constant
   drivers/char/random.c: In function 'get_random_long':
   drivers/char/random.c:2100:2: error: requested alignment is not a constant

vim +2046 drivers/char/random.c

  2040  },
  2041  #endif
  2042  { }
  2043  };
  2044  #endif  /* CONFIG_SYSCTL */
  2045  
> 2046  static u8 random_int_secret[SIPHASH24_KEY_LEN] 
> __aligned(SIPHASH24_ALIGNMENT);
  2047  
  2048  int random_int_secret_init(void)
  2049  {

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v4 1/4] siphash: add cryptographically secure hashtable function

2016-12-14 Thread kbuild test robot
Hi Jason,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.9 next-20161215]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Jason-A-Donenfeld/siphash-add-cryptographically-secure-hashtable-function/20161215-095213
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=ia64 

Note: the 
linux-review/Jason-A-Donenfeld/siphash-add-cryptographically-secure-hashtable-function/20161215-095213
 HEAD 3e343f4316f94cded0d1384cf35957fd51dbbc28 builds fine.
  It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/linkage.h:6:0,
from include/linux/kernel.h:6,
from lib/siphash.c:12:
>> lib/siphash.c:152:15: error: 'siphash24_unaligned' undeclared here (not in a 
>> function)
EXPORT_SYMBOL(siphash24_unaligned);
  ^
   include/linux/export.h:58:16: note: in definition of macro '___EXPORT_SYMBOL'
 extern typeof(sym) sym;  \
   ^~~
>> lib/siphash.c:152:1: note: in expansion of macro 'EXPORT_SYMBOL'
EXPORT_SYMBOL(siphash24_unaligned);
^

vim +/siphash24_unaligned +152 lib/siphash.c

 6   * https://131002.net/siphash/
 7   *
 8   * This implementation is specifically for SipHash2-4.
 9   */
10  
11  #include 
  > 12  #include 
13  #include 
14  
15  #if defined(CONFIG_DCACHE_WORD_ACCESS) && BITS_PER_LONG == 64
16  #include 
17  #include 
18  #endif
19  
20  static inline u16 le16_to_cpuvp(const void *p)
21  {
22  return le16_to_cpup(p);
23  }
24  static inline u32 le32_to_cpuvp(const void *p)
25  {
26  return le32_to_cpup(p);
27  }
28  static inline u64 le64_to_cpuvp(const void *p)
29  {
30  return le64_to_cpup(p);
31  }
32  
33  #define SIPROUND \
34  do { \
35  v0 += v1; v1 = rol64(v1, 13); v1 ^= v0; v0 = rol64(v0, 32); \
36  v2 += v3; v3 = rol64(v3, 16); v3 ^= v2; \
37  v0 += v3; v3 = rol64(v3, 21); v3 ^= v0; \
38  v2 += v1; v1 = rol64(v1, 17); v1 ^= v2; v2 = rol64(v2, 32); \
39  } while(0)
40  
41  /**
42   * siphash - compute 64-bit siphash PRF value
43   * @data: buffer to hash, must be aligned to SIPHASH_ALIGNMENT
44   * @size: size of @data
45   * @key: key buffer of size SIPHASH_KEY_LEN, must be aligned to 
SIPHASH_ALIGNMENT
46   */
47  u64 siphash(const u8 *data, size_t len, const u8 key[SIPHASH_KEY_LEN])
48  {
49  u64 v0 = 0x736f6d6570736575ULL;
50  u64 v1 = 0x646f72616e646f6dULL;
51  u64 v2 = 0x6c7967656e657261ULL;
52  u64 v3 = 0x7465646279746573ULL;
53  u64 b = ((u64)len) << 56;
54  u64 k0 = le64_to_cpuvp(key);
55  u64 k1 = le64_to_cpuvp(key + sizeof(u64));
56  u64 m;
57  const u8 *end = data + len - (len % sizeof(u64));
58  const u8 left = len & (sizeof(u64) - 1);
59  v3 ^= k1;
60  v2 ^= k0;
61  v1 ^= k1;
62  v0 ^= k0;
63  for (; data != end; data += sizeof(u64)) {
64  m = le64_to_cpuvp(data);
65  v3 ^= m;
66  SIPROUND;
67  SIPROUND;
68  v0 ^= m;
69  }
70  #if defined(CONFIG_DCACHE_WORD_ACCESS) && BITS_PER_LONG == 64
71  if (left)
72  b |= le64_to_cpu((__force 
__le64)(load_unaligned_zeropad(data) & bytemask_from_count(left)));
73  #else
74  switch (left) {
75  case 7: b |= ((u64)data[6]) << 48;
76  case 6: b |= ((u64)data[5]) << 40;
77  case 5: b |= ((u64)data[4]) << 32;
78  case 4: b |= le32_to_cpuvp(data); break;
79  case 3: b |= ((u64)data[2]) << 16;
80  case 2: b |= le16_to_cpuvp(data); break;
81  case 1: b |= data[0];
82  }
83  #endif
84  v3 ^= b;
85  SIPROUND;
86  SIPROUND;
87  v0 ^= b;
88  v2 ^= 0xff;
89  SIPROUND;
90  SIPROUND;
91  SIPROUND;
92  SIPROUND;
93  return (v0 ^ v1) ^ (v2 ^ v3);
94  }
95  EXPORT_SYMBOL(siphash);
96  
97  #ifndef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS
98  /**
99   * siphash - compute 64-bit siphash PRF value, without alignment 
requirements
   100   * @data: buffer to hash
   101   * @size: size of @data
   1

Re: [PATCH v5 1/4] siphash: add cryptographically secure PRF

2016-12-15 Thread kbuild test robot
Hi Jason,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.9 next-20161215]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Jason-A-Donenfeld/siphash-add-cryptographically-secure-PRF/20161216-092837
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   lib/siphash.c: In function 'siphash_unaligned':
>> lib/siphash.c:123:15: error: 'bytes' undeclared (first use in this function)
 case 1: b |= bytes[0];
  ^
   lib/siphash.c:123:15: note: each undeclared identifier is reported only once 
for each function it appears in

vim +/bytes +123 lib/siphash.c

   117  case 7: b |= ((u64)end[6]) << 48;
   118  case 6: b |= ((u64)end[5]) << 40;
   119  case 5: b |= ((u64)end[4]) << 32;
   120  case 4: b |= get_unaligned_le32(end); break;
   121  case 3: b |= ((u64)end[2]) << 16;
   122  case 2: b |= get_unaligned_le16(end); break;
 > 123  case 1: b |= bytes[0];
   124  }
   125  #endif
   126  v3 ^= b;

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 11/12] crypto: atmel-authenc: add support to authenc(hmac(shaX),Y(aes)) modes

2016-12-22 Thread kbuild test robot
Hi Cyrille,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on next-20161222]
[cannot apply to v4.9]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Cyrille-Pitchen/crypto-atmel-authenc-add-support-to-authenc-hmac-shaX-Y-aes-modes/20161223-012130
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All error/warnings (new ones prefixed by >>):

warning: (CRYPTO_DEV_ATMEL_AUTHENC) selects CRYPTO_DEV_ATMEL_SHA which has 
unmet direct dependencies (CRYPTO && CRYPTO_HW && ARCH_AT91)
>> drivers/crypto/atmel-aes.c:44:27: fatal error: atmel-authenc.h: No such file 
>> or directory
#include "atmel-authenc.h"
  ^
   compilation terminated.
--
>> drivers/crypto/atmel-sha.c:44:27: fatal error: atmel-authenc.h: No such file 
>> or directory
#include "atmel-authenc.h"
  ^
   compilation terminated.

vim +44 drivers/crypto/atmel-aes.c

38  #include 
39  #include 
40  #include 
41  #include 
42  #include 
43  #include "atmel-aes-regs.h"
  > 44  #include "atmel-authenc.h"
45  
46  #define ATMEL_AES_PRIORITY  300
47  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v2 11/12] crypto: atmel-authenc: add support to authenc(hmac(shaX),Y(aes)) modes

2016-12-22 Thread kbuild test robot
Hi Cyrille,

[auto build test WARNING on cryptodev/master]
[also build test WARNING on next-20161222]
[cannot apply to v4.9]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Cyrille-Pitchen/crypto-atmel-authenc-add-support-to-authenc-hmac-shaX-Y-aes-modes/20161223-015820
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=alpha 

All warnings (new ones prefixed by >>):

   In file included from include/linux/printk.h:305:0,
from include/linux/kernel.h:13,
from drivers/crypto/atmel-sha.c:17:
   drivers/crypto/atmel-sha.c: In function 'atmel_sha_xmit_cpu':
>> drivers/crypto/atmel-sha.c:465:19: warning: format '%d' expects argument of 
>> type 'int', but argument 6 has type 'size_t {aka long unsigned int}' 
>> [-Wformat=]
 dev_dbg(dd->dev, "xmit_cpu: digcnt: 0x%llx 0x%llx, length: %d, final: 
%d\n",
  ^
   include/linux/dynamic_debug.h:134:39: note: in definition of macro 
'dynamic_dev_dbg'
  __dynamic_dev_dbg(&descriptor, dev, fmt, \
  ^~~
>> drivers/crypto/atmel-sha.c:465:2: note: in expansion of macro 'dev_dbg'
 dev_dbg(dd->dev, "xmit_cpu: digcnt: 0x%llx 0x%llx, length: %d, final: 
%d\n",
 ^~~
   drivers/crypto/atmel-sha.c: In function 'atmel_sha_xmit_pdc':
   drivers/crypto/atmel-sha.c:494:19: warning: format '%d' expects argument of 
type 'int', but argument 6 has type 'size_t {aka long unsigned int}' [-Wformat=]
 dev_dbg(dd->dev, "xmit_pdc: digcnt: 0x%llx 0x%llx, length: %d, final: 
%d\n",
  ^
   include/linux/dynamic_debug.h:134:39: note: in definition of macro 
'dynamic_dev_dbg'
  __dynamic_dev_dbg(&descriptor, dev, fmt, \
  ^~~
   drivers/crypto/atmel-sha.c:494:2: note: in expansion of macro 'dev_dbg'
 dev_dbg(dd->dev, "xmit_pdc: digcnt: 0x%llx 0x%llx, length: %d, final: 
%d\n",
 ^~~
   drivers/crypto/atmel-sha.c: In function 'atmel_sha_xmit_dma':
   drivers/crypto/atmel-sha.c:541:19: warning: format '%d' expects argument of 
type 'int', but argument 6 has type 'size_t {aka long unsigned int}' [-Wformat=]
 dev_dbg(dd->dev, "xmit_dma: digcnt: 0x%llx 0x%llx, length: %d, final: 
%d\n",
  ^
   include/linux/dynamic_debug.h:134:39: note: in definition of macro 
'dynamic_dev_dbg'
  __dynamic_dev_dbg(&descriptor, dev, fmt, \
  ^~~
   drivers/crypto/atmel-sha.c:541:2: note: in expansion of macro 'dev_dbg'
 dev_dbg(dd->dev, "xmit_dma: digcnt: 0x%llx 0x%llx, length: %d, final: 
%d\n",
 ^~~
   drivers/crypto/atmel-sha.c: In function 'atmel_sha_xmit_dma_map':
>> drivers/crypto/atmel-sha.c:620:26: warning: format '%u' expects argument of 
>> type 'unsigned int', but argument 3 has type 'size_t {aka long unsigned 
>> int}' [-Wformat=]
  dev_err(dd->dev, "dma %u bytes error\n", ctx->buflen +
 ^
   In file included from include/linux/printk.h:305:0,
from include/linux/kernel.h:13,
from drivers/crypto/atmel-sha.c:17:
   drivers/crypto/atmel-sha.c: In function 'atmel_sha_update_dma_slow':
   drivers/crypto/atmel-sha.c:641:19: warning: format '%u' expects argument of 
type 'unsigned int', but argument 4 has type 'size_t {aka long unsigned int}' 
[-Wformat=]
 dev_dbg(dd->dev, "slow: bufcnt: %u, digcnt: 0x%llx 0x%llx, final: %d\n",
  ^
   include/linux/dynamic_debug.h:134:39: note: in definition of macro 
'dynamic_dev_dbg'
  __dynamic_dev_dbg(&descriptor, dev, fmt, \
  ^~~
   drivers/crypto/atmel-sha.c:641:2: note: in expansion of macro 'dev_dbg'
 dev_dbg(dd->dev, "slow: bufcnt: %u, digcnt: 0x%llx 0x%llx, final: %d\n",
 ^~~
   drivers/crypto/atmel-sha.c: In function 'atmel_sha_update_dma_start':
   drivers/crypto/atmel-sha.c:669:19: warning: format '%u' expects argument of 
type 'unsigned int', but argument 6 has type 'size_t {aka long unsigned int}' 
[-Wformat=]
 dev_dbg(dd->dev, "fast: digcnt: 0x%llx 0x%llx, bufcnt: %u, total: %u\n",
  ^
   include/linux/dynamic_debug.h:134:39: note: in definition of macro 
'dynamic_dev_dbg'
  __dynamic_dev_dbg(&descriptor, dev, fmt, \
  ^~~
   drivers/crypto/atmel-sha.c:669:2: note: in expansion of macro 'dev_dbg'
 dev_dbg(dd->dev, "fast: digcnt: 0x%llx 0x%llx, bufcnt: %u, total: %u\n",
 ^~~
   d

[cryptodev:master 4/17] arch/arm64/crypto/chacha20-neon-glue.c:66:32: error: passing argument 1 of 'crypto_chacha20_crypt' from incompatible pointer type

2016-12-27 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   fb91a661d99f460f2ea4c7f23ed47f56863ca1d1
commit: 9ae433bc79f97bae221d53bb1a8e21415ea58625 [4/17] crypto: chacha20 - 
convert generic and x86 versions to skcipher
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 9ae433bc79f97bae221d53bb1a8e21415ea58625
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   arch/arm64/crypto/chacha20-neon-glue.c: In function 'chacha20_simd':
>> arch/arm64/crypto/chacha20-neon-glue.c:66:32: error: passing argument 1 of 
>> 'crypto_chacha20_crypt' from incompatible pointer type 
>> [-Werror=incompatible-pointer-types]
  return crypto_chacha20_crypt(desc, dst, src, nbytes);
   ^~~~
   In file included from arch/arm64/crypto/chacha20-neon-glue.c:22:0:
   include/crypto/chacha20.h:24:5: note: expected 'struct skcipher_request *' 
but argument is of type 'struct blkcipher_desc *'
int crypto_chacha20_crypt(struct skcipher_request *req);
^
>> arch/arm64/crypto/chacha20-neon-glue.c:66:10: error: too many arguments to 
>> function 'crypto_chacha20_crypt'
  return crypto_chacha20_crypt(desc, dst, src, nbytes);
 ^
   In file included from arch/arm64/crypto/chacha20-neon-glue.c:22:0:
   include/crypto/chacha20.h:24:5: note: declared here
int crypto_chacha20_crypt(struct skcipher_request *req);
^
   arch/arm64/crypto/chacha20-neon-glue.c: At top level:
>> arch/arm64/crypto/chacha20-neon-glue.c:109:15: error: initialization from 
>> incompatible pointer type [-Werror=incompatible-pointer-types]
   .setkey  = crypto_chacha20_setkey,
  ^~
   arch/arm64/crypto/chacha20-neon-glue.c:109:15: note: (near initialization 
for 'alg.cra_u.blkcipher.setkey')
   cc1: some warnings being treated as errors

vim +/crypto_chacha20_crypt +66 arch/arm64/crypto/chacha20-neon-glue.c

8621caa0 Ard Biesheuvel 2016-12-08   60  {
8621caa0 Ard Biesheuvel 2016-12-08   61 struct blkcipher_walk walk;
8621caa0 Ard Biesheuvel 2016-12-08   62 u32 state[16];
8621caa0 Ard Biesheuvel 2016-12-08   63 int err;
8621caa0 Ard Biesheuvel 2016-12-08   64  
8621caa0 Ard Biesheuvel 2016-12-08   65 if (nbytes <= 
CHACHA20_BLOCK_SIZE)
8621caa0 Ard Biesheuvel 2016-12-08  @66 return 
crypto_chacha20_crypt(desc, dst, src, nbytes);
8621caa0 Ard Biesheuvel 2016-12-08   67  
8621caa0 Ard Biesheuvel 2016-12-08   68 blkcipher_walk_init(&walk, dst, 
src, nbytes);
8621caa0 Ard Biesheuvel 2016-12-08   69 err = 
blkcipher_walk_virt_block(desc, &walk, CHACHA20_BLOCK_SIZE);
8621caa0 Ard Biesheuvel 2016-12-08   70  
8621caa0 Ard Biesheuvel 2016-12-08   71 crypto_chacha20_init(state, 
crypto_blkcipher_ctx(desc->tfm), walk.iv);
8621caa0 Ard Biesheuvel 2016-12-08   72  
8621caa0 Ard Biesheuvel 2016-12-08   73 kernel_neon_begin();
8621caa0 Ard Biesheuvel 2016-12-08   74  
8621caa0 Ard Biesheuvel 2016-12-08   75 while (walk.nbytes >= 
CHACHA20_BLOCK_SIZE) {
8621caa0 Ard Biesheuvel 2016-12-08   76 chacha20_dosimd(state, 
walk.dst.virt.addr, walk.src.virt.addr,
8621caa0 Ard Biesheuvel 2016-12-08   77 
rounddown(walk.nbytes, CHACHA20_BLOCK_SIZE));
8621caa0 Ard Biesheuvel 2016-12-08   78 err = 
blkcipher_walk_done(desc, &walk,
8621caa0 Ard Biesheuvel 2016-12-08   79 
  walk.nbytes % CHACHA20_BLOCK_SIZE);
8621caa0 Ard Biesheuvel 2016-12-08   80 }
8621caa0 Ard Biesheuvel 2016-12-08   81  
8621caa0 Ard Biesheuvel 2016-12-08   82 if (walk.nbytes) {
8621caa0 Ard Biesheuvel 2016-12-08   83 chacha20_dosimd(state, 
walk.dst.virt.addr, walk.src.virt.addr,
8621caa0 Ard Biesheuvel 2016-12-08   84 
walk.nbytes);
8621caa0 Ard Biesheuvel 2016-12-08   85 err = 
blkcipher_walk_done(desc, &walk, 0);
8621caa0 Ard Biesheuvel 2016-12-08   86 }
8621caa0 Ard Biesheuvel 2016-12-08   87  
8621caa0 Ard Biesheuvel 2016-12-08   88 kernel_neon_end();
8621caa0 Ard Biesheuvel 2016-12-08   89  
8621caa0 Ard Biesheuvel 2016-12-08   90 return err;
8621caa0 Ard Biesheuvel 2016-12-08   91  }
8621caa0 Ard Biesheuvel 2016-12-08   92  
8621caa0 Ard Biesheuvel 2016-12-08   93  static struct crypto_alg alg = {
8621caa0 Ard Biesheuvel 2016-12-08   94 .cra_name   = 
"chacha20",
8621caa0 Ard Biesheuvel 2016-12-08   95 .cra_driver_name= 
"chacha20-neon",
8621caa0 Ard Biesheuvel 2016-12-08

[cryptodev:master 4/17] arch/arm/crypto/chacha20-neon-glue.c:68:32: error: passing argument 1 of 'crypto_chacha20_crypt' from incompatible pointer type

2016-12-27 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   fb91a661d99f460f2ea4c7f23ed47f56863ca1d1
commit: 9ae433bc79f97bae221d53bb1a8e21415ea58625 [4/17] crypto: chacha20 - 
convert generic and x86 versions to skcipher
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 9ae433bc79f97bae221d53bb1a8e21415ea58625
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   arch/arm/crypto/chacha20-neon-glue.c: In function 'chacha20_simd':
>> arch/arm/crypto/chacha20-neon-glue.c:68:32: error: passing argument 1 of 
>> 'crypto_chacha20_crypt' from incompatible pointer type 
>> [-Werror=incompatible-pointer-types]
  return crypto_chacha20_crypt(desc, dst, src, nbytes);
   ^~~~
   In file included from arch/arm/crypto/chacha20-neon-glue.c:22:0:
   include/crypto/chacha20.h:24:5: note: expected 'struct skcipher_request *' 
but argument is of type 'struct blkcipher_desc *'
int crypto_chacha20_crypt(struct skcipher_request *req);
^
>> arch/arm/crypto/chacha20-neon-glue.c:68:10: error: too many arguments to 
>> function 'crypto_chacha20_crypt'
  return crypto_chacha20_crypt(desc, dst, src, nbytes);
 ^
   In file included from arch/arm/crypto/chacha20-neon-glue.c:22:0:
   include/crypto/chacha20.h:24:5: note: declared here
int crypto_chacha20_crypt(struct skcipher_request *req);
^
   arch/arm/crypto/chacha20-neon-glue.c: At top level:
>> arch/arm/crypto/chacha20-neon-glue.c:111:15: error: initialization from 
>> incompatible pointer type [-Werror=incompatible-pointer-types]
   .setkey  = crypto_chacha20_setkey,
  ^~
   arch/arm/crypto/chacha20-neon-glue.c:111:15: note: (near initialization for 
'alg.cra_u.blkcipher.setkey')
   cc1: some warnings being treated as errors

vim +/crypto_chacha20_crypt +68 arch/arm/crypto/chacha20-neon-glue.c

80966672 Ard Biesheuvel 2016-12-08   62  {
80966672 Ard Biesheuvel 2016-12-08   63 struct blkcipher_walk walk;
80966672 Ard Biesheuvel 2016-12-08   64 u32 state[16];
80966672 Ard Biesheuvel 2016-12-08   65 int err;
80966672 Ard Biesheuvel 2016-12-08   66  
80966672 Ard Biesheuvel 2016-12-08   67 if (nbytes <= 
CHACHA20_BLOCK_SIZE || !may_use_simd())
80966672 Ard Biesheuvel 2016-12-08  @68 return 
crypto_chacha20_crypt(desc, dst, src, nbytes);
80966672 Ard Biesheuvel 2016-12-08   69  
80966672 Ard Biesheuvel 2016-12-08   70 blkcipher_walk_init(&walk, dst, 
src, nbytes);
80966672 Ard Biesheuvel 2016-12-08   71 err = 
blkcipher_walk_virt_block(desc, &walk, CHACHA20_BLOCK_SIZE);
80966672 Ard Biesheuvel 2016-12-08   72  
80966672 Ard Biesheuvel 2016-12-08   73 crypto_chacha20_init(state, 
crypto_blkcipher_ctx(desc->tfm), walk.iv);
80966672 Ard Biesheuvel 2016-12-08   74  
80966672 Ard Biesheuvel 2016-12-08   75 kernel_neon_begin();
80966672 Ard Biesheuvel 2016-12-08   76  
80966672 Ard Biesheuvel 2016-12-08   77 while (walk.nbytes >= 
CHACHA20_BLOCK_SIZE) {
80966672 Ard Biesheuvel 2016-12-08   78 chacha20_dosimd(state, 
walk.dst.virt.addr, walk.src.virt.addr,
80966672 Ard Biesheuvel 2016-12-08   79 
rounddown(walk.nbytes, CHACHA20_BLOCK_SIZE));
80966672 Ard Biesheuvel 2016-12-08   80 err = 
blkcipher_walk_done(desc, &walk,
80966672 Ard Biesheuvel 2016-12-08   81 
  walk.nbytes % CHACHA20_BLOCK_SIZE);
80966672 Ard Biesheuvel 2016-12-08   82 }
80966672 Ard Biesheuvel 2016-12-08   83  
80966672 Ard Biesheuvel 2016-12-08   84 if (walk.nbytes) {
80966672 Ard Biesheuvel 2016-12-08   85 chacha20_dosimd(state, 
walk.dst.virt.addr, walk.src.virt.addr,
80966672 Ard Biesheuvel 2016-12-08   86 
walk.nbytes);
80966672 Ard Biesheuvel 2016-12-08   87 err = 
blkcipher_walk_done(desc, &walk, 0);
80966672 Ard Biesheuvel 2016-12-08   88 }
80966672 Ard Biesheuvel 2016-12-08   89  
80966672 Ard Biesheuvel 2016-12-08   90 kernel_neon_end();
80966672 Ard Biesheuvel 2016-12-08   91  
80966672 Ard Biesheuvel 2016-12-08   92 return err;
80966672 Ard Biesheuvel 2016-12-08   93  }
80966672 Ard Biesheuvel 2016-12-08   94  
80966672 Ard Biesheuvel 2016-12-08   95  static struct crypto_alg alg = {
80966672 Ard Biesheuvel 2016-12-08   96 .cra_name   = 
"chacha20",
80966672 Ard Biesheuvel 2016-12-08   97 .cra_driver_name= 
"chacha20-neon",
80966672 Ard Biesheuvel 2016-12-08   

Re: [PATCH v4 3/3] drivers: crypto: Enable CPT options crypto for build

2017-01-12 Thread kbuild test robot
Hi George,

[auto build test ERROR on v4.9-rc8]
[cannot apply to cryptodev/master crypto/master sparc-next/master next-20170111]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/George-Cherian/Add-Support-for-Cavium-Cryptographic-Acceleration-Unit/20170112-192240
config: blackfin-allmodconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=blackfin 

All error/warnings (new ones prefixed by >>):

   In file included from drivers/crypto/cavium/cpt/cptvf.h:13:0,
from drivers/crypto/cavium/cpt/cptvf_main.c:12:
   drivers/crypto/cavium/cpt/cpt_common.h: In function 'cpt_write_csr64':
>> drivers/crypto/cavium/cpt/cpt_common.h:151:2: error: implicit declaration of 
>> function 'writeq' [-Werror=implicit-function-declaration]
 writeq(val, hw_addr + offset);
 ^~
   drivers/crypto/cavium/cpt/cpt_common.h: In function 'cpt_read_csr64':
>> drivers/crypto/cavium/cpt/cpt_common.h:156:9: error: implicit declaration of 
>> function 'readq' [-Werror=implicit-function-declaration]
 return readq(hw_addr + offset);
^
   In file included from drivers/crypto/cavium/cpt/cptvf_main.c:12:0:
   drivers/crypto/cavium/cpt/cptvf.h: At top level:
>> drivers/crypto/cavium/cpt/cptvf.h:111:20: error: array type has incomplete 
>> element type 'struct msix_entry'
 struct msix_entry msix_entries[CPT_VF_MSIX_VECTORS];
   ^~~~
   drivers/crypto/cavium/cpt/cptvf_main.c: In function 'init_worker_threads':
>> drivers/crypto/cavium/cpt/cptvf_main.c:52:9: warning: cast from pointer to 
>> integer of different size [-Wpointer-to-int-cast]
(u64)cwqe_info);
^
   drivers/crypto/cavium/cpt/cptvf_main.c: In function 'cptvf_disable_msix':
>> drivers/crypto/cavium/cpt/cptvf_main.c:375:3: error: implicit declaration of 
>> function 'pci_disable_msix' [-Werror=implicit-function-declaration]
  pci_disable_msix(cptvf->pdev);
  ^~~~
   drivers/crypto/cavium/cpt/cptvf_main.c: In function 'cptvf_enable_msix':
>> drivers/crypto/cavium/cpt/cptvf_main.c:387:8: error: implicit declaration of 
>> function 'pci_enable_msix' [-Werror=implicit-function-declaration]
 ret = pci_enable_msix(cptvf->pdev, cptvf->msix_entries,
   ^~~
   drivers/crypto/cavium/cpt/cptvf_main.c: At top level:
>> drivers/crypto/cavium/cpt/cptvf_main.c:942:1: warning: data definition has 
>> no type or storage class
module_pci_driver(cptvf_pci_driver);
^
>> drivers/crypto/cavium/cpt/cptvf_main.c:942:1: error: type defaults to 'int' 
>> in declaration of 'module_pci_driver' [-Werror=implicit-int]
>> drivers/crypto/cavium/cpt/cptvf_main.c:942:1: warning: parameter names 
>> (without types) in function declaration
   drivers/crypto/cavium/cpt/cptvf_main.c:934:26: warning: 'cptvf_pci_driver' 
defined but not used [-Wunused-variable]
static struct pci_driver cptvf_pci_driver = {
 ^~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/crypto/cavium/cpt/cptvf.h:13:0,
from drivers/crypto/cavium/cpt/cptvf_reqmanager.c:9:
   drivers/crypto/cavium/cpt/cpt_common.h: In function 'cpt_write_csr64':
>> drivers/crypto/cavium/cpt/cpt_common.h:151:2: error: implicit declaration of 
>> function 'writeq' [-Werror=implicit-function-declaration]
 writeq(val, hw_addr + offset);
 ^~
   drivers/crypto/cavium/cpt/cpt_common.h: In function 'cpt_read_csr64':
>> drivers/crypto/cavium/cpt/cpt_common.h:156:9: error: implicit declaration of 
>> function 'readq' [-Werror=implicit-function-declaration]
 return readq(hw_addr + offset);
^
   In file included from drivers/crypto/cavium/cpt/cptvf_reqmanager.c:9:0:
   drivers/crypto/cavium/cpt/cptvf.h: At top level:
>> drivers/crypto/cavium/cpt/cptvf.h:111:20: error: array type has incomplete 
>> element type 'struct msix_entry'
 struct msix_entry msix_entries[CPT_VF_MSIX_VECTORS];
   ^~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/crypto/cavium/cpt/cptpf.h:12:0,
from drivers/crypto/cavium/cpt/cptpf_main.c:18:
   drivers/crypto/cavium/cpt/cpt_common.h: In function 'cpt_write_csr64':
>> drivers/crypto/cavium/cpt/cpt_common.h:151:2: error: implicit declaration of 
>> function 'writeq' [-Werror=implicit-function-declaration]
 writeq(val, hw_addr + offset);
 ^~
   drivers/crypto/cavium/cpt/cpt_common.h: In function 'cpt_read_csr64':
>> drivers/crypto/cavium/cpt/cpt_common.h:156:9: error: implicit declaration of 
>> function 'readq' [-We

[PATCH] drivers: crypto: fix ifnullfree.cocci warnings

2017-01-12 Thread kbuild test robot
drivers/crypto/cavium/cpt/cptvf_reqmanager.c:312:2-8: WARNING: NULL check 
before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive 
or usb_free_urb is not needed. Maybe consider reorganizing relevant code to 
avoid passing NULL values.
drivers/crypto/cavium/cpt/cptvf_reqmanager.c:315:2-8: WARNING: NULL check 
before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive 
or usb_free_urb is not needed. Maybe consider reorganizing relevant code to 
avoid passing NULL values.
drivers/crypto/cavium/cpt/cptvf_reqmanager.c:318:2-8: WARNING: NULL check 
before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive 
or usb_free_urb is not needed. Maybe consider reorganizing relevant code to 
avoid passing NULL values.
drivers/crypto/cavium/cpt/cptvf_reqmanager.c:321:2-8: WARNING: NULL check 
before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive 
or usb_free_urb is not needed. Maybe consider reorganizing relevant code to 
avoid passing NULL values.

 NULL check before some freeing functions is not needed.

 Based on checkpatch warning
 "kfree(NULL) is safe this check is probably not required"
 and kfreeaddr.cocci by Julia Lawall.

Generated by: scripts/coccinelle/free/ifnullfree.cocci

CC: George Cherian 
Signed-off-by: Fengguang Wu 
---

 cptvf_reqmanager.c |   12 
 1 file changed, 4 insertions(+), 8 deletions(-)

--- a/drivers/crypto/cavium/cpt/cptvf_reqmanager.c
+++ b/drivers/crypto/cavium/cpt/cptvf_reqmanager.c
@@ -308,17 +308,13 @@ void do_request_cleanup(struct cpt_vf *c
}
}
 
-   if (info->scatter_components)
-   kzfree(info->scatter_components);
+   kzfree(info->scatter_components);
 
-   if (info->gather_components)
-   kzfree(info->gather_components);
+   kzfree(info->gather_components);
 
-   if (info->out_buffer)
-   kzfree(info->out_buffer);
+   kzfree(info->out_buffer);
 
-   if (info->in_buffer)
-   kzfree(info->in_buffer);
+   kzfree(info->in_buffer);
 
if (info->completion_addr)
kzfree((void *)info->completion_addr);
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v4 3/3] drivers: crypto: Enable CPT options crypto for build

2017-01-12 Thread kbuild test robot
Hi George,

[auto build test WARNING on v4.9-rc8]
[cannot apply to cryptodev/master crypto/master sparc-next/master next-20170111]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/George-Cherian/Add-Support-for-Cavium-Cryptographic-Acceleration-Unit/20170112-192240


coccinelle warnings: (new ones prefixed by >>)

>> drivers/crypto/cavium/cpt/cptvf_reqmanager.c:312:2-8: WARNING: NULL check 
>> before freeing functions like kfree, debugfs_remove, 
>> debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider 
>> reorganizing relevant code to avoid passing NULL values.
   drivers/crypto/cavium/cpt/cptvf_reqmanager.c:315:2-8: WARNING: NULL check 
before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive 
or usb_free_urb is not needed. Maybe consider reorganizing relevant code to 
avoid passing NULL values.
   drivers/crypto/cavium/cpt/cptvf_reqmanager.c:318:2-8: WARNING: NULL check 
before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive 
or usb_free_urb is not needed. Maybe consider reorganizing relevant code to 
avoid passing NULL values.
   drivers/crypto/cavium/cpt/cptvf_reqmanager.c:321:2-8: WARNING: NULL check 
before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive 
or usb_free_urb is not needed. Maybe consider reorganizing relevant code to 
avoid passing NULL values.

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v4 3/3] drivers: crypto: Enable CPT options crypto for build

2017-01-12 Thread kbuild test robot
Hi George,

[auto build test WARNING on v4.9-rc8]
[cannot apply to cryptodev/master crypto/master sparc-next/master next-20170111]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/George-Cherian/Add-Support-for-Cavium-Cryptographic-Acceleration-Unit/20170112-192240
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=parisc 

All warnings (new ones prefixed by >>):

   drivers/crypto/cavium/cpt/cptvf_reqmanager.c: In function 'process_request':
>> drivers/crypto/cavium/cpt/cptvf_reqmanager.c:470:49: warning: format '%lu' 
>> expects argument of type 'long unsigned int', but argument 3 has type 
>> 'unsigned int' [-Wformat=]
  dev_err(&pdev->dev, "mapping compptr Failed %lu\n",
^

vim +470 drivers/crypto/cavium/cpt/cptvf_reqmanager.c

8413476d George Cherian 2017-01-11  454 goto request_cleanup;
8413476d George Cherian 2017-01-11  455 }
8413476d George Cherian 2017-01-11  456  
8413476d George Cherian 2017-01-11  457 cpt_req->dlen = info->dlen;
8413476d George Cherian 2017-01-11  458 /*
8413476d George Cherian 2017-01-11  459  * Get buffer for union 
cpt_res_s response
8413476d George Cherian 2017-01-11  460  * structure and its physical 
address
8413476d George Cherian 2017-01-11  461  */
8413476d George Cherian 2017-01-11  462 info->completion_addr = 
kzalloc(sizeof(union cpt_res_s),
8413476d George Cherian 2017-01-11  463 
 GFP_KERNEL | GFP_ATOMIC);
8413476d George Cherian 2017-01-11  464 *((u8 
*)(info->completion_addr)) = COMPLETION_CODE_INIT;
8413476d George Cherian 2017-01-11  465 info->comp_baddr = 
dma_map_single(&pdev->dev,
8413476d George Cherian 2017-01-11  466 
   (void *)info->completion_addr,
8413476d George Cherian 2017-01-11  467 
   sizeof(union cpt_res_s),
8413476d George Cherian 2017-01-11  468 
   DMA_BIDIRECTIONAL);
8413476d George Cherian 2017-01-11  469 if 
(dma_mapping_error(&pdev->dev, info->comp_baddr)) {
8413476d George Cherian 2017-01-11 @470 dev_err(&pdev->dev, 
"mapping compptr Failed %lu\n",
8413476d George Cherian 2017-01-11  471 sizeof(union 
cpt_res_s));
8413476d George Cherian 2017-01-11  472 ret = -EFAULT;
8413476d George Cherian 2017-01-11  473 goto  request_cleanup;
8413476d George Cherian 2017-01-11  474 }
8413476d George Cherian 2017-01-11  475  
8413476d George Cherian 2017-01-11  476 /* Fill the VQ command */
8413476d George Cherian 2017-01-11  477 vq_cmd.cmd.u64 = 0;
8413476d George Cherian 2017-01-11  478 vq_cmd.cmd.s.opcode = 
cpu_to_be16(cpt_req->opcode.flags);

:: The code at line 470 was first introduced by commit
:: 8413476deed83359518ea36cc316f4669a8c521c drivers: crypto: Add the 
Virtual Function driver for CPT

:: TO: George Cherian 
:: CC: 0day robot 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[cryptodev:master 43/44] arch/arm/crypto/aes-cipher-core.S:21: Error: selected processor does not support `tt .req ip' in ARM mode

2017-01-12 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   1abee99eafab67fb1c98f9ecfc43cd5735384a86
commit: 81edb42629758bacdf813dd5e4542ae26e3ad73a [43/44] crypto: arm/aes - 
replace scalar AES cipher
config: arm-multi_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 81edb42629758bacdf813dd5e4542ae26e3ad73a
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   arch/arm/crypto/aes-cipher-core.S: Assembler messages:
>> arch/arm/crypto/aes-cipher-core.S:21: Error: selected processor does not 
>> support `tt .req ip' in ARM mode
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `movw 
>> tt,#:lower16:crypto_ft_tab'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `movt 
>> tt,#:upper16:crypto_ft_tab'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r8,[tt,r8,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t0,[tt,t0,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r9,[tt,r9,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t1,[tt,t1,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t2,[tt,t2,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r10,[tt,r10,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t0,[tt,t0,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r11,[tt,r11,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r10,[tt,r10,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t0,[tt,t0,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r11,[tt,r11,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t1,[tt,t1,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t2,[tt,t2,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r5,[tt,r5,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t0,[tt,t0,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r6,[tt,r6,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r4,[tt,r4,lsl#2]'

vim +21 arch/arm/crypto/aes-cipher-core.S

15  .align  5
16  
17  rk  .reqr0
18  rounds  .reqr1
19  in  .reqr2
20  out .reqr3
  > 21  tt  .reqip
22  
23  t0  .reqlr
24  t1  .reqr2
25  t2  .reqr3
26  
27  .macro  __select, out, in, idx
28  .if __LINUX_ARM_ARCH__ < 7
29  and \out, \in, #0xff << (8 * \idx)
30  .else
31  ubfx\out, \in, #(8 * \idx), #8
32  .endif
33  .endm
34  
35  .macro  __load, out, in, idx
36  .if __LINUX_ARM_ARCH__ < 7 && \idx > 0
37  ldr \out, [tt, \in, lsr #(8 * \idx) - 2]
38  .else
39  ldr \out, [tt, \in, lsl #2]
40  .endif
41  .endm
42  
43  .macro  __hround, out0, out1, in0, in1, in2, in3, t3, 
t4, enc
44  __select\out0, \in0, 0
45  __selectt0, \in1, 1
46  __load  \out0, \out0, 0
47  __load  t0, t0, 1
48  
49  .if \enc
50  __select\out1, \in1, 0
51  __selectt1, \in2, 1
52  .else
53  __select\out1, \in3, 0
54  __selectt1, \in0, 1
55  .endif
56  __load  \out1, \out1, 0
57  __selectt2, \in2, 2
58  __load  t1, t1, 1
59  __load  t2, t2, 2
60  
61  eor \out0, \out0, t0, ror #24
62  
63  __selectt0, \in3, 3
64  .if \enc
65  __select\t3, \in3, 2
66  __select\t4, \in0, 3
67  .else
68  __select\t3, \in1, 2
69  __select\t4, \in2, 3
70 

[cryptodev:master 43/44] arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr tt,=crypto_ft_tab'

2017-01-12 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   1abee99eafab67fb1c98f9ecfc43cd5735384a86
commit: 81edb42629758bacdf813dd5e4542ae26e3ad73a [43/44] crypto: arm/aes - 
replace scalar AES cipher
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 81edb42629758bacdf813dd5e4542ae26e3ad73a
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   arch/arm/crypto/aes-cipher-core.S: Assembler messages:
   arch/arm/crypto/aes-cipher-core.S:21: Error: selected processor does not 
support `tt .req ip' in ARM mode
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> tt,=crypto_ft_tab'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
r8,[tt,r8,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t0,[tt,t0,lsr#(8*1)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
r9,[tt,r9,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t1,[tt,t1,lsr#(8*1)-2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t2,[tt,t2,lsr#(8*2)-2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r10,[tt,r10,lsr#(8*2)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
t0,[tt,t0,lsr#(8*3)-2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r11,[tt,r11,lsr#(8*3)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
r10,[tt,r10,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t0,[tt,t0,lsr#(8*1)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
r11,[tt,r11,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t1,[tt,t1,lsr#(8*1)-2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t2,[tt,t2,lsr#(8*2)-2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r5,[tt,r5,lsr#(8*2)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
t0,[tt,t0,lsr#(8*3)-2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r6,[tt,r6,lsr#(8*3)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
r4,[tt,r4,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t0,[tt,t0,lsr#(8*1)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
r5,[tt,r5,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t1,[tt,t1,lsr#(8*1)-2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t2,[tt,t2,lsr#(8*2)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
r6,[tt,r6,lsr#(8*2)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
t0,[tt,t0,lsr#(8*3)-2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r7,[tt,r7,lsr#(8*3)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
r6,[tt,r6,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t0,[tt,t0,lsr#(8*1)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
r7,[tt,r7,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t1,[tt,t1,lsr#(8*1)-2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t2,[tt,t2,lsr#(8*2)-2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> r9,[tt,r9,lsr#(8*2)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
t0,[tt,t0,lsr#(8*3)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
r10,[tt,r10,lsr#(8*3)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
r8,[tt,r8,lsl#2]'
>> arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
>> t0,[tt,t0,lsr#(8*1)-2]'
   arch/arm/crypto/aes-cipher-core.S:174: Error: ARM register expected -- `ldr 
r9,[tt,r9,lsl#2]'

vim +174 arch/arm/crypto/aes-cipher-core.S

15  .align  5
16  
17  rk  .reqr0
18  rounds  .reqr1
19  in  .reqr2
20  out .reqr3
  > 21  tt  .reqip
22  
23  t0  .reqlr
24  t1 

Re: [PATCH 2/2] misc: amd-sp: introduce the AMD Secure Processor device

2017-01-20 Thread kbuild test robot
Hi Brijesh,

[auto build test WARNING on cryptodev/master]
[also build test WARNING on next-20170120]
[cannot apply to char-misc/char-misc-testing v4.10-rc4]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Brijesh-Singh/Introduce-AMD-Secure-Processor-device/20170120-185157
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

warning: (CRYPTO_DEV_CCP_CRYPTO) selects AMD_SP which has unmet direct 
dependencies ((X86 && PCI || ARM64 && (OF_ADDRESS || ACPI)) && HAS_IOMEM)

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 1/2] crypto: move CCP device driver to misc

2017-01-20 Thread kbuild test robot
Hi Brijesh,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on next-20170120]
[cannot apply to char-misc/char-misc-testing v4.10-rc4]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Brijesh-Singh/Introduce-AMD-Secure-Processor-device/20170120-185157
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: um-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=um 

All errors (new ones prefixed by >>):

   arch/um/drivers/built-in.o: In function `vde_open_real':
   (.text+0xc9a1): warning: Using 'getgrnam' in statically linked applications 
requires at runtime the shared libraries from the glibc version used for linking
   arch/um/drivers/built-in.o: In function `vde_open_real':
   (.text+0xc7ec): warning: Using 'getpwuid' in statically linked applications 
requires at runtime the shared libraries from the glibc version used for linking
   arch/um/drivers/built-in.o: In function `vde_open_real':
   (.text+0xcb05): warning: Using 'getaddrinfo' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   arch/um/drivers/built-in.o: In function `pcap_nametoaddr':
   (.text+0x1d595): warning: Using 'gethostbyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   arch/um/drivers/built-in.o: In function `pcap_nametonetaddr':
   (.text+0x1d635): warning: Using 'getnetbyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   arch/um/drivers/built-in.o: In function `pcap_nametoproto':
   (.text+0x1d855): warning: Using 'getprotobyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   arch/um/drivers/built-in.o: In function `pcap_nametoport':
   (.text+0x1d687): warning: Using 'getservbyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   drivers/built-in.o: In function `ccp_init_dm_workarea':
>> drivers/misc/amd-sp/ccp-ops.c:141: undefined reference to `dma_pool_alloc'
   drivers/built-in.o: In function `ccp_init_dm_workarea':
   include/linux/dma-mapping.h:190: undefined reference to `bad_dma_ops'
   drivers/built-in.o: In function `ccp_sg_free':
   include/linux/dma-mapping.h:242: undefined reference to `bad_dma_ops'
   drivers/built-in.o: In function `ccp_dm_free':
>> drivers/misc/amd-sp/ccp-ops.c:112: undefined reference to `dma_pool_free'
   drivers/built-in.o: In function `ccp_dm_free':
   include/linux/dma-mapping.h:207: undefined reference to `bad_dma_ops'
   drivers/built-in.o: In function `ccp_init_data':
   include/linux/dma-mapping.h:227: undefined reference to `bad_dma_ops'
   drivers/built-in.o: In function `ccp_destroy':
>> drivers/misc/amd-sp/ccp-dev-v3.c:501: undefined reference to 
>> `dma_pool_destroy'
   drivers/built-in.o: In function `ccp_init':
>> drivers/misc/amd-sp/ccp-dev-v3.c:337: undefined reference to 
>> `dma_pool_create'
   drivers/misc/amd-sp/ccp-dev-v3.c:456: undefined reference to 
`dma_pool_destroy'
   drivers/built-in.o: In function `ccp5_destroy':
   include/linux/dma-mapping.h:484: undefined reference to `bad_dma_ops'
   include/linux/dma-mapping.h:490: undefined reference to `bad_dma_ops'
   drivers/built-in.o: In function `ccp5_init':
>> drivers/misc/amd-sp/ccp-dev-v5.c:676: undefined reference to 
>> `dma_pool_create'
   drivers/built-in.o: In function `ccp5_init':
   include/linux/dma-mapping.h:463: undefined reference to `bad_dma_ops'
   drivers/built-in.o: In function `ccp5_init':
>> drivers/misc/amd-sp/ccp-dev-v5.c:861: undefined reference to 
>> `dma_pool_destroy'
   drivers/built-in.o: In function `ccp_platform_probe':
   drivers/misc/amd-sp/ccp-platform.c:148: undefined reference to 
`devm_ioremap_resource'
   drivers/built-in.o: In function `ccp_platform_probe':
   include/linux/dma-mapping.h:555: undefined reference to `bad_dma_ops'
   include/linux/dma-mapping.h:542: undefined reference to `bad_dma_ops'
   include/linux/dma-mapping.h:544: undefined reference to `bad_dma_ops'
   include/linux/dma-mapping.h:542: undefined reference to `bad_dma_ops'
   include/linux/dma-mapping.h:544: undefined reference to `bad_dma_ops'
   drivers/built-in.o: In function `ccp_cmd_callback':
   drivers/misc/amd-sp/ccp-dmaengine.c:204: undefined reference to 
`dma_run_dependencies'
   drivers/built-in.o: In function `ccp_alloc_dma_desc':
   drivers/misc/amd-sp/ccp-dmaengine.c:306: undefined reference to 
`dma_async_tx_descriptor_init'
   drivers/built-in.o: In function `ccp_dmaengine_register':
   drivers/misc/amd-sp/ccp-dmaengine.c:705: undefined reference to 
`dma_async_de

Re: [PATCH 2/2] misc: amd-sp: introduce the AMD Secure Processor device

2017-01-20 Thread kbuild test robot
Hi Brijesh,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on next-20170120]
[cannot apply to char-misc/char-misc-testing v4.10-rc4]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Brijesh-Singh/Introduce-AMD-Secure-Processor-device/20170120-185157
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: um-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=um 

All error/warnings (new ones prefixed by >>):

warning: (AMD_CCP && SND_SOC_SH4_SIU) selects DMADEVICES which has unmet direct 
dependencies (HAS_DMA)
   arch/um/drivers/built-in.o: In function `vde_open_real':
   (.text+0xc9a1): warning: Using 'getgrnam' in statically linked applications 
requires at runtime the shared libraries from the glibc version used for linking
   arch/um/drivers/built-in.o: In function `vde_open_real':
   (.text+0xc7ec): warning: Using 'getpwuid' in statically linked applications 
requires at runtime the shared libraries from the glibc version used for linking
   arch/um/drivers/built-in.o: In function `vde_open_real':
   (.text+0xcb05): warning: Using 'getaddrinfo' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   arch/um/drivers/built-in.o: In function `pcap_nametoaddr':
   (.text+0x1d595): warning: Using 'gethostbyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   arch/um/drivers/built-in.o: In function `pcap_nametonetaddr':
   (.text+0x1d635): warning: Using 'getnetbyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   arch/um/drivers/built-in.o: In function `pcap_nametoproto':
   (.text+0x1d855): warning: Using 'getprotobyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   arch/um/drivers/built-in.o: In function `pcap_nametoport':
   (.text+0x1d687): warning: Using 'getservbyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   crypto/built-in.o: In function `async_memcpy':
   include/linux/dma-mapping.h:257: undefined reference to `bad_dma_ops'
   include/linux/dma-mapping.h:257: undefined reference to `bad_dma_ops'
   crypto/built-in.o: In function `async_xor':
   include/linux/dma-mapping.h:257: undefined reference to `bad_dma_ops'
   include/linux/dma-mapping.h:257: undefined reference to `bad_dma_ops'
   crypto/built-in.o: In function `async_xor_val':
   include/linux/dma-mapping.h:257: undefined reference to `bad_dma_ops'
   crypto/built-in.o:include/linux/dma-mapping.h:257: more undefined references 
to `bad_dma_ops' follow
   drivers/built-in.o: In function `dwc_desc_get':
>> include/linux/dmapool.h:30: undefined reference to `dma_pool_alloc'
   drivers/built-in.o: In function `dwc_desc_put':
>> drivers/dma/dw/core.c:137: undefined reference to `dma_pool_free'
   drivers/dma/dw/core.c:133: undefined reference to `dma_pool_free'
   drivers/built-in.o: In function `dw_dma_probe':
>> drivers/dma/dw/core.c:1508: undefined reference to `dmam_pool_create'
   drivers/built-in.o: In function `dw_probe':
>> drivers/dma/dw/platform.c:192: undefined reference to `devm_ioremap_resource'
   drivers/built-in.o: In function `dw_probe':
   include/linux/dma-mapping.h:555: undefined reference to `bad_dma_ops'
   include/linux/dma-mapping.h:542: undefined reference to `bad_dma_ops'
   include/linux/dma-mapping.h:544: undefined reference to `bad_dma_ops'
   include/linux/dma-mapping.h:542: undefined reference to `bad_dma_ops'
   include/linux/dma-mapping.h:544: undefined reference to `bad_dma_ops'
   drivers/built-in.o: In function `fsl_edma_free_desc':
>> drivers/dma/fsl-edma.c:288: undefined reference to `dma_pool_free'
   drivers/built-in.o: In function `fsl_edma_alloc_desc':
>> drivers/dma/fsl-edma.c:525: undefined reference to `dma_pool_alloc'
   drivers/dma/fsl-edma.c:525: undefined reference to `dma_pool_free'
   drivers/built-in.o: In function `fsl_edma_free_chan_resources':
>> drivers/dma/fsl-edma.c:808: undefined reference to `dma_pool_destroy'
   drivers/built-in.o: In function `fsl_edma_alloc_chan_resources':
>> drivers/dma/fsl-edma.c:788: undefined reference to `dma_pool_create'
   drivers/built-in.o: In function `fsl_edma_probe':
>> drivers/dma/fsl-edma.c:898: undefined reference to `devm_ioremap_resource'
   drivers/dma/fsl-edma.c:906: undefined reference to `devm_ioremap_resource'
   drivers/built-in.o: In function `idma64_desc_free':
>> drivers/dma/idma64.c:214: undefined reference to `dma_pool_free'
   drivers/built-in.o: In function `idma64_free_chan_resources':
>> drivers/dma

Re: [PATCH 1/4] lib: Update LZ4 compressor module

2017-01-21 Thread kbuild test robot
Hi Sven,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.10-rc4 next-20170120]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Sven-Schmidt/Update-LZ4-compressor-module/20170121-231418
config: i386-randconfig-r0-201703 (attached as .config)
compiler: gcc-5 (Debian 5.4.1-2) 5.4.1 20160904
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

Note: the 
linux-review/Sven-Schmidt/Update-LZ4-compressor-module/20170121-231418 HEAD 
0472409e2a1c442b51502961aa6d83b866218953 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   fs/pstore/platform.c: In function 'allocate_lz4':
>> fs/pstore/platform.c:369:20: error: implicit declaration of function 
>> 'lz4_compressbound' [-Werror=implicit-function-declaration]
 big_oops_buf_sz = lz4_compressbound(psinfo->bufsize);
   ^
   cc1: some warnings being treated as errors

vim +/lz4_compressbound +369 fs/pstore/platform.c

8cfc8ddc Geliang Tang 2016-02-18  363  
8cfc8ddc Geliang Tang 2016-02-18  364   return outlen;
8cfc8ddc Geliang Tang 2016-02-18  365  }
8cfc8ddc Geliang Tang 2016-02-18  366  
8cfc8ddc Geliang Tang 2016-02-18  367  static void allocate_lz4(void)
8cfc8ddc Geliang Tang 2016-02-18  368  {
8cfc8ddc Geliang Tang 2016-02-18 @369   big_oops_buf_sz = 
lz4_compressbound(psinfo->bufsize);
8cfc8ddc Geliang Tang 2016-02-18  370   big_oops_buf = kmalloc(big_oops_buf_sz, 
GFP_KERNEL);
8cfc8ddc Geliang Tang 2016-02-18  371   if (big_oops_buf) {
8cfc8ddc Geliang Tang 2016-02-18  372   workspace = 
kmalloc(LZ4_MEM_COMPRESS, GFP_KERNEL);

:: The code at line 369 was first introduced by commit
:: 8cfc8ddc99df9509a46043b14af81f5c6a223eab pstore: add lzo/lz4 compression 
support

:: TO: Geliang Tang 
:: CC: Kees Cook 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 1/4] lib: Update LZ4 compressor module

2017-01-21 Thread kbuild test robot
Hi Sven,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.10-rc4 next-20170120]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Sven-Schmidt/Update-LZ4-compressor-module/20170121-231418
config: x86_64-lkp (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

Note: the 
linux-review/Sven-Schmidt/Update-LZ4-compressor-module/20170121-231418 HEAD 
0472409e2a1c442b51502961aa6d83b866218953 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   In file included from lib/decompress_unlz4.c:19:0:
   lib/decompress_unlz4.c: In function 'unlz4':
>> lib/decompress_unlz4.c:75:22: error: implicit declaration of function 
>> 'lz4_compressbound' [-Werror=implicit-function-declaration]
  inp = large_malloc(lz4_compressbound(uncomp_chunksize));
 ^
   include/linux/decompress/mm.h:83:33: note: in definition of macro 
'large_malloc'
#define large_malloc(a) vmalloc(a)
^
   cc1: some warnings being treated as errors

vim +/lz4_compressbound +75 lib/decompress_unlz4.c

e76e1fdf Kyungsik Lee 2013-07-08  13  #include "lz4/lz4_decompress.c"
e76e1fdf Kyungsik Lee 2013-07-08  14  #else
e76e1fdf Kyungsik Lee 2013-07-08  15  #include 
e76e1fdf Kyungsik Lee 2013-07-08  16  #endif
e76e1fdf Kyungsik Lee 2013-07-08  17  #include 
e76e1fdf Kyungsik Lee 2013-07-08  18  #include 
e76e1fdf Kyungsik Lee 2013-07-08 @19  #include 
e76e1fdf Kyungsik Lee 2013-07-08  20  #include 
e76e1fdf Kyungsik Lee 2013-07-08  21  
e76e1fdf Kyungsik Lee 2013-07-08  22  #include 
e76e1fdf Kyungsik Lee 2013-07-08  23  
e76e1fdf Kyungsik Lee 2013-07-08  24  /*
e76e1fdf Kyungsik Lee 2013-07-08  25   * Note: Uncompressed chunk size is used 
in the compressor side
e76e1fdf Kyungsik Lee 2013-07-08  26   * (userspace side for compression).
e76e1fdf Kyungsik Lee 2013-07-08  27   * It is hardcoded because there is not 
proper way to extract it
e76e1fdf Kyungsik Lee 2013-07-08  28   * from the binary stream which is 
generated by the preliminary
e76e1fdf Kyungsik Lee 2013-07-08  29   * version of LZ4 tool so far.
e76e1fdf Kyungsik Lee 2013-07-08  30   */
e76e1fdf Kyungsik Lee 2013-07-08  31  #define 
LZ4_DEFAULT_UNCOMPRESSED_CHUNK_SIZE (8 << 20)
e76e1fdf Kyungsik Lee 2013-07-08  32  #define ARCHIVE_MAGICNUMBER 0x184C2102
e76e1fdf Kyungsik Lee 2013-07-08  33  
d97b07c5 Yinghai Lu   2014-08-08  34  STATIC inline int INIT unlz4(u8 *input, 
long in_len,
d97b07c5 Yinghai Lu   2014-08-08  35long 
(*fill)(void *, unsigned long),
d97b07c5 Yinghai Lu   2014-08-08  36long 
(*flush)(void *, unsigned long),
d97b07c5 Yinghai Lu   2014-08-08  37u8 *output, 
long *posp,
e76e1fdf Kyungsik Lee 2013-07-08  38void (*error) 
(char *x))
e76e1fdf Kyungsik Lee 2013-07-08  39  {
e76e1fdf Kyungsik Lee 2013-07-08  40int ret = -1;
e76e1fdf Kyungsik Lee 2013-07-08  41size_t chunksize = 0;
e76e1fdf Kyungsik Lee 2013-07-08  42size_t uncomp_chunksize = 
LZ4_DEFAULT_UNCOMPRESSED_CHUNK_SIZE;
e76e1fdf Kyungsik Lee 2013-07-08  43u8 *inp;
e76e1fdf Kyungsik Lee 2013-07-08  44u8 *inp_start;
e76e1fdf Kyungsik Lee 2013-07-08  45u8 *outp;
d97b07c5 Yinghai Lu   2014-08-08  46long size = in_len;
e76e1fdf Kyungsik Lee 2013-07-08  47  #ifdef PREBOOT
e76e1fdf Kyungsik Lee 2013-07-08  48size_t out_len = 
get_unaligned_le32(input + in_len);
e76e1fdf Kyungsik Lee 2013-07-08  49  #endif
e76e1fdf Kyungsik Lee 2013-07-08  50size_t dest_len;
e76e1fdf Kyungsik Lee 2013-07-08  51  
e76e1fdf Kyungsik Lee 2013-07-08  52  
e76e1fdf Kyungsik Lee 2013-07-08  53if (output) {
e76e1fdf Kyungsik Lee 2013-07-08  54outp = output;
e76e1fdf Kyungsik Lee 2013-07-08  55} else if (!flush) {
e76e1fdf Kyungsik Lee 2013-07-08  56error("NULL output pointer and 
no flush function provided");
e76e1fdf Kyungsik Lee 2013-07-08  57goto exit_0;
e76e1fdf Kyungsik Lee 2013-07-08  58} else {
e76e1fdf Kyungsik Lee 2013-07-08  59outp = 
large_malloc(uncomp_chunksize);
e76e1fdf Kyungsik Lee 2013-07-08  60if (!outp) {
e76e1fdf Kyungsik Lee 2013-07-08  61error("Could not 
allocate output buffer");
e76e1fdf Kyungsik Lee 2013-07-08  62goto exit_0;
e76e1fdf Kyungsik Lee 2013-07-08  63}
e76e1fdf Kyungsik Lee 2013-07-08  64}
e76e1fdf Kyungsik Lee 2013-07-08  65  
e76e1fdf Kyungsik Lee 2013-07-08  66if (input && fill) {
e76e1fdf Kyungsik Lee 2013-07-08  67error("Both input pointer and 
fill function provided,");
e76e1fdf Kyungsik Lee 2013-07-08  68goto exit_1;
e76e1fdf Kyungsik Lee 2013-07-08  69} else if (input) {
e76e1fdf Kyungsi

Re: [PATCH 1/4] lib: Update LZ4 compressor module

2017-01-21 Thread kbuild test robot
Hi Sven,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.10-rc4 next-20170120]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Sven-Schmidt/Update-LZ4-compressor-module/20170121-231418
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   include/linux/compiler.h:253:8: sparse: attribute 'no_sanitize_address': 
unknown attribute
>> lib/lz4/lz4_decompress.c:521:21: sparse: incompatible types for operation (>)
   lib/lz4/lz4_decompress.c:521:21:left side has type unsigned long 
[usertype] *src_len
   lib/lz4/lz4_decompress.c:521:21:right side has type int

vim +521 lib/lz4/lz4_decompress.c

   505  return -1;
   506  }
   507  EXPORT_SYMBOL(lz4_decompress_unknownoutputsize);
   508  
   509  int lz4_decompress(const unsigned char *src, size_t *src_len,
   510  unsigned char *dest, size_t actual_dest_len) {
   511  *src_len = LZ4_decompress_fast(src, dest, (int)actual_dest_len);
   512  
   513  /*
   514   * Prior lz4_decompress will return
   515   * 0 for success and a negative result for error
   516   * new LZ4_decompress_fast returns
   517   * - the length of data read on success
   518   * - and also a negative result on error
   519   * meaning when result > 0, we just return 0 here
   520   */
 > 521  if (src_len > 0)
   522  return 0;
   523  else
   524  return -1;
   525  }
   526  EXPORT_SYMBOL(lz4_decompress);
   527  
   528  MODULE_LICENSE("Dual BSD/GPL");
   529  MODULE_DESCRIPTION("LZ4 decompressor");

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: crypto: atmel - Fix authenc compile test warnings

2017-02-06 Thread kbuild test robot
Hi Herbert,

[auto build test WARNING on cryptodev/master]
[also build test WARNING on v4.10-rc7 next-20170206]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Herbert-Xu/crypto-atmel-Fix-authenc-compile-test-warnings/20170206-171201
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=ia64 

All warnings (new ones prefixed by >>):

   In file included from drivers/crypto/atmel-tdes.c:17:0:
   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_sg_copy':
   include/linux/kernel.h:753:16: warning: comparison of distinct pointer types 
lacks a cast
 (void) (&min1 == &min2);   \
   ^
   include/linux/kernel.h:756:2: note: in expansion of macro '__min'
 __min(typeof(x), typeof(y),   \
 ^
>> drivers/crypto/atmel-tdes.c:157:11: note: in expansion of macro 'min'
  count = min(count, buflen);
  ^~~
   In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:13,
from drivers/crypto/atmel-tdes.c:17:
   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_crypt_pdc_stop':
>> include/linux/kern_levels.h:4:18: warning: format '%u' expects argument of 
>> type 'unsigned int', but argument 2 has type 'size_t {aka long unsigned 
>> int}' [-Wformat=]
#define KERN_SOH "\001"  /* ASCII Start Of Header */
 ^
   include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
 ^~~~
   include/linux/printk.h:292:9: note: in expansion of macro 'KERN_ERR'
 printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~
>> drivers/crypto/atmel-tdes.c:339:4: note: in expansion of macro 'pr_err'
   pr_err("not all data converted: %u\n", count);
   ^~
   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_buff_init':
>> drivers/crypto/atmel-tdes.c:364:26: warning: format '%d' expects argument of 
>> type 'int', but argument 3 has type 'size_t {aka long unsigned int}' 
>> [-Wformat=]
  dev_err(dd->dev, "dma %d bytes error\n", dd->buflen);
 ^
   drivers/crypto/atmel-tdes.c:372:26: warning: format '%d' expects argument of 
type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=]
  dev_err(dd->dev, "dma %d bytes error\n", dd->buflen);
 ^
   In file included from drivers/crypto/atmel-tdes.c:17:0:
   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_crypt_start':
   include/linux/kernel.h:753:16: warning: comparison of distinct pointer types 
lacks a cast
 (void) (&min1 == &min2);   \
   ^
   include/linux/kernel.h:756:2: note: in expansion of macro '__min'
 __min(typeof(x), typeof(y),   \
 ^
   drivers/crypto/atmel-tdes.c:528:11: note: in expansion of macro 'min'
  count = min(dd->total, sg_dma_len(dd->in_sg));
  ^~~
   include/linux/kernel.h:753:16: warning: comparison of distinct pointer types 
lacks a cast
 (void) (&min1 == &min2);   \
   ^
   include/linux/kernel.h:756:2: note: in expansion of macro '__min'
 __min(typeof(x), typeof(y),   \
 ^
   drivers/crypto/atmel-tdes.c:529:11: note: in expansion of macro 'min'
  count = min(count, sg_dma_len(dd->out_sg));
  ^~~
   In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:13,
from drivers/crypto/atmel-tdes.c:17:
   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_crypt_dma_stop':
>> include/linux/kern_levels.h:4:18: warning: format '%u' expects argument of 
>> type 'unsigned int', but argument 2 has type 'size_t {aka long unsigned 
>> int}' [-Wformat=]
#define KERN_SOH "\001"  /* ASCII Start Of Header */
 ^
   include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
 ^~~~
   include/linux/printk.h:292:9: note: in expansion of macro 'KERN_ERR'
 printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~
   drivers/crypto/atmel-tdes.c:664:5: note: in expansion of macro 'pr_err'
pr_err("not all data converted: %u\n", count);
^~

vim +/min +157 drivers/crypto/atmel-tdes.c

13802005 Nicolas Royer  2012-07-01   11   * by the Free Software Foundation.
13802005 Nicolas Royer  2012-07-01   12   *
13802005 Nicolas Royer  2012-07-01   13   * Some ideas are from omap-aes.c 
drivers.
13802005 Nicolas R

Re: crypto: atmel - Fix authenc compile test warnings

2017-02-06 Thread kbuild test robot
Hi Herbert,

[auto build test WARNING on cryptodev/master]
[also build test WARNING on v4.10-rc7 next-20170206]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Herbert-Xu/crypto-atmel-Fix-authenc-compile-test-warnings/20170206-171201
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   include/linux/compiler.h:253:8: sparse: attribute 'no_sanitize_address': 
unknown attribute
>> drivers/crypto/atmel-tdes.c:157:25: sparse: incompatible types in comparison 
>> expression (different type sizes)
   drivers/crypto/atmel-tdes.c:528:25: sparse: incompatible types in comparison 
expression (different type sizes)
   drivers/crypto/atmel-tdes.c:529:25: sparse: incompatible types in comparison 
expression (different type sizes)
   In file included from drivers/crypto/atmel-tdes.c:17:0:
   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_sg_copy':
   include/linux/kernel.h:753:16: warning: comparison of distinct pointer types 
lacks a cast
 (void) (&min1 == &min2);   \
   ^
   include/linux/kernel.h:756:2: note: in expansion of macro '__min'
 __min(typeof(x), typeof(y),   \
 ^
   drivers/crypto/atmel-tdes.c:157:11: note: in expansion of macro 'min'
  count = min(count, buflen);
  ^~~
   In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:13,
from drivers/crypto/atmel-tdes.c:17:
   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_crypt_pdc_stop':
   include/linux/kern_levels.h:4:18: warning: format '%u' expects argument of 
type 'unsigned int', but argument 2 has type 'size_t {aka long unsigned int}' 
[-Wformat=]
#define KERN_SOH "\001"  /* ASCII Start Of Header */
 ^
   include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
 ^~~~
   include/linux/printk.h:292:9: note: in expansion of macro 'KERN_ERR'
 printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~
   drivers/crypto/atmel-tdes.c:339:4: note: in expansion of macro 'pr_err'
   pr_err("not all data converted: %u\n", count);
   ^~
   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_buff_init':
   drivers/crypto/atmel-tdes.c:364:26: warning: format '%d' expects argument of 
type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=]
  dev_err(dd->dev, "dma %d bytes error\n", dd->buflen);
 ^
   drivers/crypto/atmel-tdes.c:372:26: warning: format '%d' expects argument of 
type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=]
  dev_err(dd->dev, "dma %d bytes error\n", dd->buflen);
 ^
   In file included from drivers/crypto/atmel-tdes.c:17:0:
   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_crypt_start':
   include/linux/kernel.h:753:16: warning: comparison of distinct pointer types 
lacks a cast
 (void) (&min1 == &min2);   \
   ^
   include/linux/kernel.h:756:2: note: in expansion of macro '__min'
 __min(typeof(x), typeof(y),   \
 ^
   drivers/crypto/atmel-tdes.c:528:11: note: in expansion of macro 'min'
  count = min(dd->total, sg_dma_len(dd->in_sg));
  ^~~
   include/linux/kernel.h:753:16: warning: comparison of distinct pointer types 
lacks a cast
 (void) (&min1 == &min2);   \
   ^
   include/linux/kernel.h:756:2: note: in expansion of macro '__min'
 __min(typeof(x), typeof(y),   \
 ^
   drivers/crypto/atmel-tdes.c:529:11: note: in expansion of macro 'min'
  count = min(count, sg_dma_len(dd->out_sg));
  ^~~
   In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:13,
from drivers/crypto/atmel-tdes.c:17:
   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_crypt_dma_stop':
   include/linux/kern_levels.h:4:18: warning: format '%u' expects argument of 
type 'unsigned int', but argument 2 has type 'size_t {aka long unsigned int}' 
[-Wformat=]
#define KERN_SOH "\001"  /* ASCII Start Of Header */
 ^
   include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
 ^~~~
   include/linux/printk.h:292:9: note: in expansion of macro 'KERN_ERR'
 printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~
   drivers/crypto/atmel-tdes.c:664:5: note: in expansion of macro 'pr_err'
pr_err("not all data converted: %u\n", count);
^~

vim +157 drivers/crypto/atmel-tdes.c

13802005 Nicolas 

Re: crypto: atmel - Fix authenc compile test warnings

2017-02-06 Thread kbuild test robot
Hi Herbert,

[auto build test WARNING on cryptodev/master]
[also build test WARNING on v4.10-rc7]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Herbert-Xu/crypto-atmel-Fix-authenc-compile-test-warnings/20170206-171201
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: tile-allmodconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=tile 

All warnings (new ones prefixed by >>):

   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_sg_copy':
>> drivers/crypto/atmel-tdes.c:157:11: warning: comparison of distinct pointer 
>> types lacks a cast [enabled by default]
   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_crypt_pdc_stop':
>> drivers/crypto/atmel-tdes.c:339:4: warning: format '%u' expects argument of 
>> type 'unsigned int', but argument 2 has type 'size_t' [-Wformat]
   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_buff_init':
>> drivers/crypto/atmel-tdes.c:364:3: warning: format '%d' expects argument of 
>> type 'int', but argument 3 has type 'size_t' [-Wformat]
   drivers/crypto/atmel-tdes.c:372:3: warning: format '%d' expects argument of 
type 'int', but argument 3 has type 'size_t' [-Wformat]
   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_crypt_start':
   drivers/crypto/atmel-tdes.c:528:11: warning: comparison of distinct pointer 
types lacks a cast [enabled by default]
   drivers/crypto/atmel-tdes.c:529:11: warning: comparison of distinct pointer 
types lacks a cast [enabled by default]
   drivers/crypto/atmel-tdes.c: In function 'atmel_tdes_crypt_dma_stop':
   drivers/crypto/atmel-tdes.c:664:5: warning: format '%u' expects argument of 
type 'unsigned int', but argument 2 has type 'size_t' [-Wformat]

vim +157 drivers/crypto/atmel-tdes.c

13802005 Nicolas Royer  2012-07-01  151 void *buf, 
size_t buflen, size_t total, int out)
13802005 Nicolas Royer  2012-07-01  152  {
13802005 Nicolas Royer  2012-07-01  153 unsigned int count, off = 0;
13802005 Nicolas Royer  2012-07-01  154  
13802005 Nicolas Royer  2012-07-01  155 while (buflen && total) {
13802005 Nicolas Royer  2012-07-01  156 count = 
min((*sg)->length - *offset, total);
13802005 Nicolas Royer  2012-07-01 @157 count = min(count, 
buflen);
13802005 Nicolas Royer  2012-07-01  158  
13802005 Nicolas Royer  2012-07-01  159 if (!count)
13802005 Nicolas Royer  2012-07-01  160 return off;
13802005 Nicolas Royer  2012-07-01  161  
13802005 Nicolas Royer  2012-07-01  162 
scatterwalk_map_and_copy(buf + off, *sg, *offset, count, out);
13802005 Nicolas Royer  2012-07-01  163  
13802005 Nicolas Royer  2012-07-01  164 off += count;
13802005 Nicolas Royer  2012-07-01  165 buflen -= count;
13802005 Nicolas Royer  2012-07-01  166 *offset += count;
13802005 Nicolas Royer  2012-07-01  167 total -= count;
13802005 Nicolas Royer  2012-07-01  168  
13802005 Nicolas Royer  2012-07-01  169 if (*offset == 
(*sg)->length) {
13802005 Nicolas Royer  2012-07-01  170 *sg = 
sg_next(*sg);
13802005 Nicolas Royer  2012-07-01  171 if (*sg)
13802005 Nicolas Royer  2012-07-01  172 *offset 
= 0;
13802005 Nicolas Royer  2012-07-01  173 else
13802005 Nicolas Royer  2012-07-01  174 total = 
0;
13802005 Nicolas Royer  2012-07-01  175 }
13802005 Nicolas Royer  2012-07-01  176 }
13802005 Nicolas Royer  2012-07-01  177  
13802005 Nicolas Royer  2012-07-01  178 return off;
13802005 Nicolas Royer  2012-07-01  179  }
13802005 Nicolas Royer  2012-07-01  180  
13802005 Nicolas Royer  2012-07-01  181  static inline u32 
atmel_tdes_read(struct atmel_tdes_dev *dd, u32 offset)
13802005 Nicolas Royer  2012-07-01  182  {
13802005 Nicolas Royer  2012-07-01  183 return 
readl_relaxed(dd->io_base + offset);
13802005 Nicolas Royer  2012-07-01  184  }
13802005 Nicolas Royer  2012-07-01  185  
13802005 Nicolas Royer  2012-07-01  186  static inline void 
atmel_tdes_write(struct atmel_tdes_dev *dd,
13802005 Nicolas Royer  2012-07-01  187 
u32 offset, u32 value)
13802005 Nicolas Royer  2012-07-01  188  {
13802005 Nicolas Royer  2012-07-01  189 writel_relaxed(value, 
dd->io_base + offset);
13802005 Nicolas Royer  2012-07-01  190  }
13802005 Nicolas Royer  2012-07-01  191  
13802005 Nicolas Royer  2012-07-01  192  static void atmel_tdes_write_n(struct 

Re: [PATCH v2 2/2] crypto/algapi - make crypto_xor() take separate dst and src arguments

2017-07-22 Thread kbuild test robot
Hi Ard,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.13-rc1 next-20170721]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Ard-Biesheuvel/crypto-algapi-use-separate-dst-and-src-operands-for-__crypto_xor/20170719-090848
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   drivers/crypto/vmx/aes_ctr.c: In function 'p8_aes_ctr_final':
   drivers/crypto/vmx/aes_ctr.c:107:29: warning: passing argument 3 of 
'crypto_xor' makes integer from pointer without a cast [-Wint-conversion]
 crypto_xor(dst, keystream, src, nbytes);
^~~
   In file included from include/crypto/scatterwalk.h:19:0,
from drivers/crypto/vmx/aes_ctr.c:29:
   include/crypto/algapi.h:197:20: note: expected 'unsigned int' but argument 
is of type 'u8 * {aka unsigned char *}'
static inline void crypto_xor(u8 *dst, const u8 *src, unsigned int size)
   ^~
>> drivers/crypto/vmx/aes_ctr.c:107:2: error: too many arguments to function 
>> 'crypto_xor'
 crypto_xor(dst, keystream, src, nbytes);
 ^~
   In file included from include/crypto/scatterwalk.h:19:0,
from drivers/crypto/vmx/aes_ctr.c:29:
   include/crypto/algapi.h:197:20: note: declared here
static inline void crypto_xor(u8 *dst, const u8 *src, unsigned int size)
   ^~

vim +/crypto_xor +107 drivers/crypto/vmx/aes_ctr.c

89  
90  static void p8_aes_ctr_final(struct p8_aes_ctr_ctx *ctx,
91   struct blkcipher_walk *walk)
92  {
93  u8 *ctrblk = walk->iv;
94  u8 keystream[AES_BLOCK_SIZE];
95  u8 *src = walk->src.virt.addr;
96  u8 *dst = walk->dst.virt.addr;
97  unsigned int nbytes = walk->nbytes;
98  
99  preempt_disable();
   100  pagefault_disable();
   101  enable_kernel_vsx();
   102  aes_p8_encrypt(ctrblk, keystream, &ctx->enc_key);
   103  disable_kernel_vsx();
   104  pagefault_enable();
   105  preempt_enable();
   106  
 > 107  crypto_xor(dst, keystream, src, nbytes);
   108  crypto_inc(ctrblk, AES_BLOCK_SIZE);
   109  }
   110  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH V2] staging: ccree: Fix format/argument mismatches

2017-08-03 Thread kbuild test robot
Hi Joe,

[auto build test WARNING on staging/staging-testing]
[also build test WARNING on next-20170803]
[cannot apply to v4.13-rc3]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Joe-Perches/staging-ccree-Fix-format-argument-mismatches/20170731-191055
config: m32r-allmodconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 6.2.0
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m32r 

All warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:13:0,
from drivers/staging/ccree/ssi_driver.c:17:
   drivers/staging/ccree/ssi_driver.c: In function 'init_cc_regs':
>> drivers/staging/ccree/ssi_driver.c:180:16: warning: format '%X' expects 
>> argument of type 'unsigned int', but argument 2 has type 'long unsigned int' 
>> [-Wformat=]
 SSI_LOG_DEBUG("AXIM_CFG=0x%08X\n", 
CC_HAL_READ_REGISTER(CC_REG_OFFSET(CRY_KERNEL, AXIM_CFG)));
   ^
   include/linux/printk.h:136:11: note: in definition of macro 'no_printk'
   printk(fmt, ##__VA_ARGS__); \
  ^~~
>> drivers/staging/ccree/ssi_driver.c:180:2: note: in expansion of macro 
>> 'SSI_LOG_DEBUG'
 SSI_LOG_DEBUG("AXIM_CFG=0x%08X\n", 
CC_HAL_READ_REGISTER(CC_REG_OFFSET(CRY_KERNEL, AXIM_CFG)));
 ^
   In file included from drivers/staging/ccree/ssi_driver.c:64:0:
   drivers/staging/ccree/ssi_driver.c: In function 'init_cc_resources':
   include/linux/kern_levels.h:4:18: warning: format '%X' expects argument of 
type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
#define KERN_SOH "\001"  /* ASCII Start Of Header */
 ^
   drivers/staging/ccree/ssi_driver.h:95:9: note: in definition of macro 
'SSI_LOG'
 printk(level "cc715ree::%s: " format, __func__, ##__VA_ARGS__)
^
   include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH'
#define KERN_INFO KERN_SOH "6" /* informational */
  ^~~~
   drivers/staging/ccree/ssi_driver.c:319:10: note: in expansion of macro 
'KERN_INFO'
 SSI_LOG(KERN_INFO, "ARM CryptoCell %s Driver: HW version 0x%08X, Driver 
version %s\n", SSI_DEV_NAME_STR,
 ^

vim +180 drivers/staging/ccree/ssi_driver.c

abefd674 Gilad Ben-Yossef 2017-04-23  @17  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   18  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   19  
abefd674 Gilad Ben-Yossef 2017-04-23   20  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   21  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   22  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   23  #include 
fe0a1951 Gilad Ben-Yossef 2017-04-23   24  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   25  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   26  #include 
302ef8eb Gilad Ben-Yossef 2017-04-23   27  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   28  
abefd674 Gilad Ben-Yossef 2017-04-23   29  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   30  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   31  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   32  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   33  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   34  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   35  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   36  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   37  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   38  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   39  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   40  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   41  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   42  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   43  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   44  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   45  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   46  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   47  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   48  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   49  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   50  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   51  
abefd674 Gilad Ben-Yossef 2017-04-23   52  /* cache.h required for 
L1_CACHE_ALIGN() and cache_line_size() */
abefd674 Gilad Ben-Yossef 2017-04-23   53  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   54  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   55  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   56  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   57  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   58  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   59  #include 
675ef02f Gilad Ben-Yossef 2017-06-25   60  #include 
d255b343 Gilad Ben-Yossef 2017-06-25   61  #include 
abefd674 Gilad Ben-Yossef 2017-04-23   62  
abefd674 Gilad Ben-Yo

Re: [PATCH v6 04/19] crypto: marvell/cesa: remove redundant backlog checks on EBUSY

2017-08-24 Thread kbuild test robot
Hi Gilad,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.13-rc6 next-20170823]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Gilad-Ben-Yossef/crypto-change-transient-busy-return-code-to-EAGAIN/20170824-180606
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm 

All error/warnings (new ones prefixed by >>):

   drivers/crypto/marvell/cesa.c: In function 'mv_cesa_queue_req':
>> drivers/crypto/marvell/cesa.c:187:3: error: expected ')' before 
>> 'mv_cesa_tdma_chain'
  mv_cesa_tdma_chain(engine, creq);
  ^~
>> drivers/crypto/marvell/cesa.c:196:1: error: expected expression before '}' 
>> token
}
^
>> drivers/crypto/marvell/cesa.c:196:1: warning: control reaches end of 
>> non-void function [-Wreturn-type]
}
^

vim +187 drivers/crypto/marvell/cesa.c

f63601fd6 Boris Brezillon  2015-06-18  176  
53da740fe Romain Perier2016-06-21  177  int mv_cesa_queue_req(struct 
crypto_async_request *req,
53da740fe Romain Perier2016-06-21  178struct 
mv_cesa_req *creq)
f63601fd6 Boris Brezillon  2015-06-18  179  {
f63601fd6 Boris Brezillon  2015-06-18  180  int ret;
bf8f91e71 Romain Perier2016-06-21  181  struct mv_cesa_engine *engine = 
creq->engine;
f63601fd6 Boris Brezillon  2015-06-18  182  
bf8f91e71 Romain Perier2016-06-21  183  spin_lock_bh(&engine->lock);
bf8f91e71 Romain Perier2016-06-21  184  ret = 
crypto_enqueue_request(&engine->queue, req);
603e989eb Romain Perier2016-07-22  185  if ((mv_cesa_req_get_type(creq) 
== CESA_DMA_REQ) &&
3a1c7473a Gilad Ben-Yossef 2017-08-21  186  (ret == -EINPROGRESS || ret 
== -EBUSY)
603e989eb Romain Perier2016-07-22 @187  
mv_cesa_tdma_chain(engine, creq);
bf8f91e71 Romain Perier2016-06-21  188  spin_unlock_bh(&engine->lock);
f63601fd6 Boris Brezillon  2015-06-18  189  
f63601fd6 Boris Brezillon  2015-06-18  190  if (ret != -EINPROGRESS)
f63601fd6 Boris Brezillon  2015-06-18  191  return ret;
f63601fd6 Boris Brezillon  2015-06-18  192  
85030c516 Romain Perier2016-06-21  193  mv_cesa_rearm_engine(engine);
f63601fd6 Boris Brezillon  2015-06-18  194  
f63601fd6 Boris Brezillon  2015-06-18  195  return -EINPROGRESS;
f63601fd6 Boris Brezillon  2015-06-18 @196  }
f63601fd6 Boris Brezillon  2015-06-18  197  

:: The code at line 187 was first introduced by commit
:: 603e989ebee21bfa9cddf8390d0515a07324edc8 crypto: marvell - Don't chain 
at DMA level when backlog is disabled

:: TO: Romain Perier 
:: CC: Herbert Xu 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH] crypto: s5p-sss: Add HASH support for Exynos

2017-09-15 Thread kbuild test robot
Hi Kamil,

[auto build test WARNING on cryptodev/master]
[also build test WARNING on v4.13 next-20170915]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Kamil-Konieczny/crypto-s5p-sss-Add-HASH-support-for-Exynos/20170915-161309
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: tile-allmodconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=tile 

All warnings (new ones prefixed by >>):

   drivers//crypto/s5p-sss.c: In function 's5p_hash_xmit_dma':
>> drivers//crypto/s5p-sss.c:1153:2: warning: format '%d' expects argument of 
>> type 'int', but argument 5 has type 'size_t' [-Wformat]

vim +1153 drivers//crypto/s5p-sss.c

  1131  
  1132  /**
  1133   * s5p_hash_xmit_dma - start DMA hash processing
  1134   * @dd: secss device
  1135   * @length: length for request
  1136   * @final:  0=not final
  1137   *
  1138   * Map ctx->sg into DMA_TO_DEVICE,
  1139   * remember sg and cnt in device dd->hash_sg_iter, dd->hash_sg_cnt
  1140   * so it can be used in loop inside irq handler.
  1141   * Update ctx->digcnt, need this to keep number of processed bytes
  1142   * for last final/finup request.
  1143   * Set dma address and length, this starts DMA,
  1144   * return with -EINPROGRESS.
  1145   * HW HASH block will issue signal for irq handler.
  1146   */
  1147  static int s5p_hash_xmit_dma(struct s5p_aes_dev *dd, size_t length,
  1148int final)
  1149  {
  1150  struct s5p_hash_reqctx *ctx = ahash_request_ctx(dd->hash_req);
  1151  int cnt;
  1152  
> 1153  dev_dbg(dd->dev, "xmit_dma: digcnt: %lld, length: %d, final: 
> %d\n",
  1154  ctx->digcnt, length, 
final);
  1155  
  1156  cnt = dma_map_sg(dd->dev, ctx->sg, ctx->sg_len, DMA_TO_DEVICE);
  1157  if (!cnt) {
  1158  dev_err(dd->dev, "dma_map_sg error\n");
  1159  set_bit(HASH_FLAGS_ERROR, &ctx->flags);
  1160  return -EINVAL;
  1161  }
  1162  
  1163  FLOW_LOG("xmit_dma");
  1164  set_bit(HASH_FLAGS_DMA_ACTIVE, &dd->hash_flags);
  1165  
  1166  dd->hash_sg_iter = ctx->sg;
  1167  dd->hash_sg_cnt = cnt;
  1168  FLOW_LOG("xmit_dma cnt=%d final=%d len=%d", cnt, final, length);
  1169  
  1170  s5p_hash_write_ctrl(dd, length, final);
  1171  
  1172  /* update digcnt in request */
  1173  ctx->digcnt += length;
  1174  ctx->total -= length;
  1175  
  1176  /* catch last interrupt */
  1177  if (final)
  1178  set_bit(HASH_FLAGS_FINAL, &dd->hash_flags);
  1179  
  1180  s5p_set_dma_hashdata(dd, dd->hash_sg_iter); /* DMA starts */
  1181  
  1182  return -EINPROGRESS;
  1183  }
  1184  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[cryptodev:master 21/61] htmldocs: include/crypto/hash.h:89: warning: duplicate section name 'Note'

2017-09-22 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   f0e2ce58f853634d7ad1a418a49bd5fbd556227c
commit: 560b1a82ee87288c18aca31ee3053272c3737fe5 [21/61] crypto: doc - clarify 
return values for async hash methods
reproduce: make htmldocs

All warnings (new ones prefixed by >>):

   WARNING: convert(1) not found, for SVG to PDF conversion install ImageMagick 
(https://www.imagemagick.org)
   kernel/trace/blktrace.c:818: warning: No description found for parameter 
'cgid'
>> include/crypto/hash.h:89: warning: duplicate section name 'Note'
   include/crypto/hash.h:95: warning: duplicate section name 'Note'
   include/crypto/hash.h:102: warning: duplicate section name 'Note'
>> include/crypto/hash.h:89: warning: duplicate section name 'Note'
   include/crypto/hash.h:95: warning: duplicate section name 'Note'
   include/crypto/hash.h:102: warning: duplicate section name 'Note'
>> include/crypto/hash.h:89: warning: duplicate section name 'Note'
   include/crypto/hash.h:95: warning: duplicate section name 'Note'
   include/crypto/hash.h:102: warning: duplicate section name 'Note'
>> include/crypto/hash.h:89: warning: duplicate section name 'Note'
   include/crypto/hash.h:95: warning: duplicate section name 'Note'
   include/crypto/hash.h:102: warning: duplicate section name 'Note'
>> include/crypto/hash.h:89: warning: duplicate section name 'Note'
   include/crypto/hash.h:95: warning: duplicate section name 'Note'
   include/crypto/hash.h:102: warning: duplicate section name 'Note'
>> include/crypto/hash.h:89: warning: duplicate section name 'Note'
   include/crypto/hash.h:95: warning: duplicate section name 'Note'
   include/crypto/hash.h:102: warning: duplicate section name 'Note'
>> include/crypto/hash.h:89: warning: duplicate section name 'Note'
   include/crypto/hash.h:95: warning: duplicate section name 'Note'
   include/crypto/hash.h:102: warning: duplicate section name 'Note'
>> include/crypto/hash.h:89: warning: duplicate section name 'Note'
   include/crypto/hash.h:95: warning: duplicate section name 'Note'
   include/crypto/hash.h:102: warning: duplicate section name 'Note'
   include/linux/sync_file.h:51: warning: No description found for parameter 
'flags'
   drivers/gpio/gpiolib.c:593: warning: No description found for parameter '16'
   drivers/gpio/gpiolib.c:593: warning: Excess struct/union/enum/typedef member 
'events' description in 'lineevent_state'
   include/linux/usb/gadget.h:232: warning: No description found for parameter 
'claimed'
   include/linux/usb/gadget.h:232: warning: No description found for parameter 
'enabled'
   include/linux/usb/gadget.h:414: warning: No description found for parameter 
'quirk_altset_not_supp'
   include/linux/usb/gadget.h:414: warning: No description found for parameter 
'quirk_stall_not_supp'
   include/linux/usb/gadget.h:414: warning: No description found for parameter 
'quirk_zlp_not_supp'
   fs/inode.c:1680: warning: No description found for parameter 'rcu'
   include/linux/jbd2.h:443: warning: No description found for parameter 
'i_transaction'
   include/linux/jbd2.h:443: warning: No description found for parameter 
'i_next_transaction'
   include/linux/jbd2.h:443: warning: No description found for parameter 
'i_list'
   include/linux/jbd2.h:443: warning: No description found for parameter 
'i_vfs_inode'
   include/linux/jbd2.h:443: warning: No description found for parameter 
'i_flags'
   include/linux/jbd2.h:497: warning: No description found for parameter 
'h_rsv_handle'
   include/linux/jbd2.h:497: warning: No description found for parameter 
'h_reserved'
   include/linux/jbd2.h:497: warning: No description found for parameter 
'h_type'
   include/linux/jbd2.h:497: warning: No description found for parameter 
'h_line_no'
   include/linux/jbd2.h:497: warning: No description found for parameter 
'h_start_jiffies'
   include/linux/jbd2.h:497: warning: No description found for parameter 
'h_requested_credits'
   include/linux/jbd2.h:497: warning: No description found for parameter 
'saved_alloc_context'
   include/linux/jbd2.h:1050: warning: No description found for parameter 
'j_chkpt_bhs'
   include/linux/jbd2.h:1050: warning: No description found for parameter 
'j_devname'
   include/linux/jbd2.h:1050: warning: No description found for parameter 
'j_average_commit_time'
   include/linux/jbd2.h:1050: warning: No description found for parameter 
'j_min_batch_time'
   include/linux/jbd2.h:1050: warning: No description found for parameter 
'j_max_batch_time'
   include/linux/jbd2.h:1050: warning: No description found for parameter 
'j_commit_callback'
   include/linux/jbd2.h:1050: warning: No description found for parameter 
'j_failed_commit'
   include/linux/jbd2.h:1050: warning: No description found for parameter 
'j_chksum_driver'
   include/linux/jbd2.h:1050: warning: No description found for parameter 
'j_csum_seed'
   fs/jbd2/transaction.c:511: warning: No description found for parameter 'type'
   fs/jbd2/

Re: [Part2 PATCH v4 07/29] crypto: ccp: Add Secure Encrypted Virtualization (SEV) command support

2017-09-22 Thread kbuild test robot
Hi Brijesh,

[auto build test WARNING on kvm/linux-next]
[also build test WARNING on v4.14-rc1 next-20170922]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Brijesh-Singh/x86-Secure-Encrypted-Virtualization-AMD/20170923-033600
base:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next


coccinelle warnings: (new ones prefixed by >>)

>> drivers/crypto/ccp/psp-dev.c:311:5-11: ERROR: allocation function on line 
>> 310 returns NULL not ERR_PTR on failure

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


[PATCH] crypto: ccp: fix eno.cocci warnings

2017-09-22 Thread kbuild test robot
drivers/crypto/ccp/psp-dev.c:311:5-11: ERROR: allocation function on line 310 
returns NULL not ERR_PTR on failure

 The various basic memory allocation functions don't return ERR_PTR

Generated by: scripts/coccinelle/null/eno.cocci

Fixes: 7d4ce155f344 ("crypto: ccp: Add Secure Encrypted Virtualization (SEV) 
command support")
CC: Brijesh Singh 
Signed-off-by: Fengguang Wu 
---

 psp-dev.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/crypto/ccp/psp-dev.c
+++ b/drivers/crypto/ccp/psp-dev.c
@@ -308,7 +308,7 @@ static void *copy_user_blob(u64 __user u
return ERR_PTR(-EINVAL);
 
data = kmalloc(len, GFP_KERNEL);
-   if (IS_ERR(data))
+   if (!data)
return ERR_PTR(-ENOMEM);
 
if (copy_from_user(data, (void __user *)(uintptr_t)uaddr, len))


Re: [PATCH net-next 1/2] cxgb4: Add support for Inline IPSec Tx

2017-10-28 Thread kbuild test robot
Hi Atul,

Thank you for the patch! Yet we hit a small issue.
[auto build test ERROR on net-next/master]

url:
https://github.com/0day-ci/linux/commits/Atul-Gupta/cxgb4-Add-support-for-Inline-IPSec-Tx/20171029-060344
config: x86_64-kexec (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/net//ethernet/chelsio/cxgb4/sge.c: In function 't4_eth_xmit':
>> drivers/net//ethernet/chelsio/cxgb4/sge.c:1198:6: error: implicit 
>> declaration of function 'xfrm_offload' 
>> [-Werror=implicit-function-declaration]
 if (xfrm_offload(skb) && !ssi->gso_size)
 ^~~~
   cc1: some warnings being treated as errors

vim +/xfrm_offload +1198 drivers/net//ethernet/chelsio/cxgb4/sge.c

  1177  
  1178  /*
  1179   * The chip min packet length is 10 octets but play safe and 
reject
  1180   * anything shorter than an Ethernet header.
  1181   */
  1182  if (unlikely(skb->len < ETH_HLEN)) {
  1183  out_free:   dev_kfree_skb_any(skb);
  1184  return NETDEV_TX_OK;
  1185  }
  1186  
  1187  /* Discard the packet if the length is greater than mtu */
  1188  max_pkt_len = ETH_HLEN + dev->mtu;
  1189  if (skb_vlan_tagged(skb))
  1190  max_pkt_len += VLAN_HLEN;
  1191  if (!skb_shinfo(skb)->gso_size && (unlikely(skb->len > 
max_pkt_len)))
  1192  goto out_free;
  1193  
  1194  pi = netdev_priv(dev);
  1195  adap = pi->adapter;
  1196  ssi = skb_shinfo(skb);
  1197  
> 1198  if (xfrm_offload(skb) && !ssi->gso_size)
  1199  return adap->uld[CXGB4_ULD_CRYPTO].tx_handler(skb, dev);
  1200  
  1201  qidx = skb_get_queue_mapping(skb);
  1202  if (ptp_enabled) {
  1203  spin_lock(&adap->ptp_lock);
  1204  if (!(adap->ptp_tx_skb)) {
  1205  skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS;
  1206  adap->ptp_tx_skb = skb_get(skb);
  1207  } else {
  1208  spin_unlock(&adap->ptp_lock);
  1209  goto out_free;
  1210  }
  1211  q = &adap->sge.ptptxq;
  1212  } else {
  1213  q = &adap->sge.ethtxq[qidx + pi->first_qset];
  1214  }
  1215  skb_tx_timestamp(skb);
  1216  
  1217  cxgb4_reclaim_completed_tx(adap, &q->q, true);
  1218  cntrl = TXPKT_L4CSUM_DIS_F | TXPKT_IPCSUM_DIS_F;
  1219  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH net-next 2/2] chcr: Add support for Inline IPSec

2017-10-28 Thread kbuild test robot
Hi Atul,

Thank you for the patch! Yet we hit a small issue.
[auto build test ERROR on net-next/master]

url:
https://github.com/0day-ci/linux/commits/Atul-Gupta/cxgb4-Add-support-for-Inline-IPSec-Tx/20171029-060344
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   In file included from drivers/crypto/chelsio/chcr_core.h:41:0,
from drivers/crypto/chelsio/chcr_ipsec.c:64:
   drivers/crypto/chelsio/chcr_ipsec.c: In function 'chcr_ipsec_xmit':
>> drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:1678:13: error: inlining failed 
>> in call to always_inline 'cxgb4_reclaim_completed_tx': function body not 
>> available
inline void cxgb4_reclaim_completed_tx(struct adapter *adap,
^~
   drivers/crypto/chelsio/chcr_ipsec.c:597:2: note: called from here
 cxgb4_reclaim_completed_tx(adap, &q->q, true);
 ^
   In file included from drivers/crypto/chelsio/chcr_core.h:41:0,
from drivers/crypto/chelsio/chcr_ipsec.c:64:
>> drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:1678:13: error: inlining failed 
>> in call to always_inline 'cxgb4_reclaim_completed_tx': function body not 
>> available
inline void cxgb4_reclaim_completed_tx(struct adapter *adap,
^~
   drivers/crypto/chelsio/chcr_ipsec.c:597:2: note: called from here
 cxgb4_reclaim_completed_tx(adap, &q->q, true);
 ^
   In file included from drivers/crypto/chelsio/chcr_core.h:41:0,
from drivers/crypto/chelsio/chcr_ipsec.c:64:
>> drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:1687:13: error: inlining failed 
>> in call to always_inline 'cxgb4_ring_tx_db': function body not available
inline void cxgb4_ring_tx_db(struct adapter *adap, struct sge_txq *q, int 
n);
^~~~
   drivers/crypto/chelsio/chcr_ipsec.c:657:2: note: called from here
 cxgb4_ring_tx_db(adap, &q->q, ndesc);
 ^~~~
   In file included from drivers/crypto/chelsio/chcr_core.h:41:0,
from drivers/crypto/chelsio/chcr_ipsec.c:64:
>> drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:1687:13: error: inlining failed 
>> in call to always_inline 'cxgb4_ring_tx_db': function body not available
inline void cxgb4_ring_tx_db(struct adapter *adap, struct sge_txq *q, int 
n);
^~~~
   drivers/crypto/chelsio/chcr_ipsec.c:657:2: note: called from here
 cxgb4_ring_tx_db(adap, &q->q, ndesc);
 ^~~~

vim +/cxgb4_reclaim_completed_tx +1678 
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h

f2b7e78db drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Vipul Pandya 
2012-12-10  1562  
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1563  void t4_wol_magic_enable(struct adapter *adap, unsigned int 
port,
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1564   const u8 *addr);
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1565  int t4_wol_pat_enable(struct adapter *adap, unsigned int 
port, unsigned int map,
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1566u64 mask0, u64 mask1, unsigned int crc, 
bool enable);
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1567  
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1568  int t4_fw_hello(struct adapter *adap, unsigned int mbox, 
unsigned int evt_mbox,
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1569  enum dev_master master, enum dev_state *state);
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1570  int t4_fw_bye(struct adapter *adap, unsigned int mbox);
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1571  int t4_early_init(struct adapter *adap, unsigned int mbox);
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1572  int t4_fw_reset(struct adapter *adap, unsigned int mbox, int 
reset);
636f9d371 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Vipul Pandya 
2012-09-26  1573  int t4_fixup_host_params(struct adapter *adap, unsigned int 
page_size,
636f9d371 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Vipul Pandya 
2012-09-26  1574unsigned int cache_line_size);
636f9d371 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Vipul Pandy

Re: [PATCH net-next 2/2] chcr: Add support for Inline IPSec

2017-10-28 Thread kbuild test robot
Hi Atul,

Thank you for the patch! Yet we hit a small issue.
[auto build test WARNING on net-next/master]

url:
https://github.com/0day-ci/linux/commits/Atul-Gupta/cxgb4-Add-support-for-Inline-IPSec-Tx/20171029-060344
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)


vim +1678 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h

f2b7e78db drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Vipul Pandya 
2012-12-10  1562  
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1563  void t4_wol_magic_enable(struct adapter *adap, unsigned int 
port,
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1564   const u8 *addr);
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1565  int t4_wol_pat_enable(struct adapter *adap, unsigned int 
port, unsigned int map,
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1566u64 mask0, u64 mask1, unsigned int crc, 
bool enable);
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1567  
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1568  int t4_fw_hello(struct adapter *adap, unsigned int mbox, 
unsigned int evt_mbox,
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1569  enum dev_master master, enum dev_state *state);
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1570  int t4_fw_bye(struct adapter *adap, unsigned int mbox);
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1571  int t4_early_init(struct adapter *adap, unsigned int mbox);
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1572  int t4_fw_reset(struct adapter *adap, unsigned int mbox, int 
reset);
636f9d371 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Vipul Pandya 
2012-09-26  1573  int t4_fixup_host_params(struct adapter *adap, unsigned int 
page_size,
636f9d371 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Vipul Pandya 
2012-09-26  1574unsigned int cache_line_size);
636f9d371 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Vipul Pandya 
2012-09-26  1575  int t4_fw_initialize(struct adapter *adap, unsigned int mbox);
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1576  int t4_query_params(struct adapter *adap, unsigned int mbox, 
unsigned int pf,
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1577  unsigned int vf, unsigned int nparams, const 
u32 *params,
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1578  u32 *val);
8f46d4671 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Arjun Vynipadath 
2017-06-23  1579  int t4_query_params_ns(struct adapter *adap, unsigned int 
mbox, unsigned int pf,
8f46d4671 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Arjun Vynipadath 
2017-06-23  1580 unsigned int vf, unsigned int nparams, 
const u32 *params,
8f46d4671 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Arjun Vynipadath 
2017-06-23  1581 u32 *val);
01b696141 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Hariprasad Shenai
2015-05-22  1582  int t4_query_params_rw(struct adapter *adap, unsigned int 
mbox, unsigned int pf,
625ba2c2e drivers/net/cxgb4/cxgb4.h  Dimitris Michailidis 
2010-04-01  1583 unsigned int vf, unsigned int nparams, 
const u32 *params,
8f46d4671 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Arjun Vynipadath 
2017-06-23  1584 u32 *val, int rw, bool sleep_ok);
01b696141 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Hariprasad Shenai
2015-05-22  1585  int t4_set_params_timeout(struct adapter *adap, unsigned int 
mbox,
688848b14 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Anish Bhatt  
2014-06-19  1586unsigned int pf, unsigned int vf,
688848b14 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Anish Bhatt  
2014-06-19  1587unsigned int nparams, const u32 *params,
01b696141 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Hariprasad Shenai
2015-05-22  1588const u32 *val, int timeout);
01b696141 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Hariprasad Shenai
2015-05-22  1589  int t4_set_params(struct adapter *adap, unsigned int mbox, 
unsigned int pf,
01b696141 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Hariprasad Shenai
2015-05-22  1590unsigned int vf, unsigned int nparams, const 
u32 *params,
688848b14 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h Anish Bhatt  
2014-06-19  1591c

Re: [PATCH RESEND 4/4] dma: caam: add dma memcpy driver

2017-11-02 Thread kbuild test robot
Hi Radu,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on cryptodev/master]
[also build test WARNING on v4.14-rc7 next-20171018]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Horia-Geant/add-CAAM-DMA-memcpy-driver/20171102-081734
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

>> WARNING: drivers/dma/caam_dma.o(.data+0x8): Section mismatch in reference 
>> from the variable caam_dma_driver to the function .init.text:caam_dma_probe()
   The variable caam_dma_driver references
   the function __init caam_dma_probe()
   If the reference is valid then annotate the
   variable with or __refdata (see linux/init.h) or name the variable:
   

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[cryptodev:master 125/166] FATAL: drivers/crypto/marvell/marvell-cesa: struct platform_device_id is not terminated with a NULL entry!

2017-11-03 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   7a373fd74a8d1c4882e0236cc38345cec1393505
commit: 7b0c3d693ce65900dd3c79766185f539fa37a29a [125/166] crypto: marvell - 
Add a platform_device_id table
config: arm-multi_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 7b0c3d693ce65900dd3c79766185f539fa37a29a
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/crypto/marvell/marvell-cesa: struct platform_device_id is 24 bytes.  
The last of 1 is:
   0x6d 0x76 0x5f 0x63 0x72 0x79 0x70 0x74 0x6f 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
>> FATAL: drivers/crypto/marvell/marvell-cesa: struct platform_device_id is not 
>> terminated with a NULL entry!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v2 2/2] chcr: Add support for Inline IPSec

2017-11-15 Thread kbuild test robot
Hi Atul,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on cryptodev/master]
[also build test ERROR on next-20171115]
[cannot apply to v4.14]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Atul-Gupta/cxgb4-Add-support-for-Inline-IPSec-Tx/20171112-012558
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: x86_64-randconfig-g0-11160917 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/crypto/chelsio/chcr_core.o: In function `chcr_uld_tx_handler':
>> drivers/crypto/chelsio/chcr_core.c:195: undefined reference to 
>> `chcr_ipsec_xmit'
   drivers/crypto/chelsio/chcr_core.o: In function `chcr_uld_add':
>> drivers/crypto/chelsio/chcr_core.c:169: undefined reference to 
>> `chcr_add_xfrmops'

vim +195 drivers/crypto/chelsio/chcr_core.c

   152  
   153  static void *chcr_uld_add(const struct cxgb4_lld_info *lld)
   154  {
   155  struct uld_ctx *u_ctx;
   156  
   157  /* Create the device and add it in the device list */
   158  if (!(lld->ulp_crypto & ULP_CRYPTO_LOOKASIDE))
   159  return ERR_PTR(-EOPNOTSUPP);
   160  
   161  /* Create the device and add it in the device list */
   162  u_ctx = kzalloc(sizeof(*u_ctx), GFP_KERNEL);
   163  if (!u_ctx) {
   164  u_ctx = ERR_PTR(-ENOMEM);
   165  goto out;
   166  }
   167  u_ctx->lldi = *lld;
   168  if (lld->crypto & ULP_CRYPTO_IPSEC_INLINE)
 > 169  chcr_add_xfrmops(lld);
   170  out:
   171  return u_ctx;
   172  }
   173  
   174  int chcr_uld_rx_handler(void *handle, const __be64 *rsp,
   175  const struct pkt_gl *pgl)
   176  {
   177  struct uld_ctx *u_ctx = (struct uld_ctx *)handle;
   178  struct chcr_dev *dev = u_ctx->dev;
   179  const struct cpl_fw6_pld *rpl = (struct cpl_fw6_pld *)rsp;
   180  
   181  if (rpl->opcode != CPL_FW6_PLD) {
   182  pr_err("Unsupported opcode\n");
   183  return 0;
   184  }
   185  
   186  if (!pgl)
   187  work_handlers[rpl->opcode](dev, (unsigned char 
*)&rsp[1]);
   188  else
   189  work_handlers[rpl->opcode](dev, pgl->va);
   190  return 0;
   191  }
   192  
   193  int chcr_uld_tx_handler(struct sk_buff *skb, struct net_device *dev)
   194  {
 > 195  return chcr_ipsec_xmit(skb, dev);
   196  }
   197  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[cryptodev:master 49/61] drivers/block/drbd/drbd_worker.c:304:1: warning: 'drbd_csum_ee' uses dynamic stack allocation

2016-01-27 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   2f313e029020f1fa5f58f38f48ff6988d67fc3c1
commit: 9534d67195118c39edf2ec0bb74e59993c4c0677 [49/61] drbd: Use shash and 
ahash
config: s390-allyesconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 9534d67195118c39edf2ec0bb74e59993c4c0677
# save the attached .config to linux build tree
make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   drivers/block/drbd/drbd_worker.c: In function 'drbd_csum_ee':
>> drivers/block/drbd/drbd_worker.c:304:1: warning: 'drbd_csum_ee' uses dynamic 
>> stack allocation
}
^
   drivers/block/drbd/drbd_worker.c: In function 'drbd_csum_bio':
>> drivers/block/drbd/drbd_worker.c:327:1: warning: 'drbd_csum_bio' uses 
>> dynamic stack allocation
}
^
--
   drivers/block/drbd/drbd_receiver.c: In function 'drbd_do_auth':
>> drivers/block/drbd/drbd_receiver.c:5092:1: warning: 'drbd_do_auth' uses 
>> dynamic stack allocation
}
^

vim +/drbd_csum_ee +304 drivers/block/drbd/drbd_worker.c

45bb912b Lars Ellenberg  2010-05-14  298/* and now the last, possibly 
only partially used page */
db830c46 Andreas Gruenbacher 2011-02-04  299len = peer_req->i.size & 
(PAGE_SIZE - 1);
45bb912b Lars Ellenberg  2010-05-14  300sg_set_page(&sg, page, len ?: 
PAGE_SIZE, 0);
9534d671 Herbert Xu  2016-01-24  301ahash_request_set_crypt(req, 
&sg, digest, sg.length);
9534d671 Herbert Xu  2016-01-24  302crypto_ahash_finup(req);
9534d671 Herbert Xu  2016-01-24  303ahash_request_zero(req);
45bb912b Lars Ellenberg  2010-05-14 @304  }
45bb912b Lars Ellenberg  2010-05-14  305  
9534d671 Herbert Xu  2016-01-24  306  void drbd_csum_bio(struct 
crypto_ahash *tfm, struct bio *bio, void *digest)
b411b363 Philipp Reisner 2009-09-25  307  {
9534d671 Herbert Xu  2016-01-24  308AHASH_REQUEST_ON_STACK(req, 
tfm);
b411b363 Philipp Reisner 2009-09-25  309struct scatterlist sg;
7988613b Kent Overstreet 2013-11-23  310struct bio_vec bvec;
7988613b Kent Overstreet 2013-11-23  311struct bvec_iter iter;
b411b363 Philipp Reisner 2009-09-25  312  
9534d671 Herbert Xu  2016-01-24  313ahash_request_set_tfm(req, tfm);
9534d671 Herbert Xu  2016-01-24  314ahash_request_set_callback(req, 
0, NULL, NULL);
b411b363 Philipp Reisner 2009-09-25  315  
b411b363 Philipp Reisner 2009-09-25  316sg_init_table(&sg, 1);
9534d671 Herbert Xu  2016-01-24  317crypto_ahash_init(req);
b411b363 Philipp Reisner 2009-09-25  318  
7988613b Kent Overstreet 2013-11-23  319bio_for_each_segment(bvec, bio, 
iter) {
7988613b Kent Overstreet 2013-11-23  320sg_set_page(&sg, 
bvec.bv_page, bvec.bv_len, bvec.bv_offset);
9534d671 Herbert Xu  2016-01-24  321
ahash_request_set_crypt(req, &sg, NULL, sg.length);
9534d671 Herbert Xu  2016-01-24  322
crypto_ahash_update(req);
b411b363 Philipp Reisner 2009-09-25  323}
9534d671 Herbert Xu  2016-01-24  324ahash_request_set_crypt(req, 
NULL, digest, 0);
9534d671 Herbert Xu  2016-01-24  325crypto_ahash_final(req);
9534d671 Herbert Xu  2016-01-24  326ahash_request_zero(req);
b411b363 Philipp Reisner 2009-09-25 @327  }
b411b363 Philipp Reisner 2009-09-25  328  
9676c760 Lars Ellenberg  2011-02-22  329  /* MAYBE merge common code with 
w_e_end_ov_req */
99920dc5 Andreas Gruenbacher 2011-03-16  330  static int w_e_send_csum(struct 
drbd_work *w, int cancel)

:: The code at line 304 was first introduced by commit
:: 45bb912bd5ea4d2b3a270a93cbdf767a0e2df6f5 drbd: Allow drbd_epoch_entries 
to use multiple bios. This should allow for better performance if the lower 
level IO stack of the peers differs in limits exposed either via the queue, or 
via some merge_bvec_fn.

:: TO: Lars Ellenberg 
:: CC: Philipp Reisner 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 50/61] drivers/nfc/s3fwrn5/firmware.c:501:1: warning: 's3fwrn5_fw_download' uses dynamic stack allocation

2016-01-27 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   2f313e029020f1fa5f58f38f48ff6988d67fc3c1
commit: 4a31340b36302d46207c6bb54d103d9fb568e916 [50/61] nfc: s3fwrn5: Use shash
config: s390-allyesconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 4a31340b36302d46207c6bb54d103d9fb568e916
# save the attached .config to linux build tree
make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   drivers/nfc/s3fwrn5/firmware.c: In function 's3fwrn5_fw_download':
>> drivers/nfc/s3fwrn5/firmware.c:501:1: warning: 's3fwrn5_fw_download' uses 
>> dynamic stack allocation
}
^

vim +/s3fwrn5_fw_download +501 drivers/nfc/s3fwrn5/firmware.c

c04c674f Robert Baldyga 2015-08-20  485 goto out;
c04c674f Robert Baldyga 2015-08-20  486 }
c04c674f Robert Baldyga 2015-08-20  487 }
c04c674f Robert Baldyga 2015-08-20  488  
c04c674f Robert Baldyga 2015-08-20  489 ret = 
s3fwrn5_fw_complete_update_mode(fw_info);
c04c674f Robert Baldyga 2015-08-20  490 if (ret < 0) {
c04c674f Robert Baldyga 2015-08-20  491 
dev_err(&fw_info->ndev->nfc_dev->dev,
c04c674f Robert Baldyga 2015-08-20  492 "Unable to 
complete update mode\n");
c04c674f Robert Baldyga 2015-08-20  493 goto out;
c04c674f Robert Baldyga 2015-08-20  494 }
c04c674f Robert Baldyga 2015-08-20  495  
c04c674f Robert Baldyga 2015-08-20  496 
dev_info(&fw_info->ndev->nfc_dev->dev,
c04c674f Robert Baldyga 2015-08-20  497 "Firmware update: 
success\n");
c04c674f Robert Baldyga 2015-08-20  498  
c04c674f Robert Baldyga 2015-08-20  499  out:
c04c674f Robert Baldyga 2015-08-20  500 return ret;
c04c674f Robert Baldyga 2015-08-20 @501  }
c04c674f Robert Baldyga 2015-08-20  502  
c04c674f Robert Baldyga 2015-08-20  503  void s3fwrn5_fw_init(struct 
s3fwrn5_fw_info *fw_info, const char *fw_name)
c04c674f Robert Baldyga 2015-08-20  504  {
c04c674f Robert Baldyga 2015-08-20  505 fw_info->parity = 0x00;
c04c674f Robert Baldyga 2015-08-20  506 fw_info->rsp = NULL;
c04c674f Robert Baldyga 2015-08-20  507 fw_info->fw.fw = NULL;
c04c674f Robert Baldyga 2015-08-20  508 strcpy(fw_info->fw_name, 
fw_name);
c04c674f Robert Baldyga 2015-08-20  509 
init_completion(&fw_info->completion);

:: The code at line 501 was first introduced by commit
:: c04c674fadeb4a8e6522fc838d4620f7cfd4c621 nfc: s3fwrn5: Add driver for 
Samsung S3FWRN5 NFC Chip

:: TO: Robert Baldyga 
:: CC: Samuel Ortiz 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 53/61] fs/nfsd/nfs4recover.c:147:1: warning: 'nfs4_make_rec_clidname' uses dynamic stack allocation

2016-01-27 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   2f313e029020f1fa5f58f38f48ff6988d67fc3c1
commit: 1edb82d2021c7bae96509c03c4c5ef789f1e09a3 [53/61] nfsd: Use shash
config: s390-allyesconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 1edb82d2021c7bae96509c03c4c5ef789f1e09a3
# save the attached .config to linux build tree
make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   fs/nfsd/nfs4recover.c: In function 'nfs4_make_rec_clidname':
>> fs/nfsd/nfs4recover.c:147:1: warning: 'nfs4_make_rec_clidname' uses dynamic 
>> stack allocation
}
^

vim +/nfs4_make_rec_clidname +147 fs/nfsd/nfs4recover.c

1edb82d2 Herbert Xu2016-01-24  131  status = 
crypto_shash_digest(desc, clname->data, clname->len,
1edb82d2 Herbert Xu2016-01-24  132  
 cksum.data);
1edb82d2 Herbert Xu2016-01-24  133  shash_desc_zero(desc);
1edb82d2 Herbert Xu2016-01-24  134  }
a55370a3 NeilBrown 2005-06-23  135  
2216d449 Jeff Layton   2012-11-12  136  if (status)
35058687 Herbert Xu2006-08-24  137  goto out;
a55370a3 NeilBrown 2005-06-23  138  
a55370a3 NeilBrown 2005-06-23  139  md5_to_hex(dname, cksum.data);
a55370a3 NeilBrown 2005-06-23  140  
2216d449 Jeff Layton   2012-11-12  141  status = 0;
a55370a3 NeilBrown 2005-06-23  142  out:
2bd9e7b6 Krishna Kumar 2008-10-20  143  kfree(cksum.data);
1edb82d2 Herbert Xu2016-01-24  144  crypto_free_shash(tfm);
35058687 Herbert Xu2006-08-24  145  out_no_tfm:
a55370a3 NeilBrown 2005-06-23  146  return status;
a55370a3 NeilBrown 2005-06-23 @147  }
190e4fbf NeilBrown 2005-06-23  148  
2216d449 Jeff Layton   2012-11-12  149  /*
2216d449 Jeff Layton   2012-11-12  150   * If we had an error generating the 
recdir name for the legacy tracker
2216d449 Jeff Layton   2012-11-12  151   * then warn the admin. If the error 
doesn't appear to be transient,
2216d449 Jeff Layton   2012-11-12  152   * then disable recovery tracking.
2216d449 Jeff Layton   2012-11-12  153   */
2216d449 Jeff Layton   2012-11-12  154  static void
7255e716 Jeff Layton   2013-05-09  155  legacy_recdir_name_error(struct 
nfs4_client *clp, int error)

:: The code at line 147 was first introduced by commit
:: a55370a3c0106106a975c5a09cee800611d0cf50 [PATCH] knfsd: nfsd4: reboot 
hash

:: TO: NeilBrown 
:: CC: Linus Torvalds 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


Re: [PATCH] crypto: af_alg - add async support to algif_aead

2016-01-27 Thread kbuild test robot
Hi Tadeusz,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.5-rc1 next-20160127]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:
https://github.com/0day-ci/linux/commits/Tadeusz-Struk/crypto-af_alg-add-async-support-to-algif_aead/20160128-061818
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: x86_64-randconfig-x011-01270835 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   crypto/algif_aead.c: In function 'aead_async_cb':
>> crypto/algif_aead.c:386:29: error: implicit declaration of function 
>> 'aead_request_cast' [-Werror=implicit-function-declaration]
 struct aead_request *req = aead_request_cast(_req);
^
>> crypto/algif_aead.c:386:29: warning: initialization makes pointer from 
>> integer without a cast [-Wint-conversion]
   cc1: some warnings being treated as errors

vim +/aead_request_cast +386 crypto/algif_aead.c

   380  static void aead_async_cb(struct crypto_async_request *_req, int err)
   381  {
   382  struct sock *sk = _req->data;
   383  struct alg_sock *ask = alg_sk(sk);
   384  struct aead_ctx *ctx = ask->private;
   385  struct crypto_aead *tfm = crypto_aead_reqtfm(&ctx->aead_req);
 > 386  struct aead_request *req = aead_request_cast(_req);
   387  struct aead_async_req *areq = GET_ASYM_REQ(req, tfm);
   388  struct scatterlist *sg = areq->tsgl;
   389  struct aead_async_rsgl *rsgl;

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 54/61] net/sctp/sm_make_chunk.c:1688:1: warning: 'sctp_pack_cookie.isra.6' uses dynamic stack allocation

2016-01-27 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   2f313e029020f1fa5f58f38f48ff6988d67fc3c1
commit: 5821c769706561da81e9fcec4a6ca6dbbb2f30cb [54/61] sctp: Use shash
config: s390-allyesconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5821c769706561da81e9fcec4a6ca6dbbb2f30cb
# save the attached .config to linux build tree
make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   net/sctp/sm_make_chunk.c: In function 'sctp_pack_cookie.isra.6':
>> net/sctp/sm_make_chunk.c:1688:1: warning: 'sctp_pack_cookie.isra.6' uses 
>> dynamic stack allocation
}
^
   net/sctp/sm_make_chunk.c: In function 'sctp_unpack_cookie':
>> net/sctp/sm_make_chunk.c:1865:1: warning: 'sctp_unpack_cookie' uses dynamic 
>> stack allocation
}
^
--
   net/sctp/auth.c: In function 'sctp_auth_calculate_hmac':
>> net/sctp/auth.c:761:1: warning: 'sctp_auth_calculate_hmac' uses dynamic 
>> stack allocation
}
^

vim +1688 net/sctp/sm_make_chunk.c

1b489e11d Herbert Xu  2006-08-20  1682  
1b489e11d Herbert Xu  2006-08-20  1683  free_cookie:
1b489e11d Herbert Xu  2006-08-20  1684  kfree(retval);
1b489e11d Herbert Xu  2006-08-20  1685  nodata:
1b489e11d Herbert Xu  2006-08-20  1686  *cookie_len = 0;
1b489e11d Herbert Xu  2006-08-20  1687  return NULL;
^1da177e4 Linus Torvalds  2005-04-16 @1688  }
^1da177e4 Linus Torvalds  2005-04-16  1689  
^1da177e4 Linus Torvalds  2005-04-16  1690  /* Unpack the cookie from 
COOKIE ECHO chunk, recreating the association.  */
^1da177e4 Linus Torvalds  2005-04-16  1691  struct sctp_association 
*sctp_unpack_cookie(
^1da177e4 Linus Torvalds  2005-04-16  1692  const struct 
sctp_endpoint *ep,
^1da177e4 Linus Torvalds  2005-04-16  1693  const struct 
sctp_association *asoc,
dd0fc66fb Al Viro 2005-10-07  1694  struct sctp_chunk 
*chunk, gfp_t gfp,
^1da177e4 Linus Torvalds  2005-04-16  1695  int *error, struct 
sctp_chunk **errp)
^1da177e4 Linus Torvalds  2005-04-16  1696  {
^1da177e4 Linus Torvalds  2005-04-16  1697  struct sctp_association 
*retval = NULL;
^1da177e4 Linus Torvalds  2005-04-16  1698  struct 
sctp_signed_cookie *cookie;
^1da177e4 Linus Torvalds  2005-04-16  1699  struct sctp_cookie 
*bear_cookie;
^1da177e4 Linus Torvalds  2005-04-16  1700  int headersize, 
bodysize, fixed_size;
313e7b4d2 Vlad Yasevich   2006-01-17  1701  __u8 *digest = 
ep->digest;
570617e79 Daniel Borkmann 2013-02-12  1702  unsigned int len;
^1da177e4 Linus Torvalds  2005-04-16  1703  sctp_scope_t scope;
^1da177e4 Linus Torvalds  2005-04-16  1704  struct sk_buff *skb = 
chunk->skb;
52db882f3 Daniel Borkmann 2013-06-25  1705  ktime_t kt;
^1da177e4 Linus Torvalds  2005-04-16  1706  
9834a2bb4 Vlad Yasevich   2006-01-17  1707  /* Header size is 
static data prior to the actual cookie, including
9834a2bb4 Vlad Yasevich   2006-01-17  1708   * any padding.
9834a2bb4 Vlad Yasevich   2006-01-17  1709   */
9834a2bb4 Vlad Yasevich   2006-01-17  1710  headersize = 
sizeof(sctp_chunkhdr_t) +
9834a2bb4 Vlad Yasevich   2006-01-17  1711   
(sizeof(struct sctp_signed_cookie) -
9834a2bb4 Vlad Yasevich   2006-01-17  1712
sizeof(struct sctp_cookie));
^1da177e4 Linus Torvalds  2005-04-16  1713  bodysize = 
ntohs(chunk->chunk_hdr->length) - headersize;
^1da177e4 Linus Torvalds  2005-04-16  1714  fixed_size = headersize 
+ sizeof(struct sctp_cookie);
^1da177e4 Linus Torvalds  2005-04-16  1715  
^1da177e4 Linus Torvalds  2005-04-16  1716  /* Verify that the 
chunk looks like it even has a cookie.
^1da177e4 Linus Torvalds  2005-04-16  1717   * There must be enough 
room for our cookie and our peer's
^1da177e4 Linus Torvalds  2005-04-16  1718   * INIT chunk.
^1da177e4 Linus Torvalds  2005-04-16  1719   */
^1da177e4 Linus Torvalds  2005-04-16  1720  len = 
ntohs(chunk->chunk_hdr->length);
^1da177e4 Linus Torvalds  2005-04-16  1721  if (len < fixed_size + 
sizeof(struct sctp_chunkhdr))
^1da177e4 Linus Torvalds  2005-04-16  1722  goto malformed;
^1da177e4 Linus Torvalds  2005-04-16  1723  
^1da177e4 Linus Torvalds  2005-04-16  1724  /* Verify that the 
cookie has been padded out. */
^1da177e4 Linus Torvalds  2005-04-16  1725  if (bodysize % 
SCTP_COOKIE_MULTIPLE)
^1da177e4 Linus Torvalds  2005-04-16  1726  goto malformed;
^1da177e4 Linus Torvalds

[cryptodev:master 95/101] arch/arm/crypto/aesbs-glue.c:94:2: error: implicit declaration of function 'xts_check_key'

2016-02-16 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   ba871e1d299154953dcee23590c0316283897261
commit: 28856a9e52c7cac712af6c143de04766617535dc [95/101] crypto: xts - 
consolidate sanity check for keys
config: arm-multi_v7_defconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 28856a9e52c7cac712af6c143de04766617535dc
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   arch/arm/crypto/aesbs-glue.c: In function 'aesbs_xts_set_key':
>> arch/arm/crypto/aesbs-glue.c:94:2: error: implicit declaration of function 
>> 'xts_check_key' [-Werror=implicit-function-declaration]
 err = xts_check_key(tfm, in_key, key_len);
 ^
   cc1: some warnings being treated as errors
--
   arch/arm/crypto/aes-ce-glue.c: In function 'xts_set_key':
>> arch/arm/crypto/aes-ce-glue.c:155:2: error: implicit declaration of function 
>> 'xts_check_key' [-Werror=implicit-function-declaration]
 ret = xts_check_key(tfm, in_key, key_len);
 ^
   cc1: some warnings being treated as errors

vim +/xts_check_key +94 arch/arm/crypto/aesbs-glue.c

88   unsigned int key_len)
89  {
90  struct aesbs_xts_ctx *ctx = crypto_tfm_ctx(tfm);
91  int bits = key_len * 4;
92  int err;
93  
  > 94  err = xts_check_key(tfm, in_key, key_len);
95  if (err)
96  return err;
97  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 95/101] arch/s390/crypto/aes_s390.c:592:2: error: implicit declaration of function 'xts_check_key'

2016-02-16 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   ba871e1d299154953dcee23590c0316283897261
commit: 28856a9e52c7cac712af6c143de04766617535dc [95/101] crypto: xts - 
consolidate sanity check for keys
config: s390-performance_defconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 28856a9e52c7cac712af6c143de04766617535dc
# save the attached .config to linux build tree
make.cross ARCH=s390 

All errors (new ones prefixed by >>):

   arch/s390/crypto/aes_s390.c: In function 'xts_aes_set_key':
>> arch/s390/crypto/aes_s390.c:592:2: error: implicit declaration of function 
>> 'xts_check_key' [-Werror=implicit-function-declaration]
 err = xts_check_key(tfm, in_key, key_len);
 ^
   cc1: some warnings being treated as errors

vim +/xts_check_key +592 arch/s390/crypto/aes_s390.c

   586 unsigned int key_len)
   587  {
   588  struct s390_xts_ctx *xts_ctx = crypto_tfm_ctx(tfm);
   589  u32 *flags = &tfm->crt_flags;
   590  int err;
   591  
 > 592  err = xts_check_key(tfm, in_key, key_len);
   593  if (err)
   594  return err;
   595  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 95/102] arch/arm64/crypto/aes-glue.c:88:2: error: implicit declaration of function 'xts_check_key'

2016-02-17 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   49abc0d2e19b28e90f443334fb6cd66f275713e6
commit: 28856a9e52c7cac712af6c143de04766617535dc [95/102] crypto: xts - 
consolidate sanity check for keys
config: arm64-defconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 28856a9e52c7cac712af6c143de04766617535dc
# save the attached .config to linux build tree
make.cross ARCH=arm64 

Note: the cryptodev/master HEAD 49abc0d2e19b28e90f443334fb6cd66f275713e6 builds 
fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   arch/arm64/crypto/aes-glue.c: In function 'xts_set_key':
>> arch/arm64/crypto/aes-glue.c:88:2: error: implicit declaration of function 
>> 'xts_check_key' [-Werror=implicit-function-declaration]
 ret = xts_check_key(tfm, in_key, key_len);
 ^
   cc1: some warnings being treated as errors

vim +/xts_check_key +88 arch/arm64/crypto/aes-glue.c

82  static int xts_set_key(struct crypto_tfm *tfm, const u8 *in_key,
83 unsigned int key_len)
84  {
85  struct crypto_aes_xts_ctx *ctx = crypto_tfm_ctx(tfm);
86  int ret;
87  
  > 88  ret = xts_check_key(tfm, in_key, key_len);
89  if (ret)
90  return ret;
91  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 112/119] drivers/crypto/ccp/ccp-dev.c:120:2-20: ERROR: nested lock+irqsave that reuses flags from line 118.

2016-03-11 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   34074205bb9f04b416efb3cbedcd90f418c86200
commit: 553d2374db0bb3f48bbd29bef7ba2a4d1a3f325d [112/119] crypto: ccp - 
Support for multiple CCPs


coccinelle warnings: (new ones prefixed by >>)

>> drivers/crypto/ccp/ccp-dev.c:120:2-20: ERROR: nested lock+irqsave that 
>> reuses flags from line 118.

vim +120 drivers/crypto/ccp/ccp-dev.c

   112  unsigned long flags;
   113  struct ccp_device *dp = NULL;
   114  
   115  /* We round-robin through the unit list.
   116   * The (ccp_rr) pointer refers to the next unit to use.
   117   */
 > 118  read_lock_irqsave(&ccp_unit_lock, flags);
   119  if (!list_empty(&ccp_units)) {
 > 120  write_lock_irqsave(&ccp_rr_lock, flags);
   121  dp = ccp_rr;
   122  if (list_is_last(&ccp_rr->entry, &ccp_units))
   123  ccp_rr = list_first_entry(&ccp_units, struct 
ccp_device,

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 1/3] crypto: marvell/cesa - replace dma_to_phys with dma_map_single

2016-03-19 Thread kbuild test robot
Hi Sinan,

[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on v4.5 next-20160318]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:
https://github.com/0day-ci/linux/commits/Sinan-Kaya/crypto-marvell-cesa-replace-dma_to_phys-with-dma_map_single/20160318-060640
base:   https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux 
for-next/core
config: arm-allmodconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/crypto/marvell/cesa.c: In function 'mv_cesa_get_sram':
>> drivers/crypto/marvell/cesa.c:354:21: error: macro "dma_map_single" requires 
>> 4 arguments, but only 3 given
   DMA_TO_DEVICE);
^
>> drivers/crypto/marvell/cesa.c:353:21: error: 'dma_map_single' undeclared 
>> (first use in this function)
 engine->sram_dma = dma_map_single(cesa->dev, engine->sram,
^
   drivers/crypto/marvell/cesa.c:353:21: note: each undeclared identifier is 
reported only once for each function it appears in

vim +/dma_map_single +354 drivers/crypto/marvell/cesa.c

   347  return -EINVAL;
   348  
   349  engine->sram = devm_ioremap_resource(cesa->dev, res);
   350  if (IS_ERR(engine->sram))
   351  return PTR_ERR(engine->sram);
   352  
 > 353  engine->sram_dma = dma_map_single(cesa->dev, engine->sram,
 > 354DMA_TO_DEVICE);
   355  
   356  return 0;
   357  }

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


Re: [PATCH v3 7/7] crypto: AF_ALG - add support for key_id

2016-03-29 Thread kbuild test robot
Hi Tadeusz,

[auto build test ERROR on v4.6-rc1]
[also build test ERROR on next-20160329]
[cannot apply to crypto/master]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:
https://github.com/0day-ci/linux/commits/Tadeusz-Struk/crypto-algif-add-akcipher/20160330-090754
config: i386-randconfig-i1-03292045 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   In file included from crypto/af_alg.c:26:0:
   include/keys/asymmetric-type.h: In function 'asymmetric_key_ids':
>> include/keys/asymmetric-type.h:74:12: error: dereferencing pointer to 
>> incomplete type 'const struct key'
 return key->payload.data[asym_key_ids];
   ^
   crypto/af_alg.c: In function 'alg_setkey_id':
>> crypto/af_alg.c:217:12: error: implicit declaration of function 
>> 'request_key' [-Werror=implicit-function-declaration]
 keyring = request_key(&key_type_asymmetric, key_name, NULL);
   ^
>> crypto/af_alg.c:217:10: warning: assignment makes pointer from integer 
>> without a cast [-Wint-conversion]
 keyring = request_key(&key_type_asymmetric, key_name, NULL);
 ^
>> crypto/af_alg.c:223:16: error: dereferencing pointer to incomplete type 
>> 'struct key'
 pkey = keyring->payload.data[asym_crypto];
   ^
   cc1: some warnings being treated as errors

vim +74 include/keys/asymmetric-type.h

7901c1a8 David Howells 2014-09-16  68   
size_t len_1,
7901c1a8 David Howells 2014-09-16  69   
const void *val_2,
7901c1a8 David Howells 2014-09-16  70   
size_t len_2);
146aa8b1 David Howells 2015-10-21  71  static inline
146aa8b1 David Howells 2015-10-21  72  const struct asymmetric_key_ids 
*asymmetric_key_ids(const struct key *key)
146aa8b1 David Howells 2015-10-21  73  {
146aa8b1 David Howells 2015-10-21 @74   return key->payload.data[asym_key_ids];
146aa8b1 David Howells 2015-10-21  75  }
7901c1a8 David Howells 2014-09-16  76  
7901c1a8 David Howells 2014-09-16  77  /*

:: The code at line 74 was first introduced by commit
:: 146aa8b1453bd8f1ff2304ffb71b4ee0eb9acdcc KEYS: Merge the type-specific 
data with the payload data

:: TO: David Howells 
:: CC: David Howells 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


Re: [PATCH v3 7/7] crypto: AF_ALG - add support for key_id

2016-03-29 Thread kbuild test robot
Hi Tadeusz,

[auto build test ERROR on v4.6-rc1]
[also build test ERROR on next-20160329]
[cannot apply to crypto/master]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:
https://github.com/0day-ci/linux/commits/Tadeusz-Struk/crypto-algif-add-akcipher/20160330-090754
config: arm-at91_dt_defconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   In file included from crypto/af_alg.c:26:0:
   include/keys/asymmetric-type.h: In function 'asymmetric_key_ids':
>> include/keys/asymmetric-type.h:74:12: error: dereferencing pointer to 
>> incomplete type
 return key->payload.data[asym_key_ids];
   ^
   crypto/af_alg.c: In function 'alg_setkey_id':
   crypto/af_alg.c:217:2: error: implicit declaration of function 'request_key' 
[-Werror=implicit-function-declaration]
 keyring = request_key(&key_type_asymmetric, key_name, NULL);
 ^
   crypto/af_alg.c:217:10: warning: assignment makes pointer from integer 
without a cast
 keyring = request_key(&key_type_asymmetric, key_name, NULL);
 ^
>> crypto/af_alg.c:223:16: error: dereferencing pointer to incomplete type
 pkey = keyring->payload.data[asym_crypto];
   ^
   cc1: some warnings being treated as errors

vim +74 include/keys/asymmetric-type.h

7901c1a8 David Howells 2014-09-16  68   
size_t len_1,
7901c1a8 David Howells 2014-09-16  69   
const void *val_2,
7901c1a8 David Howells 2014-09-16  70   
size_t len_2);
146aa8b1 David Howells 2015-10-21  71  static inline
146aa8b1 David Howells 2015-10-21  72  const struct asymmetric_key_ids 
*asymmetric_key_ids(const struct key *key)
146aa8b1 David Howells 2015-10-21  73  {
146aa8b1 David Howells 2015-10-21 @74   return key->payload.data[asym_key_ids];
146aa8b1 David Howells 2015-10-21  75  }
7901c1a8 David Howells 2014-09-16  76  
7901c1a8 David Howells 2014-09-16  77  /*

:: The code at line 74 was first introduced by commit
:: 146aa8b1453bd8f1ff2304ffb71b4ee0eb9acdcc KEYS: Merge the type-specific 
data with the payload data

:: TO: David Howells 
:: CC: David Howells 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


Re: [PATCH v3 7/7] crypto: AF_ALG - add support for key_id

2016-03-29 Thread kbuild test robot
Hi Tadeusz,

[auto build test ERROR on v4.6-rc1]
[also build test ERROR on next-20160329]
[cannot apply to crypto/master]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:
https://github.com/0day-ci/linux/commits/Tadeusz-Struk/crypto-algif-add-akcipher/20160330-090754
config: x86_64-allyesdebian (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   crypto/built-in.o: In function `alg_setkey':
>> af_alg.c:(.text+0x36513): undefined reference to `key_type_asymmetric'

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


Re: [PATCH 4/4] mtd: provide helper to prepare buffers for DMA operations

2016-03-31 Thread kbuild test robot
Hi Boris,

[auto build test ERROR on spi/for-next]
[also build test ERROR on v4.6-rc1 next-20160331]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:
https://github.com/0day-ci/linux/commits/Boris-Brezillon/scatterlist-sg_table-from-virtual-pointer/20160331-203118
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi for-next
config: m32r-m32104ut_defconfig (attached as .config)
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m32r 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/mtd/super.h:17:0,
from fs/romfs/storage.c:13:
>> include/linux/mtd/mtd.h:426:10: error: expected ';', ',' or ')' before 'enum'
 enum dma_data_direction dir)
 ^
   include/linux/mtd/mtd.h: In function 'mtd_unmap_buf':
>> include/linux/mtd/mtd.h:434:2: warning: 'return' with a value, in function 
>> returning void
 return -ENOTSUPP;
 ^
   fs/romfs/storage.c: At top level:
   include/linux/mtd/mtd.h:431:13: warning: 'mtd_unmap_buf' defined but not 
used [-Wunused-function]
static void mtd_unmap_buf(struct mtd_info *mtd, struct device *dev,
^
--
   In file included from include/linux/mtd/super.h:17:0,
from fs/romfs/super.c:72:
>> include/linux/mtd/mtd.h:426:10: error: expected ';', ',' or ')' before 'enum'
 enum dma_data_direction dir)
 ^
   include/linux/mtd/mtd.h: In function 'mtd_unmap_buf':
>> include/linux/mtd/mtd.h:434:2: warning: 'return' with a value, in function 
>> returning void
 return -ENOTSUPP;
 ^
   fs/romfs/super.c: At top level:
   include/linux/mtd/mtd.h:431:13: warning: 'mtd_unmap_buf' defined but not 
used [-Wunused-function]
static void mtd_unmap_buf(struct mtd_info *mtd, struct device *dev,
^

vim +426 include/linux/mtd/mtd.h

   420 struct sg_table *sgt, enum dma_data_direction dir);
   421  #else
   422  static inline int mtd_map_buf(struct mtd_info *mtd, struct device *dev,
   423struct sg_table *sgt, const void *buf,
   424size_t len,
   425const struct sg_constraints *constraints
 > 426enum dma_data_direction dir)
   427  {
   428  return -ENOTSUPP;
   429  }
   430  
   431  static void mtd_unmap_buf(struct mtd_info *mtd, struct device *dev,
   432struct sg_table *sgt, enum dma_data_direction 
dir)
   433  {
 > 434  return -ENOTSUPP;
   435  }
   436  #endif
   437  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 43/49] WARNING: drivers/crypto/qat/built-in.o(.init.text+0x309): Section mismatch in reference from the function adf_register_ctl_device_driver() to the function .exit.text:adf_exit_

2016-04-15 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   5f575efea79caae69b81f922d99b221302a2c003
commit: d6064165ba4449ea085a389724d728258a3180ec [43/49] crypto: qat - 
adf_dev_stop should not be called in atomic context
config: i386-randconfig-s1-201615 (attached as .config)
reproduce:
git checkout d6064165ba4449ea085a389724d728258a3180ec
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

>> WARNING: drivers/crypto/qat/built-in.o(.init.text+0x309): Section mismatch 
>> in reference from the function adf_register_ctl_device_driver() to the 
>> function .exit.text:adf_exit_vf_wq()
   The function __init adf_register_ctl_device_driver() references
   a function __exit adf_exit_vf_wq().
   This is often seen when error handling in the init function
   uses functionality in the exit path.
   The fix is often to remove the __exit annotation of
   adf_exit_vf_wq() so it may be used outside an exit section.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 43/49] WARNING: drivers/crypto/qat/qat_common/intel_qat.o(.init.text+0x30d): Section mismatch in reference from the function init_module() to the function .exit.text:adf_exit_vf_wq()

2016-04-15 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   5f575efea79caae69b81f922d99b221302a2c003
commit: d6064165ba4449ea085a389724d728258a3180ec [43/49] crypto: qat - 
adf_dev_stop should not be called in atomic context
config: i386-allmodconfig (attached as .config)
reproduce:
git checkout d6064165ba4449ea085a389724d728258a3180ec
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

>> WARNING: drivers/crypto/qat/qat_common/intel_qat.o(.init.text+0x30d): 
>> Section mismatch in reference from the function init_module() to the 
>> function .exit.text:adf_exit_vf_wq()
   The function __init init_module() references
   a function __exit adf_exit_vf_wq().
   This is often seen when error handling in the init function
   uses functionality in the exit path.
   The fix is often to remove the __exit annotation of
   adf_exit_vf_wq() so it may be used outside an exit section.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


Re: [PATCH v5 6/6] crypto: AF_ALG - add support for key_id

2016-04-15 Thread kbuild test robot
Hi Tadeusz,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.6-rc3 next-20160415]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:
https://github.com/0day-ci/linux/commits/Tadeusz-Struk/crypto-algif-add-akcipher/20160416-043207
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: i386-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   crypto/algif_akcipher.c: In function 'asym_key_encrypt':
>> crypto/algif_akcipher.c:331:9: error: variable 'params' has initializer but 
>> incomplete type
 struct kernel_pkey_params params = {0};
^
>> crypto/algif_akcipher.c:331:38: warning: excess elements in struct 
>> initializer
 struct kernel_pkey_params params = {0};
 ^
   crypto/algif_akcipher.c:331:38: note: (near initialization for 'params')
>> crypto/algif_akcipher.c:331:28: error: storage size of 'params' isn't known
 struct kernel_pkey_params params = {0};
   ^
>> crypto/algif_akcipher.c:357:8: error: implicit declaration of function 
>> 'encrypt_blob' [-Werror=implicit-function-declaration]
 ret = encrypt_blob(¶ms, in, out);
   ^
>> crypto/algif_akcipher.c:331:28: warning: unused variable 'params' 
>> [-Wunused-variable]
 struct kernel_pkey_params params = {0};
   ^
   crypto/algif_akcipher.c: In function 'asym_key_decrypt':
   crypto/algif_akcipher.c:371:9: error: variable 'params' has initializer but 
incomplete type
 struct kernel_pkey_params params = {0};
^
   crypto/algif_akcipher.c:371:38: warning: excess elements in struct 
initializer
 struct kernel_pkey_params params = {0};
 ^
   crypto/algif_akcipher.c:371:38: note: (near initialization for 'params')
   crypto/algif_akcipher.c:371:28: error: storage size of 'params' isn't known
 struct kernel_pkey_params params = {0};
   ^
>> crypto/algif_akcipher.c:397:8: error: implicit declaration of function 
>> 'decrypt_blob' [-Werror=implicit-function-declaration]
 ret = decrypt_blob(¶ms, in, out);
   ^
   crypto/algif_akcipher.c:371:28: warning: unused variable 'params' 
[-Wunused-variable]
 struct kernel_pkey_params params = {0};
   ^
   crypto/algif_akcipher.c: In function 'asym_key_sign':
   crypto/algif_akcipher.c:411:9: error: variable 'params' has initializer but 
incomplete type
 struct kernel_pkey_params params = {0};
^
   crypto/algif_akcipher.c:411:38: warning: excess elements in struct 
initializer
 struct kernel_pkey_params params = {0};
 ^
   crypto/algif_akcipher.c:411:38: note: (near initialization for 'params')
   crypto/algif_akcipher.c:411:28: error: storage size of 'params' isn't known
 struct kernel_pkey_params params = {0};
   ^
>> crypto/algif_akcipher.c:437:8: error: implicit declaration of function 
>> 'create_signature' [-Werror=implicit-function-declaration]
 ret = create_signature(¶ms, in, out);
   ^
   crypto/algif_akcipher.c:411:28: warning: unused variable 'params' 
[-Wunused-variable]
 struct kernel_pkey_params params = {0};
   ^
   crypto/algif_akcipher.c: In function 'asym_key_verify':
>> crypto/algif_akcipher.c:465:5: error: 'struct public_key_signature' has no 
>> member named 'encoding'
 sig.encoding = "pkcs1";
^
   cc1: some warnings being treated as errors

vim +/params +331 crypto/algif_akcipher.c

   325  
   326  return err ? err : size;
   327  }
   328  
   329  static int asym_key_encrypt(const struct key *key, struct 
akcipher_request *req)
   330  {
 > 331  struct kernel_pkey_params params = {0};
   332  char *src = NULL, *dst = NULL, *in, *out;
   333  int ret;
   334  
   335  if (!sg_is_last(req->src)) {
   336  src = kmalloc(req->src_len, GFP_KERNEL);
   337  if (!src)
   338  return -ENOMEM;
   339  scatterwalk_map_and_copy(src, req->src, 0, 
req->src_len, 0);
   340  in = src;
   341  } else {
   342  in = sg_virt(req->src);
   343  }
   344  if (!sg_is_last(req->dst)) {
   345  dst = kmalloc(req->dst_len, GFP_KERNEL);
   346  if (!dst) {
   347  kfree(src);
   348  return -ENOMEM;
   349  }
   350  out = dst;
   351  } else {
   352  out = sg_virt(req->dst);
   353  }
   354  params.key = (struct key *)key;
   355  params.

[cryptodev:master 56/59] warning: (RAPIDIO_DMA_ENGINE && ..) selects DMA_ENGINE which has unmet direct dependencies (DMADEVICES)

2016-04-20 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   21ec757d2dd8650f978d27ad53cb1fcca8bb5e2b
commit: 58ea8abf490415c390e0cc671e875510c9b66318 [56/59] crypto: ccp - Register 
the CCP as a DMA resource
config: i386-randconfig-x018-201616 (attached as .config)
reproduce:
git checkout 58ea8abf490415c390e0cc671e875510c9b66318
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

warning: (RAPIDIO_DMA_ENGINE && SND_SOC_SH4_SIU && CRYPTO_DEV_CCP_DD) selects 
DMA_ENGINE which has unmet direct dependencies (DMADEVICES)

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 56/59] undefined reference to `dma_request_slave_channel'

2016-04-20 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   21ec757d2dd8650f978d27ad53cb1fcca8bb5e2b
commit: 58ea8abf490415c390e0cc671e875510c9b66318 [56/59] crypto: ccp - Register 
the CCP as a DMA resource
config: x86_64-randconfig-a0-04201917 (attached as .config)
reproduce:
git checkout 58ea8abf490415c390e0cc671e875510c9b66318
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/built-in.o: In function `pxa2xx_spi_dma_setup':
>> (.text+0x304f37): undefined reference to `dma_request_slave_channel'
   drivers/built-in.o: In function `pxa2xx_spi_dma_setup':
   (.text+0x304f55): undefined reference to `__dma_request_channel'
   drivers/built-in.o: In function `pxa2xx_spi_dma_setup':
   (.text+0x304f7e): undefined reference to `dma_request_slave_channel'
   drivers/built-in.o: In function `pxa2xx_spi_dma_setup':
   (.text+0x304f9c): undefined reference to `__dma_request_channel'
   drivers/built-in.o: In function `pxa2xx_spi_dma_setup':
   (.text+0x304fb4): undefined reference to `dma_release_channel'
   drivers/built-in.o: In function `pxa2xx_spi_dma_release':
   (.text+0x30502c): undefined reference to `dma_release_channel'
   drivers/built-in.o: In function `pxa2xx_spi_dma_release':
   (.text+0x305093): undefined reference to `dma_release_channel'
   drivers/built-in.o: In function `ccp_cmd_callback':
   ccp-dmaengine.c:(.text+0x4e137f): undefined reference to 
`dma_run_dependencies'
   drivers/built-in.o: In function `ccp_alloc_dma_desc':
   ccp-dmaengine.c:(.text+0x4e152d): undefined reference to 
`dma_async_tx_descriptor_init'
   drivers/built-in.o: In function `ccp_dmaengine_register':
   (.text+0x4e1b3b): undefined reference to `dma_async_device_register'
   drivers/built-in.o: In function `ccp_dmaengine_unregister':
   (.text+0x4e1b87): undefined reference to `dma_async_device_unregister'

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 56/59] ccp-dmaengine.c:undefined reference to `dma_run_dependencies'

2016-04-20 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   21ec757d2dd8650f978d27ad53cb1fcca8bb5e2b
commit: 58ea8abf490415c390e0cc671e875510c9b66318 [56/59] crypto: ccp - Register 
the CCP as a DMA resource
config: i386-randconfig-h0-04201912 (attached as .config)
reproduce:
git checkout 58ea8abf490415c390e0cc671e875510c9b66318
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/built-in.o: In function `lpuart_remove':
>> fsl_lpuart.c:(.text+0xdc726): undefined reference to `dma_release_channel'
   fsl_lpuart.c:(.text+0xdc735): undefined reference to `dma_release_channel'
   drivers/built-in.o: In function `ccp_cmd_callback':
>> ccp-dmaengine.c:(.text+0x274a1a): undefined reference to 
>> `dma_run_dependencies'
   drivers/built-in.o: In function `ccp_alloc_dma_desc':
>> ccp-dmaengine.c:(.text+0x275099): undefined reference to 
>> `dma_async_tx_descriptor_init'
   drivers/built-in.o: In function `ccp_dmaengine_register':
>> (.text+0x275a56): undefined reference to `dma_async_device_register'
   drivers/built-in.o: In function `ccp_dmaengine_unregister':
>> (.text+0x275c72): undefined reference to `dma_async_device_unregister'
   sound/built-in.o: In function `snd_dmaengine_pcm_request_channel':
>> (.text+0x25c64): undefined reference to `__dma_request_channel'
   sound/built-in.o: In function `snd_dmaengine_pcm_close_release_chan':
>> (.text+0x26767): undefined reference to `dma_release_channel'
   sound/built-in.o: In function `dmaengine_pcm_new':
>> soc-generic-dmaengine-pcm.c:(.text+0x9c89a): undefined reference to 
>> `dma_get_slave_caps'
>> soc-generic-dmaengine-pcm.c:(.text+0x9c9e8): undefined reference to 
>> `dma_request_slave_channel'
   sound/built-in.o: In function `dmaengine_pcm_release_chan':
>> soc-generic-dmaengine-pcm.c:(.text+0x9cc96): undefined reference to 
>> `dma_release_channel'
   soc-generic-dmaengine-pcm.c:(.text+0x9ccab): undefined reference to 
`dma_release_channel'
   sound/built-in.o: In function `snd_dmaengine_pcm_register':
>> (.text+0x9cdc6): undefined reference to `dma_request_chan'
   sound/built-in.o: In function `snd_dmaengine_pcm_register':
   (.text+0x9ce07): undefined reference to `dma_request_chan'
   sound/built-in.o: In function `dmaengine_pcm_open':
   soc-generic-dmaengine-pcm.c:(.text+0x9d02e): undefined reference to 
`dma_get_slave_caps'

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[crypto:master 8/8] ERROR: "adf_init_pf_wq" [drivers/crypto/qat/qat_common/intel_qat.ko] undefined!

2016-05-02 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git 
master
head:   9e209fcfb804da262e38e5cd2e680c47a41f0f95
commit: 9e209fcfb804da262e38e5cd2e680c47a41f0f95 [8/8] crypto: qat - fix 
invalid pf2vf_resp_wq logic
config: x86_64-randconfig-s4-05031238 (attached as .config)
compiler: gcc-5 (Debian 5.3.1-14) 5.3.1 20160409
reproduce:
git checkout 9e209fcfb804da262e38e5cd2e680c47a41f0f95
# save the attached .config to linux build tree
make ARCH=x86_64 

Note: the crypto/master HEAD 9e209fcfb804da262e38e5cd2e680c47a41f0f95 builds 
fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

>> ERROR: "adf_init_pf_wq" [drivers/crypto/qat/qat_common/intel_qat.ko] 
>> undefined!
>> ERROR: "adf_exit_pf_wq" [drivers/crypto/qat/qat_common/intel_qat.ko] 
>> undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 56/77] ccp-dmaengine.c:undefined reference to `dma_async_tx_descriptor_init'

2016-05-03 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   bc197b2a9c7e0129fa0ec1961881e2a0b3bef967
commit: 58ea8abf490415c390e0cc671e875510c9b66318 [56/77] crypto: ccp - Register 
the CCP as a DMA resource
config: x86_64-randconfig-s4-05031628 (attached as .config)
compiler: gcc-5 (Debian 5.3.1-14) 5.3.1 20160409
reproduce:
git checkout 58ea8abf490415c390e0cc671e875510c9b66318
# save the attached .config to linux build tree
make ARCH=x86_64 

Note: the cryptodev/master HEAD bc197b2a9c7e0129fa0ec1961881e2a0b3bef967 builds 
fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 47/51] crypto/drbg.c:1637:39-40: Unneeded semicolon

2016-06-15 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   5a7de97309f5af4458b1a25a2a529a1a893c5269
commit: 355912852115cd8aa4ad02c25182ae615ce925fb [47/51] crypto: drbg - use CTR 
AES instead of ECB AES


coccinelle warnings: (new ones prefixed by >>)

>> crypto/drbg.c:1637:39-40: Unneeded semicolon

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] crypto: fix semicolon.cocci warnings

2016-06-15 Thread kbuild test robot
crypto/drbg.c:1637:39-40: Unneeded semicolon


 Remove unneeded semicolon.

Generated by: scripts/coccinelle/misc/semicolon.cocci

CC: Stephan Mueller 
Signed-off-by: Fengguang Wu 
---

 drbg.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/crypto/drbg.c
+++ b/crypto/drbg.c
@@ -1634,7 +1634,7 @@ static int drbg_fini_sym_kernel(struct d
drbg->ctr_handle = NULL;
 
if (drbg->ctr_req)
-   skcipher_request_free(drbg->ctr_req);;
+   skcipher_request_free(drbg->ctr_req);
drbg->ctr_req = NULL;
 
kfree(drbg->ctr_null_value_buf);
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[cryptodev:master 79/79] (.text+0x330de0): multiple definition of `ecdh_shared_secret'

2016-06-23 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   3c4b23901a0c766879dff680cd6bdab47bcdbbd2
commit: 3c4b23901a0c766879dff680cd6bdab47bcdbbd2 [79/79] crypto: ecdh - Add 
ECDH software support
config: i386-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
git checkout 3c4b23901a0c766879dff680cd6bdab47bcdbbd2
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   net/built-in.o: In function `ecdh_shared_secret':
>> (.text+0x330de0): multiple definition of `ecdh_shared_secret'
   crypto/built-in.o:(.text+0xb1b0): first defined here

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


Re: [PATCH v8 6/6] crypto: AF_ALG - add support for key_id

2016-06-23 Thread kbuild test robot
Hi,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.7-rc4 next-20160623]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Tadeusz-Struk/crypto-algif-add-akcipher/20160624-065803
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   crypto/algif_akcipher.c: In function 'asym_key_encrypt':
>> crypto/algif_akcipher.c:326:9: error: variable 'params' has initializer but 
>> incomplete type
 struct kernel_pkey_params params = {0};
^~
>> crypto/algif_akcipher.c:326:38: warning: excess elements in struct 
>> initializer
 struct kernel_pkey_params params = {0};
 ^
   crypto/algif_akcipher.c:326:38: note: (near initialization for 'params')
>> crypto/algif_akcipher.c:326:28: error: storage size of 'params' isn't known
 struct kernel_pkey_params params = {0};
   ^~
>> crypto/algif_akcipher.c:352:8: error: implicit declaration of function 
>> 'encrypt_blob' [-Werror=implicit-function-declaration]
 ret = encrypt_blob(¶ms, in, out);
   ^~~~
>> crypto/algif_akcipher.c:326:28: warning: unused variable 'params' 
>> [-Wunused-variable]
 struct kernel_pkey_params params = {0};
   ^~
   crypto/algif_akcipher.c: In function 'asym_key_decrypt':
   crypto/algif_akcipher.c:366:9: error: variable 'params' has initializer but 
incomplete type
 struct kernel_pkey_params params = {0};
^~
   crypto/algif_akcipher.c:366:38: warning: excess elements in struct 
initializer
 struct kernel_pkey_params params = {0};
 ^
   crypto/algif_akcipher.c:366:38: note: (near initialization for 'params')
   crypto/algif_akcipher.c:366:28: error: storage size of 'params' isn't known
 struct kernel_pkey_params params = {0};
   ^~
>> crypto/algif_akcipher.c:392:8: error: implicit declaration of function 
>> 'decrypt_blob' [-Werror=implicit-function-declaration]
 ret = decrypt_blob(¶ms, in, out);
   ^~~~
   crypto/algif_akcipher.c:366:28: warning: unused variable 'params' 
[-Wunused-variable]
 struct kernel_pkey_params params = {0};
   ^~
   crypto/algif_akcipher.c: In function 'asym_key_sign':
   crypto/algif_akcipher.c:406:9: error: variable 'params' has initializer but 
incomplete type
 struct kernel_pkey_params params = {0};
^~
   crypto/algif_akcipher.c:406:38: warning: excess elements in struct 
initializer
 struct kernel_pkey_params params = {0};
 ^
   crypto/algif_akcipher.c:406:38: note: (near initialization for 'params')
   crypto/algif_akcipher.c:406:28: error: storage size of 'params' isn't known
 struct kernel_pkey_params params = {0};
   ^~
>> crypto/algif_akcipher.c:432:8: error: implicit declaration of function 
>> 'create_signature' [-Werror=implicit-function-declaration]
 ret = create_signature(¶ms, in, out);
   ^~~~
   crypto/algif_akcipher.c:406:28: warning: unused variable 'params' 
[-Wunused-variable]
 struct kernel_pkey_params params = {0};
   ^~
   crypto/algif_akcipher.c: In function 'asym_key_verify':
>> crypto/algif_akcipher.c:460:5: error: 'struct public_key_signature' has no 
>> member named 'encoding'
 sig.encoding = "pkcs1";
^
   cc1: some warnings being treated as errors

vim +/params +326 crypto/algif_akcipher.c

   320  
   321  return err ? err : size;
   322  }
   323  
   324  static int asym_key_encrypt(const struct key *key, struct 
akcipher_request *req)
   325  {
 > 326  struct kernel_pkey_params params = {0};
   327  char *src = NULL, *dst = NULL, *in, *out;
   328  int ret;
   329  
   330  if (!sg_is_last(req->src)) {
   331  src = kmalloc(req->src_len, GFP_KERNEL);
   332  if (!src)
   333  return -ENOMEM;
   334  scatterwalk_map_and_copy(src, req->src, 0, 
req->src_len, 0);
   335  in = src;
   336  } else {
   337  in = sg_virt(req->src);
   338  }
   339  if (!sg_is_last(req->dst)) {
   340  dst = kmalloc(req->dst_len, GFP_KERNEL);
   341  if (!dst) {
   342  kfree(src);
   343  return -ENOMEM;
   344  }
   345  out = dst;
   

[cryptodev:master 79/87] crypto/ecc.c:532:1: warning: 'vli_mmod_fast' uses dynamic stack allocation

2016-06-24 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   8f44df154de79a61b0e86734f51737b8cccf8dfe
commit: 3c4b23901a0c766879dff680cd6bdab47bcdbbd2 [79/87] crypto: ecdh - Add 
ECDH software support
config: s390-allyesconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 3c4b23901a0c766879dff680cd6bdab47bcdbbd2
# save the attached .config to linux build tree
make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   crypto/ecc.c: In function 'vli_mmod_fast':
>> crypto/ecc.c:532:1: warning: 'vli_mmod_fast' uses dynamic stack allocation
}
^
   crypto/ecc.c: In function 'vli_mod_square_fast':
>> crypto/ecc.c:552:1: warning: 'vli_mod_square_fast' uses dynamic stack 
>> allocation
}
^
   crypto/ecc.c: In function 'vli_mod_mult_fast':
>> crypto/ecc.c:542:1: warning: 'vli_mod_mult_fast' uses dynamic stack 
>> allocation
}
^
   crypto/ecc.c: In function 'xycz_add_c':
>> crypto/ecc.c:840:1: warning: 'xycz_add_c' uses dynamic stack allocation
}
^
   crypto/ecc.c: In function 'xycz_add':
>> crypto/ecc.c:783:1: warning: 'xycz_add' uses dynamic stack allocation
}
^
   crypto/ecc.c: In function 'apply_z':
>> crypto/ecc.c:719:1: warning: 'apply_z' uses dynamic stack allocation
}
^
   crypto/ecc.c: In function 'ecc_point_mult.isra.0':
>> crypto/ecc.c:895:1: warning: 'ecc_point_mult.isra.0' uses dynamic stack 
>> allocation
}
^
   crypto/ecc.c: In function 'ecdh_make_pub_key':
>> crypto/ecc.c:967:1: warning: 'ecdh_make_pub_key' uses dynamic stack 
>> allocation
}
^
   crypto/ecc.c: In function 'ecdh_shared_secret':
   crypto/ecc.c:1018:1: warning: 'ecdh_shared_secret' uses dynamic stack 
allocation
}
^

vim +/vli_mmod_fast +532 crypto/ecc.c

   526  default:
   527  pr_err("unsupports digits size!\n");
   528  return false;
   529  }
   530  
   531  return true;
 > 532  }
   533  
   534  /* Computes result = (left * right) % curve_prime. */
   535  static void vli_mod_mult_fast(u64 *result, const u64 *left, const u64 
*right,
   536const u64 *curve_prime, unsigned int 
ndigits)
   537  {
   538  u64 product[2 * ndigits];
   539  
   540  vli_mult(product, left, right, ndigits);
   541  vli_mmod_fast(result, product, curve_prime, ndigits);
 > 542  }
   543  
   544  /* Computes result = left^2 % curve_prime. */
   545  static void vli_mod_square_fast(u64 *result, const u64 *left,
   546  const u64 *curve_prime, unsigned int 
ndigits)
   547  {
   548  u64 product[2 * ndigits];
   549  
   550  vli_square(product, left, ndigits);
   551  vli_mmod_fast(result, product, curve_prime, ndigits);
 > 552  }
   553  
   554  #define EVEN(vli) (!(vli[0] & 1))
   555  /* Computes result = (1 / p_input) % mod. All VLIs are the same size.
   556   * See "From Euclid's GCD to Montgomery Multiplication to the Great 
Divide"
   557   * https://labs.oracle.com/techrep/2001/smli_tr-2001-95.pdf
   558   */
   559  static void vli_mod_inv(u64 *result, const u64 *input, const u64 *mod,
   560  unsigned int ndigits)
   561  {
   562  u64 a[ndigits], b[ndigits];
   563  u64 u[ndigits], v[ndigits];
   564  u64 carry;
   565  int cmp_result;
   566  
   567  if (vli_is_zero(input, ndigits)) {
   568  vli_clear(result, ndigits);
   569  return;
   570  }
   571  
   572  vli_set(a, input, ndigits);
   573  vli_set(b, mod, ndigits);
   574  vli_clear(u, ndigits);
   575  u[0] = 1;
   576  vli_clear(v, ndigits);
   577  
   578  while ((cmp_result = vli_cmp(a, b, ndigits)) != 0) {
   579  carry = 0;
   580  
   581  if (EVEN(a)) {
   582  vli_rshift1(a, ndigits);
   583  
   584  if (!EVEN(u))
   585  carry = vli_add(u, u, mod, ndigits);
   586  
   587  vli_rshift1(u, ndigits);
   588  if (carry)
   589  u[ndigits - 1] |= 0x8000ull;
   590  } else if (EVEN(b)) {
   591  vli_rshift1(b, ndigits);
   592  
   593  if (!EVEN(v))
   594  carry = vli_add(v, v, mod, ndigits);
   595  
   596  vli_rshift1(v, ndigits);
   597  if (carry)
   598  v[ndigits - 1] |= 0x8000ull;
   599  } else if 

[cryptodev:master 84/87] security/keys/big_key.c:118:1: warning: 'big_key_crypt' uses dynamic stack allocation

2016-06-24 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   8f44df154de79a61b0e86734f51737b8cccf8dfe
commit: d56d72c6a0612be14ccb455c92886d2cb102c2ab [84/87] KEYS: Use skcipher for 
big keys
config: s390-allyesconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d56d72c6a0612be14ccb455c92886d2cb102c2ab
# save the attached .config to linux build tree
make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   security/keys/big_key.c: In function 'big_key_crypt':
>> security/keys/big_key.c:118:1: warning: 'big_key_crypt' uses dynamic stack 
>> allocation
}
^

vim +/big_key_crypt +118 security/keys/big_key.c

d56d72c6 Herbert Xu 2016-06-22  102 skcipher_request_set_tfm(req, 
big_key_skcipher);
d56d72c6 Herbert Xu 2016-06-22  103 
skcipher_request_set_callback(req, CRYPTO_TFM_REQ_MAY_SLEEP,
d56d72c6 Herbert Xu 2016-06-22  104   
NULL, NULL);
13100a72 Kirill Marinushkin 2016-04-12  105  
13100a72 Kirill Marinushkin 2016-04-12  106 sg_init_one(&sgio, data, 
datalen);
d56d72c6 Herbert Xu 2016-06-22  107 skcipher_request_set_crypt(req, 
&sgio, &sgio, datalen, NULL);
13100a72 Kirill Marinushkin 2016-04-12  108  
13100a72 Kirill Marinushkin 2016-04-12  109 if (op == BIG_KEY_ENC)
d56d72c6 Herbert Xu 2016-06-22  110 ret = 
crypto_skcipher_encrypt(req);
13100a72 Kirill Marinushkin 2016-04-12  111 else
d56d72c6 Herbert Xu 2016-06-22  112 ret = 
crypto_skcipher_decrypt(req);
d56d72c6 Herbert Xu 2016-06-22  113  
d56d72c6 Herbert Xu 2016-06-22  114 skcipher_request_zero(req);
13100a72 Kirill Marinushkin 2016-04-12  115  
13100a72 Kirill Marinushkin 2016-04-12  116  error:
13100a72 Kirill Marinushkin 2016-04-12  117 return ret;
13100a72 Kirill Marinushkin 2016-04-12 @118  }
13100a72 Kirill Marinushkin 2016-04-12  119  
13100a72 Kirill Marinushkin 2016-04-12  120  /*
002edaf7 David Howells  2014-07-18  121   * Preparse a big key
ab3c3587 David Howells  2013-09-24  122   */
002edaf7 David Howells  2014-07-18  123  int big_key_preparse(struct 
key_preparsed_payload *prep)
ab3c3587 David Howells  2013-09-24  124  {
146aa8b1 David Howells  2015-10-21  125 struct path *path = (struct 
path *)&prep->payload.data[big_key_path];
ab3c3587 David Howells  2013-09-24  126 struct file *file;

:: The code at line 118 was first introduced by commit
:: 13100a72f40f5748a04017e0ab3df4cf27c809ef Security: Keys: Big keys stored 
encrypted

:: TO: Kirill Marinushkin 
:: CC: David Howells 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 87/87] crypto/ecc.c:1018:1: warning: 'crypto_ecdh_shared_secret' uses dynamic stack allocation

2016-06-24 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   8f44df154de79a61b0e86734f51737b8cccf8dfe
commit: 8f44df154de79a61b0e86734f51737b8cccf8dfe [87/87] crypto: ecdh - make 
ecdh_shared_secret unique
config: s390-allyesconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 8f44df154de79a61b0e86734f51737b8cccf8dfe
# save the attached .config to linux build tree
make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   crypto/ecc.c: In function 'vli_mmod_fast':
   crypto/ecc.c:532:1: warning: 'vli_mmod_fast' uses dynamic stack allocation
}
^
   crypto/ecc.c: In function 'vli_mod_square_fast':
   crypto/ecc.c:552:1: warning: 'vli_mod_square_fast' uses dynamic stack 
allocation
}
^
   crypto/ecc.c: In function 'vli_mod_mult_fast':
   crypto/ecc.c:542:1: warning: 'vli_mod_mult_fast' uses dynamic stack 
allocation
}
^
   crypto/ecc.c: In function 'xycz_add_c':
   crypto/ecc.c:840:1: warning: 'xycz_add_c' uses dynamic stack allocation
}
^
   crypto/ecc.c: In function 'xycz_add':
   crypto/ecc.c:783:1: warning: 'xycz_add' uses dynamic stack allocation
}
^
   crypto/ecc.c: In function 'apply_z':
   crypto/ecc.c:719:1: warning: 'apply_z' uses dynamic stack allocation
}
^
   crypto/ecc.c: In function 'ecc_point_mult.isra.0':
   crypto/ecc.c:895:1: warning: 'ecc_point_mult.isra.0' uses dynamic stack 
allocation
}
^
   crypto/ecc.c: In function 'ecdh_make_pub_key':
   crypto/ecc.c:967:1: warning: 'ecdh_make_pub_key' uses dynamic stack 
allocation
}
^
   crypto/ecc.c: In function 'crypto_ecdh_shared_secret':
>> crypto/ecc.c:1018:1: warning: 'crypto_ecdh_shared_secret' uses dynamic stack 
>> allocation
}
^

vim +/crypto_ecdh_shared_secret +1018 crypto/ecc.c

3c4b2390 Salvatore Benedetto 2016-06-22   889   xycz_add(rx[nb], ry[nb], rx[1 - 
nb], ry[1 - nb], curve_prime, ndigits);
3c4b2390 Salvatore Benedetto 2016-06-22   890  
3c4b2390 Salvatore Benedetto 2016-06-22   891   apply_z(rx[0], ry[0], z, 
curve_prime, ndigits);
3c4b2390 Salvatore Benedetto 2016-06-22   892  
3c4b2390 Salvatore Benedetto 2016-06-22   893   vli_set(result->x, rx[0], 
ndigits);
3c4b2390 Salvatore Benedetto 2016-06-22   894   vli_set(result->y, ry[0], 
ndigits);
3c4b2390 Salvatore Benedetto 2016-06-22  @895  }
3c4b2390 Salvatore Benedetto 2016-06-22   896  
3c4b2390 Salvatore Benedetto 2016-06-22   897  static inline void 
ecc_swap_digits(const u64 *in, u64 *out,
3c4b2390 Salvatore Benedetto 2016-06-22   898  
unsigned int ndigits)
3c4b2390 Salvatore Benedetto 2016-06-22   899  {
3c4b2390 Salvatore Benedetto 2016-06-22   900   int i;
3c4b2390 Salvatore Benedetto 2016-06-22   901  
3c4b2390 Salvatore Benedetto 2016-06-22   902   for (i = 0; i < ndigits; i++)
3c4b2390 Salvatore Benedetto 2016-06-22   903   out[i] = 
__swab64(in[ndigits - 1 - i]);
3c4b2390 Salvatore Benedetto 2016-06-22   904  }
3c4b2390 Salvatore Benedetto 2016-06-22   905  
3c4b2390 Salvatore Benedetto 2016-06-22   906  int ecc_is_key_valid(unsigned 
int curve_id, unsigned int ndigits,
3c4b2390 Salvatore Benedetto 2016-06-22   907const u8 
*private_key, unsigned int private_key_len)
3c4b2390 Salvatore Benedetto 2016-06-22   908  {
3c4b2390 Salvatore Benedetto 2016-06-22   909   int nbytes;
3c4b2390 Salvatore Benedetto 2016-06-22   910   const struct ecc_curve *curve = 
ecc_get_curve(curve_id);
3c4b2390 Salvatore Benedetto 2016-06-22   911  
3c4b2390 Salvatore Benedetto 2016-06-22   912   if (!private_key)
3c4b2390 Salvatore Benedetto 2016-06-22   913   return -EINVAL;
3c4b2390 Salvatore Benedetto 2016-06-22   914  
3c4b2390 Salvatore Benedetto 2016-06-22   915   nbytes = ndigits << 
ECC_DIGITS_TO_BYTES_SHIFT;
3c4b2390 Salvatore Benedetto 2016-06-22   916  
3c4b2390 Salvatore Benedetto 2016-06-22   917   if (private_key_len != nbytes)
3c4b2390 Salvatore Benedetto 2016-06-22   918   return -EINVAL;
3c4b2390 Salvatore Benedetto 2016-06-22   919  
3c4b2390 Salvatore Benedetto 2016-06-22   920   if (vli_is_zero((const u64 
*)&private_key[0], ndigits))
3c4b2390 Salvatore Benedetto 2016-06-22   921   return -EINVAL;
3c4b2390 Salvatore Benedetto 2016-06-22   922  
3c4b2390 Salvatore Benedetto 2016-06-22   923   /* Make sure the private key is 
in the range [1, n-1]. */
3c4b2390 Salvatore Benedetto 2016-06-22   924   if (vli_cmp(curve->n, (const 
u64 *)&private_key[0], ndigits) != 1)
3c4b2390 Salvatore Benedetto 2016-06-22   925   return -EINVAL;
3c4b2390 Salvatore Benedetto 2016-06-22   926  
3c4b2390 Salvatore Benedetto 2016-06-22   927   return 0;
3c4b2390 Salvatore Benedetto 2016-06-22   928  }
3c4b2390 Salvatore Benedetto 2016-06-22   929  
3c4b2390 S

[cryptodev:master 94/97] ERROR: "__divdi3" [crypto/tcrypt.ko] undefined!

2016-06-27 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   61dc0a446e5d08f2de8a24b45f69a1e302bb1b1b
commit: 087bcd225c5656a0beac02739471085d000c9680 [94/97] crypto: tcrypt - Add 
speed tests for SHA multibuffer algorithms
config: i386-randconfig-s0-201626 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
git checkout 087bcd225c5656a0beac02739471085d000c9680
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

>> ERROR: "__divdi3" [crypto/tcrypt.ko] undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 94/97] ERROR: "__aeabi_ldivmod" [crypto/tcrypt.ko] undefined!

2016-06-27 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   61dc0a446e5d08f2de8a24b45f69a1e302bb1b1b
commit: 087bcd225c5656a0beac02739471085d000c9680 [94/97] crypto: tcrypt - Add 
speed tests for SHA multibuffer algorithms
config: arm-ezx_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 087bcd225c5656a0beac02739471085d000c9680
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

>> ERROR: "__aeabi_ldivmod" [crypto/tcrypt.ko] undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 116/131] drivers/crypto/qce/ablkcipher.c:229:1: warning: 'qce_ablkcipher_crypt' uses dynamic stack allocation

2016-07-01 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   98eca72fa04a9bbf28dba95efaec5aa95588fe23
commit: 2d20ce070d3b78f0974408ef648223967d0efb0a [116/131] crypto: qce - Use 
skcipher for fallback
config: s390-allyesconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 2d20ce070d3b78f0974408ef648223967d0efb0a
# save the attached .config to linux build tree
make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   drivers/crypto/qce/ablkcipher.c: In function 'qce_ablkcipher_crypt':
>> drivers/crypto/qce/ablkcipher.c:229:1: warning: 'qce_ablkcipher_crypt' uses 
>> dynamic stack allocation
}
^

vim +/qce_ablkcipher_crypt +229 drivers/crypto/qce/ablkcipher.c

ec8f5d8f6 Stanimir Varbanov 2014-06-25  213 if (IS_AES(rctx->flags) && 
ctx->enc_keylen != AES_KEYSIZE_128 &&
ec8f5d8f6 Stanimir Varbanov 2014-06-25  214 ctx->enc_keylen != 
AES_KEYSIZE_256) {
2d20ce070 Herbert Xu2016-06-29  215 
SKCIPHER_REQUEST_ON_STACK(subreq, ctx->fallback);
2d20ce070 Herbert Xu2016-06-29  216  
2d20ce070 Herbert Xu2016-06-29  217 
skcipher_request_set_tfm(subreq, ctx->fallback);
2d20ce070 Herbert Xu2016-06-29  218 
skcipher_request_set_callback(subreq, req->base.flags,
2d20ce070 Herbert Xu2016-06-29  219 
  NULL, NULL);
2d20ce070 Herbert Xu2016-06-29  220 
skcipher_request_set_crypt(subreq, req->src, req->dst,
2d20ce070 Herbert Xu2016-06-29  221 
   req->nbytes, req->info);
2d20ce070 Herbert Xu2016-06-29  222 ret = encrypt ? 
crypto_skcipher_encrypt(subreq) :
2d20ce070 Herbert Xu2016-06-29  223 
crypto_skcipher_decrypt(subreq);
2d20ce070 Herbert Xu2016-06-29  224 
skcipher_request_zero(subreq);
ec8f5d8f6 Stanimir Varbanov 2014-06-25  225 return ret;
ec8f5d8f6 Stanimir Varbanov 2014-06-25  226 }
ec8f5d8f6 Stanimir Varbanov 2014-06-25  227  
ec8f5d8f6 Stanimir Varbanov 2014-06-25  228 return 
tmpl->qce->async_req_enqueue(tmpl->qce, &req->base);
ec8f5d8f6 Stanimir Varbanov 2014-06-25 @229  }
ec8f5d8f6 Stanimir Varbanov 2014-06-25  230  
ec8f5d8f6 Stanimir Varbanov 2014-06-25  231  static int 
qce_ablkcipher_encrypt(struct ablkcipher_request *req)
ec8f5d8f6 Stanimir Varbanov 2014-06-25  232  {
ec8f5d8f6 Stanimir Varbanov 2014-06-25  233 return 
qce_ablkcipher_crypt(req, 1);
ec8f5d8f6 Stanimir Varbanov 2014-06-25  234  }
ec8f5d8f6 Stanimir Varbanov 2014-06-25  235  
ec8f5d8f6 Stanimir Varbanov 2014-06-25  236  static int 
qce_ablkcipher_decrypt(struct ablkcipher_request *req)
ec8f5d8f6 Stanimir Varbanov 2014-06-25  237  {

:: The code at line 229 was first introduced by commit
:: ec8f5d8f6f76b939f662d6e83041abecabef0a34 crypto: qce - Qualcomm crypto 
engine driver

:: TO: Stanimir Varbanov 
:: CC: Herbert Xu 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 118/131] arch/s390/crypto/aes_s390.c:271:1: warning: 'fallback_blk_dec' uses dynamic stack allocation

2016-07-01 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   98eca72fa04a9bbf28dba95efaec5aa95588fe23
commit: 64e26807bb93b4accaa395d98e118ab893cac074 [118/131] crypto: s390/aes - 
Use skcipher for fallback
config: s390-allyesconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 64e26807bb93b4accaa395d98e118ab893cac074
# save the attached .config to linux build tree
make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   arch/s390/crypto/aes_s390.c: In function 'fallback_blk_dec':
>> arch/s390/crypto/aes_s390.c:271:1: warning: 'fallback_blk_dec' uses dynamic 
>> stack allocation
}
^
   arch/s390/crypto/aes_s390.c: In function 'ecb_aes_encrypt':
>> arch/s390/crypto/aes_s390.c:355:1: warning: 'ecb_aes_encrypt' uses dynamic 
>> stack allocation
}
^
   arch/s390/crypto/aes_s390.c: In function 'cbc_aes_encrypt':
>> arch/s390/crypto/aes_s390.c:496:1: warning: 'cbc_aes_encrypt' uses dynamic 
>> stack allocation
}
^
   arch/s390/crypto/aes_s390.c: In function 'xts_aes_decrypt':
>> arch/s390/crypto/aes_s390.c:703:1: warning: 'xts_aes_decrypt' uses dynamic 
>> stack allocation
}
^
   arch/s390/crypto/aes_s390.c: In function 'xts_aes_encrypt':
>> arch/s390/crypto/aes_s390.c:689:1: warning: 'xts_aes_encrypt' uses dynamic 
>> stack allocation
}
^

vim +/fallback_blk_dec +271 arch/s390/crypto/aes_s390.c

64e26807 Herbert Xu 2016-06-29  265 skcipher_request_set_crypt(req, 
src, dst, nbytes, desc->info);
b0c3e75d Sebastian Siewior  2007-12-01  266  
64e26807 Herbert Xu 2016-06-29  267 ret = 
crypto_skcipher_decrypt(req);
b0c3e75d Sebastian Siewior  2007-12-01  268  
64e26807 Herbert Xu 2016-06-29  269 skcipher_request_zero(req);
b0c3e75d Sebastian Siewior  2007-12-01  270 return ret;
b0c3e75d Sebastian Siewior  2007-12-01 @271  }
b0c3e75d Sebastian Siewior  2007-12-01  272  
b0c3e75d Sebastian Siewior  2007-12-01  273  static int fallback_blk_enc(struct 
blkcipher_desc *desc,
b0c3e75d Sebastian Siewior  2007-12-01  274 struct scatterlist 
*dst, struct scatterlist *src,
b0c3e75d Sebastian Siewior  2007-12-01  275 unsigned int nbytes)
b0c3e75d Sebastian Siewior  2007-12-01  276  {
b0c3e75d Sebastian Siewior  2007-12-01  277 unsigned int ret;
64e26807 Herbert Xu 2016-06-29  278 struct crypto_blkcipher *tfm = 
desc->tfm;
64e26807 Herbert Xu 2016-06-29  279 struct s390_aes_ctx *sctx = 
crypto_blkcipher_ctx(tfm);
64e26807 Herbert Xu 2016-06-29  280 SKCIPHER_REQUEST_ON_STACK(req, 
sctx->fallback.blk);
b0c3e75d Sebastian Siewior  2007-12-01  281  
64e26807 Herbert Xu 2016-06-29  282 skcipher_request_set_tfm(req, 
sctx->fallback.blk);
64e26807 Herbert Xu 2016-06-29  283 
skcipher_request_set_callback(req, desc->flags, NULL, NULL);
64e26807 Herbert Xu 2016-06-29  284 skcipher_request_set_crypt(req, 
src, dst, nbytes, desc->info);
b0c3e75d Sebastian Siewior  2007-12-01  285  
64e26807 Herbert Xu 2016-06-29  286 ret = 
crypto_skcipher_encrypt(req);
b0c3e75d Sebastian Siewior  2007-12-01  287 return ret;
b0c3e75d Sebastian Siewior  2007-12-01  288  }
b0c3e75d Sebastian Siewior  2007-12-01  289  
a9e62fad Herbert Xu 2006-08-21  290  static int ecb_aes_set_key(struct 
crypto_tfm *tfm, const u8 *in_key,
a9e62fad Herbert Xu 2006-08-21  291unsigned int 
key_len)
a9e62fad Herbert Xu 2006-08-21  292  {
a9e62fad Herbert Xu 2006-08-21  293 struct s390_aes_ctx *sctx = 
crypto_tfm_ctx(tfm);
b0c3e75d Sebastian Siewior  2007-12-01  294 int ret;
b0c3e75d Sebastian Siewior  2007-12-01  295  
b0c3e75d Sebastian Siewior  2007-12-01  296 ret = need_fallback(key_len);
b0c3e75d Sebastian Siewior  2007-12-01  297 if (ret > 0) {
b0c3e75d Sebastian Siewior  2007-12-01  298 sctx->key_len = key_len;
b0c3e75d Sebastian Siewior  2007-12-01  299 return 
setkey_fallback_blk(tfm, in_key, key_len);
b0c3e75d Sebastian Siewior  2007-12-01  300 }
a9e62fad Herbert Xu 2006-08-21  301  
a9e62fad Herbert Xu 2006-08-21  302 switch (key_len) {
a9e62fad Herbert Xu 2006-08-21  303 case 16:
c7d4d259 Martin Schwidefsky 2016-03-17  304 sctx->enc = 
CPACF_KM_AES_128_ENC;
c7d4d259 Martin Schwidefsky 2016-03-17  305 sctx->dec = 
CPACF_KM_AES_128_DEC;
a9e62fad Herbert Xu 2006-08-21  306 break;
a9e62fad Herbert Xu 2006-08-21  307 case 24:
c7d4d259 Martin Schwidefsky 2016-03-17  308 sctx->enc = 
CPACF_KM_AES_192_ENC;
c7d4d259 Martin Schwidefsky 2016-03-17  309 sctx->dec = 
CPACF_KM_AES_192_DEC;
a9e62fad

Re: [PATCH 3/3] crypto: Added Chelsio Menu to the Kconfig file

2016-07-11 Thread kbuild test robot
Hi,

[auto build test WARNING on net-next/master]
[also build test WARNING on v4.7-rc7 next-20160711]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Yeshaswi-M-R-Gowda/crypto-chcr-Add-Chelsio-Crypto-Driver/20160712-023513
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sh 

All warnings (new ones prefixed by >>):

warning: (ISCSI_TARGET_CXGB4) selects CHELSIO_T4_UWIRE which has unmet direct 
dependencies (NETDEVICES && ETHERNET && NET_VENDOR_CHELSIO && CHELSIO_T4)
warning: (SCSI_CXGB4_ISCSI && CRYPTO_DEV_CHELSIO) selects CHELSIO_T4 which has 
unmet direct dependencies (NETDEVICES && ETHERNET && NET_VENDOR_CHELSIO && PCI 
&& (IPV6 || IPV6=n))

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


Re: [PATCH 3/3] crypto: Added Chelsio Menu to the Kconfig file

2016-07-11 Thread kbuild test robot
Hi,

[auto build test WARNING on net-next/master]
[also build test WARNING on v4.7-rc7 next-20160711]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Yeshaswi-M-R-Gowda/crypto-chcr-Add-Chelsio-Crypto-Driver/20160712-023513
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/crypto/chelsio/chcr_core.c: In function 'cpl_fw6_pld_handler':
>> drivers/crypto/chelsio/chcr_core.c:134:8: warning: cast to pointer from 
>> integer of different size [-Wint-to-pointer-cast]
 req = (struct crypto_async_request *)cookie;
   ^
--
   In file included from include/linux/swab.h:4:0,
from include/uapi/linux/byteorder/little_endian.h:12,
from include/linux/byteorder/little_endian.h:4,
from arch/x86/include/uapi/asm/byteorder.h:4,
from include/asm-generic/bitops/le.h:5,
from arch/x86/include/asm/bitops.h:504,
from include/linux/bitops.h:36,
from include/linux/kernel.h:10,
from drivers/crypto/chelsio/chcr_algo.c:42:
   drivers/crypto/chelsio/chcr_algo.c: In function 'create_wreq':
>> drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to 
>> integer of different size [-Wpointer-to-int-cast]
 wreq->cookie = cpu_to_be64((u64)req);
^
   include/uapi/linux/swab.h:126:54: note: in definition of macro '__swab64'
#define __swab64(x) (__u64)__builtin_bswap64((__u64)(x))
 ^
>> include/linux/byteorder/generic.h:91:21: note: in expansion of macro 
>> '__cpu_to_be64'
#define cpu_to_be64 __cpu_to_be64
^
>> drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 
>> 'cpu_to_be64'
 wreq->cookie = cpu_to_be64((u64)req);
^~~
   drivers/crypto/chelsio/chcr_algo.c: In function 'chcr_register_alg':
>> drivers/crypto/chelsio/chcr_algo.c:1471:48: warning: operation on 
>> 'driver_algs[i].alg.hash.halg.base.cra_init' may be undefined 
>> [-Wsequence-point]
driver_algs[i].alg.hash.halg.base.cra_init =
~~~^
driver_algs[i].alg.hash.halg.base.cra_init =

 chcr_hmac_cra_init;
 ~~ 

vim +134 drivers/crypto/chelsio/chcr_core.c

5c923415 Yeshaswi M R Gowda 2016-07-11  118 u_ctx->dev = NULL;
5c923415 Yeshaswi M R Gowda 2016-07-11  119 atomic_dec(&dev_count);
5c923415 Yeshaswi M R Gowda 2016-07-11  120 return 0;
5c923415 Yeshaswi M R Gowda 2016-07-11  121  }
5c923415 Yeshaswi M R Gowda 2016-07-11  122  
5c923415 Yeshaswi M R Gowda 2016-07-11  123  static int 
cpl_fw6_pld_handler(struct chcr_dev *dev,
5c923415 Yeshaswi M R Gowda 2016-07-11  124unsigned 
char *input)
5c923415 Yeshaswi M R Gowda 2016-07-11  125  {
5c923415 Yeshaswi M R Gowda 2016-07-11  126 struct crypto_async_request 
*req;
5c923415 Yeshaswi M R Gowda 2016-07-11  127 struct cpl_fw6_pld *fw6_pld;
5c923415 Yeshaswi M R Gowda 2016-07-11  128 u64 cookie;
5c923415 Yeshaswi M R Gowda 2016-07-11  129 u32 ack_err_status = 0;
5c923415 Yeshaswi M R Gowda 2016-07-11  130 int error_status = 0;
5c923415 Yeshaswi M R Gowda 2016-07-11  131  
5c923415 Yeshaswi M R Gowda 2016-07-11  132 fw6_pld = (struct cpl_fw6_pld 
*)input;
5c923415 Yeshaswi M R Gowda 2016-07-11  133 cookie = 
be64_to_cpu(fw6_pld->data[1]);
5c923415 Yeshaswi M R Gowda 2016-07-11 @134 req = (struct 
crypto_async_request *)cookie;
5c923415 Yeshaswi M R Gowda 2016-07-11  135  
5c923415 Yeshaswi M R Gowda 2016-07-11  136 ack_err_status =
5c923415 Yeshaswi M R Gowda 2016-07-11  137 ntohl(*(__be32 
*)((unsigned char *)&fw6_pld->data[0] + 4));
5c923415 Yeshaswi M R Gowda 2016-07-11  138 if (ack_err_status) {
5c923415 Yeshaswi M R Gowda 2016-07-11  139 if 
(CHK_MAC_ERR_BIT(ack_err_status) ||
5c923415 Yeshaswi M R Gowda 2016-07-11  140 
CHK_PAD_ERR_BIT(ack_err_status))
5c923415 Yeshaswi M R Gowda 2016-07-11  141 error_status = 
-EINVAL;
5c923415 Yeshaswi M R Gowda 2016-07-11  142 }

:: The code at line 134 was first introduced by commit
:: 5c9234157776103907606c9f4c93a311467e246f chcr: Support for Chelsio's 
Crypto Hardware

:: TO: Yeshaswi M R Gowda 
:: CC: 0day robot 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


Re: [PATCH 3/3] crypto: Added Chelsio Menu to the Kconfig file

2016-07-11 Thread kbuild test robot
Hi,

[auto build test WARNING on net-next/master]
[also build test WARNING on v4.7-rc7 next-20160711]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Yeshaswi-M-R-Gowda/crypto-chcr-Add-Chelsio-Crypto-Driver/20160712-023513
config: sh-allyesconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sh 

All warnings (new ones prefixed by >>):

   In file included from include/linux/swab.h:4:0,
from include/uapi/linux/byteorder/little_endian.h:12,
from include/linux/byteorder/little_endian.h:4,
from arch/sh/include/uapi/asm/byteorder.h:5,
from arch/sh/include/asm/bitops.h:11,
from include/linux/bitops.h:36,
from include/linux/kernel.h:10,
from drivers/crypto/chelsio/chcr_algo.c:42:
   drivers/crypto/chelsio/chcr_algo.c: In function 'create_wreq':
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to 
integer of different size [-Wpointer-to-int-cast]
 wreq->cookie = cpu_to_be64((u64)req);
^
   include/uapi/linux/swab.h:129:32: note: in definition of macro '__swab64'
 (__builtin_constant_p((__u64)(x)) ? \
   ^
   include/linux/byteorder/generic.h:91:21: note: in expansion of macro 
'__cpu_to_be64'
#define cpu_to_be64 __cpu_to_be64
^
   drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 
'cpu_to_be64'
 wreq->cookie = cpu_to_be64((u64)req);
^
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to 
integer of different size [-Wpointer-to-int-cast]
 wreq->cookie = cpu_to_be64((u64)req);
^
   include/uapi/linux/swab.h:23:12: note: in definition of macro 
'___constant_swab64'
 (((__u64)(x) & (__u64)0x00ffULL) << 56) | \
   ^
>> include/uapi/linux/byteorder/little_endian.h:36:43: note: in expansion of 
>> macro '__swab64'
#define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
  ^
   include/linux/byteorder/generic.h:91:21: note: in expansion of macro 
'__cpu_to_be64'
#define cpu_to_be64 __cpu_to_be64
^
   drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 
'cpu_to_be64'
 wreq->cookie = cpu_to_be64((u64)req);
^
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to 
integer of different size [-Wpointer-to-int-cast]
 wreq->cookie = cpu_to_be64((u64)req);
^
   include/uapi/linux/swab.h:24:12: note: in definition of macro 
'___constant_swab64'
 (((__u64)(x) & (__u64)0xff00ULL) << 40) | \
   ^
>> include/uapi/linux/byteorder/little_endian.h:36:43: note: in expansion of 
>> macro '__swab64'
#define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
  ^
   include/linux/byteorder/generic.h:91:21: note: in expansion of macro 
'__cpu_to_be64'
#define cpu_to_be64 __cpu_to_be64
^
   drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 
'cpu_to_be64'
 wreq->cookie = cpu_to_be64((u64)req);
^
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to 
integer of different size [-Wpointer-to-int-cast]
 wreq->cookie = cpu_to_be64((u64)req);
^
   include/uapi/linux/swab.h:25:12: note: in definition of macro 
'___constant_swab64'
 (((__u64)(x) & (__u64)0x00ffULL) << 24) | \
   ^
>> include/uapi/linux/byteorder/little_endian.h:36:43: note: in expansion of 
>> macro '__swab64'
#define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
  ^
   include/linux/byteorder/generic.h:91:21: note: in expansion of macro 
'__cpu_to_be64'
#define cpu_to_be64 __cpu_to_be64
^
   drivers/crypto/chelsio/chcr_algo.c:454:17: note: in expansion of macro 
'cpu_to_be64'
 wreq->cookie = cpu_to_be64((u64)req);
^
   drivers/crypto/chelsio/chcr_algo.c:454:29: warning: cast from pointer to 
integer of different size [-Wpointer-to-int-cast]
 wreq->cookie = cpu_to_be64((u64)req);
^
   include/uapi/linux/swab.h:26:12: note: in definition of macro 
'___constant_swab64'
 (((__u64)(x) & (__u64)0xff00ULL) <<  8) | \
   ^
>> include/uapi/linux/byteorder/little_e

[cryptodev:master 147/175] DocBook: include/crypto/skcipher.h:135: warning: No description found for parameter 'base'

2016-07-18 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   c6335cbb0486f09b4c2ae86e84bf87efd667afa6
commit: 4e6c3df4d729f85997cbf276bfa8ffd8579b8e77 [147/175] crypto: skcipher - 
Add low-level skcipher interface
reproduce: make htmldocs

All warnings (new ones prefixed by >>):

>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'
>> include/crypto/skcipher.h:135: warning: No description found for parameter 
>> 'base'

vim +/base +135 include/crypto/skcipher.h

   119   * All fields except @ivsize are mandatory and must be filled.
   120   */
   121  struct skcipher_alg {
   122  int (*setkey)(struct crypto_skcipher *tfm, const u8 *key,
   123unsigned int keylen);
   124  int (*encrypt)(struct skcipher_request *req);
   125  int (*decrypt)(struct skcipher_request *req);
   126  int (*init)(struct crypto_skcipher *tfm);
   127  void (*exit)(struct crypto_skcipher *tfm);
   128  
   129  unsigned int min_keysize;
   130  unsigned int max_keysize;
   131  unsigned int ivsize;
   132  unsigned int chunksize;
   133  
   134  struct crypto_alg base;
 > 135  };
   136  
   137  #define SKCIPHER_REQUEST_ON_STACK(name, tfm) \
   138  char __##name##_desc[sizeof(struct skcipher_request) + \
   139  crypto_skcipher_reqsize(tfm)] CRYPTO_MINALIGN_ATTR; \
   140  struct skcipher_request *name = (void *)__##name##_desc
   141  
   142  static inline struct crypto_ablkcipher *skcipher_givcrypt_reqtfm(
   143  struct skcipher_givcrypt_request *req)

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 163/175] DocBook: include/linux/crypto.h:1: warning: no structured comments found

2016-07-18 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   c6335cbb0486f09b4c2ae86e84bf87efd667afa6
commit: 3a01d0ee2b991c8c267620e63a4ab47cd8c30cc4 [163/175] crypto: skcipher - 
Remove top-level givcipher interface
reproduce: make htmldocs

All warnings (new ones prefixed by >>):

   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
   include/crypto/skcipher.h:135: warning: No description found for parameter 
'base'
>> include/linux/crypto.h:1: warning: no structured comments found
   Was looking for 'crypto_alloc_ablkcipher'.

vim +1 include/linux/crypto.h

^1da177e Linus Torvalds2005-04-16 @1  /*
^1da177e Linus Torvalds2005-04-16  2   * Scatterlist Cryptographic API.
^1da177e Linus Torvalds2005-04-16  3   *
^1da177e Linus Torvalds2005-04-16  4   * Copyright (c) 2002 James 
Morris 
^1da177e Linus Torvalds2005-04-16  5   * Copyright (c) 2002 David S. 
Miller (da...@redhat.com)
5cb1454b Herbert Xu2005-11-05  6   * Copyright (c) 2005 Herbert Xu 

^1da177e Linus Torvalds2005-04-16  7   *
^1da177e Linus Torvalds2005-04-16  8   * Portions derived from 
Cryptoapi, by Alexander Kjeldaas 
18735dd8 John Anthony Kazos Jr 2007-10-19  9   * and Nettle, by Niels Möller.

:: The code at line 1 was first introduced by commit
:: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:: TO: Linus Torvalds 
:: CC: Linus Torvalds 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 17/45] drivers/crypto/ccp/ccp-dev-v5.c:838:3: error: label 'e_hwrng' used but not defined

2016-08-10 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   47856204146ba6fd0f198dbb23c4ed7ad1c3fd99
commit: 99d90b2ebd8b327c0c496798db99009b30c70945 [17/45] crypto: ccp - Enable 
DMA service on a v5 CCP
config: i386-randconfig-h1-08102150 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
git checkout 99d90b2ebd8b327c0c496798db99009b30c70945
# save the attached .config to linux build tree
make ARCH=i386 

Note: the cryptodev/master HEAD 47856204146ba6fd0f198dbb23c4ed7ad1c3fd99 builds 
fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/crypto/ccp/ccp-dev-v5.c: In function 'ccp5_init':
>> drivers/crypto/ccp/ccp-dev-v5.c:838:3: error: label 'e_hwrng' used but not 
>> defined
  goto e_hwrng;
  ^~~~

vim +/e_hwrng +838 drivers/crypto/ccp/ccp-dev-v5.c

   832  if (ret)
   833  goto e_kthread;
   834  
   835  /* Register the DMA engine support */
   836  ret = ccp_dmaengine_register(ccp);
   837  if (ret)
 > 838  goto e_hwrng;
   839  
   840  return 0;
   841  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


Re: [PATCH v6 4/5] crypto: LRNG - enable compile

2016-08-11 Thread kbuild test robot
Hi Stephan,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.8-rc1]
[cannot apply to next-20160811]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Stephan-Mueller/crypto-DRBG-externalize-DRBG-functions-for-LRNG/20160811-203346
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: tile-allyesconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=tile 

All error/warnings (new ones prefixed by >>):

   crypto/lrng_base.c: In function 'add_interrupt_randomness':
>> crypto/lrng_base.c:583:10: error: implicit declaration of function 
>> 'get_irq_regs'
>> crypto/lrng_base.c:583:26: warning: initialization makes pointer from 
>> integer without a cast [enabled by default]
   cc1: some warnings being treated as errors

vim +/get_irq_regs +583 crypto/lrng_base.c

22708393 Stephan Mueller 2016-08-11  567  }
22708393 Stephan Mueller 2016-08-11  568  
22708393 Stephan Mueller 2016-08-11  569  /**
22708393 Stephan Mueller 2016-08-11  570   * Hot code path - Callback for 
interrupt handler
22708393 Stephan Mueller 2016-08-11  571   */
22708393 Stephan Mueller 2016-08-11  572  void add_interrupt_randomness(int 
irq, int irq_flags)
22708393 Stephan Mueller 2016-08-11  573  {
22708393 Stephan Mueller 2016-08-11  574u32 now_time = 
random_get_entropy();
22708393 Stephan Mueller 2016-08-11  575struct lrng_irq_info *irq_info 
= &lrng_pool.irq_info;
22708393 Stephan Mueller 2016-08-11  576u32 irq_num = 
(u32)atomic_add_return(1, &irq_info->num_events);
22708393 Stephan Mueller 2016-08-11  577  
22708393 Stephan Mueller 2016-08-11  578if 
(lrng_pool.irq_info.irq_highres_timer) {
22708393 Stephan Mueller 2016-08-11  579if 
(lrng_irq_stuck(irq_info, now_time))
22708393 Stephan Mueller 2016-08-11  580return;
22708393 Stephan Mueller 2016-08-11  581lrng_pool_mixin((u8 
*)&now_time, sizeof(now_time), irq_num);
22708393 Stephan Mueller 2016-08-11  582} else {
22708393 Stephan Mueller 2016-08-11 @583struct pt_regs *regs = 
get_irq_regs();
22708393 Stephan Mueller 2016-08-11  584static atomic_t reg_idx 
= ATOMIC_INIT(0);
22708393 Stephan Mueller 2016-08-11  585  
22708393 Stephan Mueller 2016-08-11  586struct {
22708393 Stephan Mueller 2016-08-11  587long jiffies;
22708393 Stephan Mueller 2016-08-11  588int irq;
22708393 Stephan Mueller 2016-08-11  589int irq_flags;
22708393 Stephan Mueller 2016-08-11  590u64 ip;
22708393 Stephan Mueller 2016-08-11  591u32 curr_reg;

:: The code at line 583 was first introduced by commit
:: 227083931f3541c5430b40241419b56057555033 crypto: Linux Random Number 
Generator

:: TO: Stephan Mueller 
:: CC: 0day robot 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 65/80] drivers/pci/quirks.c:843:6: error: 'struct pci_dev' has no member named 'sriov'

2016-09-03 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   10faa8c0d6c3b22466f97713a9533824a2ea1c57
commit: 21b5b8eebbae427d7d890b7dd1e43a63aca7c26c [65/80] PCI: quirk fixup for 
cavium invalid sriov link value.
config: arm64-kexec_dev_defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 21b5b8eebbae427d7d890b7dd1e43a63aca7c26c
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   drivers/pci/quirks.c: In function 'quirk_cavium_sriov_rnm_link':
>> drivers/pci/quirks.c:843:6: error: 'struct pci_dev' has no member named 
>> 'sriov'
  dev->sriov->link = dev->devfn;
 ^

vim +843 drivers/pci/quirks.c

   837  #ifdef CONFIG_ARM64
   838  
   839  static void quirk_cavium_sriov_rnm_link(struct pci_dev *dev)
   840  {
   841  /* Fix for improper SRIOV configuration on Cavium cn88xx  RNM 
device */
   842  if (dev->subsystem_device == 0xa118)
 > 843  dev->sriov->link = dev->devfn;
   844  }
   845  DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_CAVIUM, 0xa018, 
quirk_cavium_sriov_rnm_link);
   846  #endif

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data


[cryptodev:master 158/160] crypto/jitterentropy.c:133:2: error: implicit declaration of function 'timekeeping_valid_for_hres'

2015-05-27 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git 
master
head:   d725332208ef13241fc435eece790c9d0ea16a4e
commit: bb5530e4082446aac3a3d69780cd4dbfa4520013 [158/160] crypto: 
jitterentropy - add jitterentropy RNG
config: i386-randconfig-r1-0527 (attached as .config)
reproduce:
  git checkout bb5530e4082446aac3a3d69780cd4dbfa4520013
  # save the attached .config to linux build tree
  make ARCH=i386 

All error/warnings:

   crypto/jitterentropy.c: In function 'jent_get_nstime':
>> crypto/jitterentropy.c:133:2: error: implicit declaration of function 
>> 'timekeeping_valid_for_hres' [-Werror=implicit-function-declaration]
 if ((0 == tmp) &&
 ^
   cc1: some warnings being treated as errors

vim +/timekeeping_valid_for_hres +133 crypto/jitterentropy.c

   127   * hoping that there are timers we can work with.
   128   *
   129   * The list of available timers can be obtained from
   130   * 
/sys/devices/system/clocksource/clocksource0/available_clocksource
   131   * and are registered with clocksource_register()
   132   */
 > 133  if ((0 == tmp) &&
   134  #ifndef MODULE
   135 (0 == timekeeping_valid_for_hres()) &&
   136  #endif

---
0-DAY kernel test infrastructureOpen Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
#
# Automatically generated file; DO NOT EDIT.
# Linux/i386 4.0.0 Kernel Configuration
#
# CONFIG_64BIT is not set
CONFIG_X86_32=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf32-i386"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig"
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_MMU=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_ARCH_HAS_CPU_RELAX=y
CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_X86_32_SMP=y
CONFIG_X86_HT=y
CONFIG_ARCH_HWEIGHT_CFLAGS="-fcall-saved-ecx -fcall-saved-edx"
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_PGTABLE_LEVELS=2
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
CONFIG_CONSTRUCTORS=y
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_EXTABLE_SORT=y

#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
# CONFIG_KERNEL_GZIP is not set
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
CONFIG_KERNEL_XZ=y
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
CONFIG_DEFAULT_HOSTNAME="(none)"
CONFIG_SWAP=y
# CONFIG_SYSVIPC is not set
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_CROSS_MEMORY_ATTACH is not set
CONFIG_FHANDLE=y
CONFIG_USELIB=y
# CONFIG_AUDIT is not set
CONFIG_HAVE_ARCH_AUDITSYSCALL=y

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_LEGACY_ALLOC_HWIRQ=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_DOMAIN_DEBUG=y
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_ARCH_CLOCKSOURCE_DATA=y
CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
CONFIG_GENERIC_CMOS_UPDATE=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_HZ_PERIODIC=y
# CONFIG_NO_HZ_IDLE is not set
# CONFIG_NO_HZ is not set
CONFIG_HIGH_RES_TIMERS=y

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_IRQ_TIME_ACCOUNTING is not set
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set

#
# RCU Subsystem
#
CONFIG_TREE_RCU=y
CONFIG_SRCU=y
CONFIG_TASKS_RCU=y
CONFIG_RCU_STALL_COMMON=y
CONFIG_RCU_FANOUT=32
CONFIG_RCU_FANOUT_LEAF=16
# CONFIG_RCU_FANOUT_EXACT is not set
# CONFIG_TREE_RCU_TRACE is not set
CONFIG_RCU_KTHREAD_PRIO=0
CONFIG_RCU_NOCB_CPU=y
# CONFIG_RCU_NOCB_CPU_NONE is not set
# CONFIG_RCU_NOCB_CPU_ZERO is not set
CONFIG_RCU_NOCB_CPU_ALL=y
# CONFIG_RCU_EXPEDITE_BOOT is not set
CONFIG_BUILD_BIN2C=y
CONFIG_IKCONFIG=y
# CONFIG_IKCONFIG_PROC is not set
CONFIG_LOG_BUF_SHIFT=17
CONFIG_LOG_CPU_MAX_BUF_SHIFT=12
CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
CONFIG_CGROUPS=y
CONFIG_CGROUP_DEBUG=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_DEVICE=y
# CONFIG_CPUSETS is not set
# CONFIG_CGROUP_CPUACCT is not set
CONFIG_PAG

[cryptodev:master 269/278] drivers/crypto/marvell/cipher.c:298:60: sparse: incorrect type in argument 2 (different base types)

2015-06-19 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git 
master
head:   2df6bb5d8b22bc06a6ea83e8b2a6bcf3bb445304
commit: db509a45339fd786de355b11db34ff7421488cb1 [269/278] crypto: marvell/cesa 
- add TDMA support
reproduce:
  # apt-get install sparse
  git checkout db509a45339fd786de355b11db34ff7421488cb1
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   drivers/crypto/marvell/cipher.c:82:47: sparse: incorrect type in argument 3 
(different address spaces)
   drivers/crypto/marvell/cipher.c:82:47:expected void *buf
   drivers/crypto/marvell/cipher.c:82:47:got void [noderef] *
   drivers/crypto/marvell/cesa.h:656:26: sparse: incorrect type in assignment 
(different base types)
   drivers/crypto/marvell/cesa.h:656:26:expected unsigned int [unsigned] 
[usertype] enc_len
   drivers/crypto/marvell/cesa.h:656:26:got restricted __le32 [usertype] 

   drivers/crypto/marvell/cipher.c:90:17: sparse: incorrect type in argument 1 
(different address spaces)
   drivers/crypto/marvell/cipher.c:90:17:expected void *to
   drivers/crypto/marvell/cipher.c:90:17:got void [noderef] *sram
   drivers/crypto/marvell/cipher.c:93:17: sparse: incorrect type in argument 1 
(different address spaces)
   drivers/crypto/marvell/cipher.c:93:17:expected void *to
   drivers/crypto/marvell/cipher.c:93:17:got void [noderef] *sram
   drivers/crypto/marvell/cipher.c:110:49: sparse: incorrect type in argument 3 
(different address spaces)
   drivers/crypto/marvell/cipher.c:110:49:expected void *buf
   drivers/crypto/marvell/cipher.c:110:49:got void [noderef] *
   drivers/crypto/marvell/cipher.c:137:9: sparse: incorrect type in argument 2 
(different address spaces)
   drivers/crypto/marvell/cipher.c:137:9:expected void const *from
   drivers/crypto/marvell/cipher.c:137:9:got void [noderef] *
   drivers/crypto/marvell/cipher.c:235:41: sparse: incorrect type in assignment 
(different base types)
   drivers/crypto/marvell/cipher.c:235:41:expected unsigned int [unsigned] 

   drivers/crypto/marvell/cipher.c:235:41:got restricted __le32 [usertype] 

   drivers/crypto/marvell/cesa.h:656:26: sparse: incorrect type in assignment 
(different base types)
   drivers/crypto/marvell/cesa.h:656:26:expected unsigned int [unsigned] 
[usertype] enc_len
   drivers/crypto/marvell/cesa.h:656:26:got restricted __le32 [usertype] 

>> drivers/crypto/marvell/cipher.c:298:60: sparse: incorrect type in argument 2 
>> (different base types)
   drivers/crypto/marvell/cipher.c:298:60:expected unsigned int [unsigned] 
[usertype] flags
   drivers/crypto/marvell/cipher.c:298:60:got restricted gfp_t [usertype] 
flags
   drivers/crypto/marvell/cesa.h:625:25: sparse: invalid assignment: &=
   drivers/crypto/marvell/cesa.h:625:25:left side has type unsigned int
   drivers/crypto/marvell/cesa.h:625:25:right side has type restricted 
__le32
   drivers/crypto/marvell/cesa.h:626:25: sparse: invalid assignment: |=
   drivers/crypto/marvell/cesa.h:626:25:left side has type unsigned int
   drivers/crypto/marvell/cesa.h:626:25:right side has type restricted 
__le32
   drivers/crypto/marvell/cesa.h:631:16: sparse: cast to restricted __le32
   drivers/crypto/marvell/cipher.c:383:44: sparse: incorrect type in assignment 
(different base types)
   drivers/crypto/marvell/cipher.c:383:44:expected unsigned int [unsigned] 

   drivers/crypto/marvell/cipher.c:383:44:got restricted __le32 [usertype] 

   drivers/crypto/marvell/cesa.h:625:25: sparse: invalid assignment: &=
   drivers/crypto/marvell/cesa.h:625:25:left side has type unsigned int
   drivers/crypto/marvell/cesa.h:625:25:right side has type restricted 
__le32
   drivers/crypto/marvell/cesa.h:626:25: sparse: invalid assignment: |=
   drivers/crypto/marvell/cesa.h:626:25:left side has type unsigned int
   drivers/crypto/marvell/cesa.h:626:25:right side has type restricted 
__le32
   drivers/crypto/marvell/cesa.h:636:25: sparse: incorrect type in assignment 
(different base types)
   drivers/crypto/marvell/cesa.h:636:25:expected unsigned int [unsigned] 
[usertype] config
   drivers/crypto/marvell/cesa.h:636:25:got restricted __le32 [usertype] 

   drivers/crypto/marvell/cesa.h:636:25: sparse: incorrect type in assignment 
(different base types)
   drivers/crypto/marvell/cesa.h:636:25:expected unsigned int [unsigned] 
[usertype] config
   drivers/crypto/marvell/cesa.h:636:25:got restricted __le32 [usertype] 

   drivers/crypto/marvell/cesa.h:625:25: sparse: invalid assignment: &=
   drivers/crypto/marvell/cesa.h:625:25:left side has type unsigned int
   drivers/crypto/marvell/cesa.h:625:25:right side has type restricted 
__le32
   drivers/crypto/marvell/cesa.h:626:25: sparse: invalid assignment: |=
   drivers/crypto/marvell/cesa.h:626:25:left side has type unsigned int
   drivers/crypto/marvell/cesa.h:626:25:rig

  1   2   3   >