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 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 

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)(_core_sib_map[cpu])
06931e62 arch/sparc/include/asm/topology_64.h Bartosz Golaszewski 2015-05-26  
47  #define topology_sibling_cpumask(cpu) (_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 

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


[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


[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 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 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 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,

[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 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/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 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


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


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  };

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


[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


[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


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 
= _pool.irq_info;
22708393 Stephan Mueller 2016-08-11  576u32 irq_num = 
(u32)atomic_add_return(1, _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 
*)_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 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


[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


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) | \
   ^
>> 

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(_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 *)_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



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


[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;

[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, >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 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 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 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 
*)_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 *)_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 Salvatore 

[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(, data, 
datalen);
d56d72c6 Herbert Xu 2016-06-22  107 skcipher_request_set_crypt(req, 
, , 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 *)>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 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 

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(, 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(, 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(, 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;
   346  

[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


[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 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


[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/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


[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] 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


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(, 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(, 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(, 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.data_len 

[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


[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


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


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 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(_type_asymmetric, key_name, NULL);
 ^
   crypto/af_alg.c:217:10: warning: assignment makes pointer from integer 
without a cast
 keyring = request_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: 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(_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(_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 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


[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(_unit_lock, flags);
   119  if (!list_empty(_units)) {
 > 120  write_lock_irqsave(_rr_lock, flags);
   121  dp = ccp_rr;
   122  if (list_is_last(_rr->entry, _units))
   123  ccp_rr = list_first_entry(_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


[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 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 = >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/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


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(>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 

[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(, page, len ?: 
PAGE_SIZE, 0);
9534d671 Herbert Xu  2016-01-24  301ahash_request_set_crypt(req, 
, 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(, 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(, 
bvec.bv_page, bvec.bv_len, bvec.bv_offset);
9534d671 Herbert Xu  2016-01-24  321
ahash_request_set_crypt(req, , 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(_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(_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(_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 1/26] block: cryptoloop - Use new skcipher interface

2016-01-24 Thread kbuild test robot
Hi Herbert,

[auto build test ERROR on net/master]
[also build test ERROR on v4.4 next-20160122]
[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/Herbert-Xu/crypto-Use-skcipher-and-ahash-shash-where-possible/20160124-212323
config: x86_64-randconfig-x014-201604 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/block/cryptoloop.c: In function 'cryptoloop_transfer':
>> drivers/block/cryptoloop.c:167:2: error: implicit declaration of function 
>> 'skcipher_request_zero' [-Werror=implicit-function-declaration]
 skcipher_request_zero(req);
 ^
   cc1: some warnings being treated as errors

vim +/skcipher_request_zero +167 drivers/block/cryptoloop.c

   161  out_offs += sz;
   162  }
   163  
   164  err = 0;
   165  
   166  out:
 > 167  skcipher_request_zero(req);
   168  return err;
   169  }
   170  

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


.config.gz
Description: Binary data


Re: [PATCH 24/26] nfsd: Use shash

2016-01-24 Thread kbuild test robot
Hi Herbert,

[auto build test ERROR on net/master]
[also build test ERROR on v4.4 next-20160122]
[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/Herbert-Xu/crypto-Use-skcipher-and-ahash-shash-where-possible/20160124-212323
config: x86_64-randconfig-x009-201604 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   fs/nfsd/nfs4recover.c: In function 'nfs4_make_rec_clidname':
>> fs/nfsd/nfs4recover.c:133:3: error: implicit declaration of function 
>> 'shash_desc_zero' [-Werror=implicit-function-declaration]
  shash_desc_zero(desc);
  ^
   cc1: some warnings being treated as errors

vim +/shash_desc_zero +133 fs/nfsd/nfs4recover.c

   127  
   128  desc->tfm = tfm;
   129  desc->flags = CRYPTO_TFM_REQ_MAY_SLEEP;
   130  
   131  status = crypto_shash_digest(desc, clname->data, 
clname->len,
   132   cksum.data);
 > 133  shash_desc_zero(desc);
   134  }
   135  
   136  if (status)

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


.config.gz
Description: Binary data


Re: [PATCH 21/26] nfc: s3fwrn5: Use shash

2016-01-24 Thread kbuild test robot
Hi Herbert,

[auto build test ERROR on net/master]
[also build test ERROR on v4.4 next-20160122]
[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/Herbert-Xu/crypto-Use-skcipher-and-ahash-shash-where-possible/20160124-212323
config: x86_64-randconfig-x014-201604 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/nfc/s3fwrn5/firmware.c: In function 's3fwrn5_fw_download':
>> drivers/nfc/s3fwrn5/firmware.c:456:3: error: implicit declaration of 
>> function 'shash_desc_zero' [-Werror=implicit-function-declaration]
  shash_desc_zero(desc);
  ^
   cc1: some warnings being treated as errors

vim +/shash_desc_zero +456 drivers/nfc/s3fwrn5/firmware.c

   450  
   451  desc->tfm = tfm;
   452  desc->flags = CRYPTO_TFM_REQ_MAY_SLEEP;
   453  
   454  ret = crypto_shash_digest(desc, fw->image, image_size,
   455hash_data);
 > 456  shash_desc_zero(desc);
   457  }
   458  
   459  crypto_free_shash(tfm);

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


.config.gz
Description: Binary data


Re: [PATCH 7/26] wusb: Use skcipher

2016-01-24 Thread kbuild test robot
Hi Herbert,

[auto build test ERROR on net/master]
[also build test ERROR on v4.4 next-20160122]
[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/Herbert-Xu/crypto-Use-skcipher-and-ahash-shash-where-possible/20160124-212323
config: x86_64-randconfig-x016-201604 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/usb/wusbcore/crypto.c: In function 'wusb_ccm_mac':
>> drivers/usb/wusbcore/crypto.c:266:2: error: implicit declaration of function 
>> 'skcipher_request_zero' [-Werror=implicit-function-declaration]
 skcipher_request_zero(req);
 ^
   cc1: some warnings being treated as errors

vim +/skcipher_request_zero +266 drivers/usb/wusbcore/crypto.c

   260  sg_init_one(_dst, dst_buf, dst_size);
   261  
   262  skcipher_request_set_tfm(req, tfm_cbc);
   263  skcipher_request_set_callback(req, 0, NULL, NULL);
   264  skcipher_request_set_crypt(req, sg, _dst, dst_size, iv);
   265  result = crypto_skcipher_encrypt(req);
 > 266  skcipher_request_zero(req);
   267  if (result < 0) {
   268  printk(KERN_ERR "E: can't compute CBC-MAC tag (MIC): 
%d\n",
   269 result);

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


.config.gz
Description: Binary data


Re: [PATCH 15/26] Bluetooth: Use skcipher and hash

2016-01-24 Thread kbuild test robot
Hi Herbert,

[auto build test ERROR on net/master]
[also build test ERROR on v4.4 next-20160122]
[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/Herbert-Xu/crypto-Use-skcipher-and-ahash-shash-where-possible/20160124-212323
config: x86_64-randconfig-x014-201604 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   net/bluetooth/smp.c: In function 'aes_cmac':
>> net/bluetooth/smp.c:201:2: error: implicit declaration of function 
>> 'shash_desc_zero' [-Werror=implicit-function-declaration]
 shash_desc_zero(desc);
 ^
   net/bluetooth/smp.c: In function 'smp_e':
>> net/bluetooth/smp.c:397:2: error: implicit declaration of function 
>> 'skcipher_request_zero' [-Werror=implicit-function-declaration]
 skcipher_request_zero(req);
 ^
   cc1: some warnings being treated as errors

vim +/shash_desc_zero +201 net/bluetooth/smp.c

   195  if (err) {
   196  BT_ERR("cipher setkey failed: %d", err);
   197  return err;
   198  }
   199  
   200  err = crypto_shash_digest(desc, msg_msb, len, mac_msb);
 > 201  shash_desc_zero(desc);
   202  if (err) {
   203  BT_ERR("Hash computation error %d", err);
   204  return err;
   205  }
   206  
   207  swap_buf(mac_msb, mac, 16);
   208  
   209  SMP_DBG("mac %16phN", mac);
   210  
   211  return 0;
   212  }
   213  
   214  static int smp_f4(struct crypto_shash *tfm_cmac, const u8 u[32],
   215const u8 v[32], const u8 x[16], u8 z, u8 res[16])
   216  {
   217  u8 m[65];
   218  int err;
   219  
   220  SMP_DBG("u %32phN", u);
   221  SMP_DBG("v %32phN", v);
   222  SMP_DBG("x %16phN z %02x", x, z);
   223  
   224  m[0] = z;
   225  memcpy(m + 1, v, 32);
   226  memcpy(m + 33, u, 32);
   227  
   228  err = aes_cmac(tfm_cmac, x, m, sizeof(m), res);
   229  if (err)
   230  return err;
   231  
   232  SMP_DBG("res %16phN", res);
   233  
   234  return err;
   235  }
   236  
   237  static int smp_f5(struct crypto_shash *tfm_cmac, const u8 w[32],
   238const u8 n1[16], const u8 n2[16], const u8 a1[7],
   239const u8 a2[7], u8 mackey[16], u8 ltk[16])
   240  {
   241  /* The btle, salt and length "magic" values are as defined in
   242   * the SMP section of the Bluetooth core specification. In ASCII
   243   * the btle value ends up being 'btle'. The salt is just a
   244   * random number whereas length is the value 256 in little
   245   * endian format.
   246   */
   247  const u8 btle[4] = { 0x65, 0x6c, 0x74, 0x62 };
   248  const u8 salt[16] = { 0xbe, 0x83, 0x60, 0x5a, 0xdb, 0x0b, 0x37, 
0x60,
   2490x38, 0xa5, 0xf5, 0xaa, 0x91, 0x83, 0x88, 
0x6c };
   250  const u8 length[2] = { 0x00, 0x01 };
   251  u8 m[53], t[16];
   252  int err;
   253  
   254  SMP_DBG("w %32phN", w);
   255  SMP_DBG("n1 %16phN n2 %16phN", n1, n2);
   256  SMP_DBG("a1 %7phN a2 %7phN", a1, a2);
   257  
   258  err = aes_cmac(tfm_cmac, salt, w, 32, t);
   259  if (err)
   260  return err;
   261  
   262  SMP_DBG("t %16phN", t);
   263  
   264  memcpy(m, length, 2);
   265  memcpy(m + 2, a2, 7);
   266  memcpy(m + 9, a1, 7);
   267  memcpy(m + 16, n2, 16);
   268  memcpy(m + 32, n1, 16);
   269  memcpy(m + 48, btle, 4);
   270  
   271  m[52] = 0; /* Counter */
   272  
   273  err = aes_cmac(tfm_cmac, t, m, sizeof(m), mackey);
   274  if (err)
   275  return err;
   276  
   277  SMP_DBG("mackey %16phN", mackey);
   278  
   279  m[52] = 1; /* Counter */
   280  
   281  err = aes_cmac(tfm_cmac, t, m, sizeof(m), ltk);
   282  if (err)
   283  return err;
   284  
   285  SMP_DBG("ltk %16phN", ltk);
   286  
   287  return 0;
   288  }
   289  
   290  static int smp_f6(struct crypto_shash *tfm_cmac, const u8 w[16],
   291const u8 n1[16], const u8 n2[16], const u8 r[16],
   292const u8 io_cap[3], const u8 a1[7], const u8 a2[7],
   293u8 res[16])
   294  {
   295  u8 m[65];
   296  int err;
   297  
   298  SMP_DBG("w %16phN", w);
   299  SMP_DBG("n1 %16phN n2 %16phN", n1, n2);
   300  SMP_DBG("r %16phN io_cap %3phN a1 %7phN a2 %7phN", r, io_cap, 
a1, a2);
   301  
   302  memcpy(m, a2, 7);
   303  memcpy(m + 7, a1, 7);
   304

Re: [PATCH 9/26] eCryptfs: Use skcipher and shash

2016-01-24 Thread kbuild test robot
Hi Herbert,

[auto build test ERROR on net/master]
[also build test ERROR on v4.4 next-20160122]
[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/Herbert-Xu/crypto-Use-skcipher-and-ahash-shash-where-possible/20160124-212323
config: x86_64-randconfig-x012-201604 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

   fs/ecryptfs/crypto.c: In function 'ecryptfs_hash_digest':
>> fs/ecryptfs/crypto.c:87:2: error: implicit declaration of function 
>> 'shash_desc_zero' [-Werror=implicit-function-declaration]
 shash_desc_zero(desc);
 ^
   fs/ecryptfs/crypto.c: In function 'ecryptfs_process_key_cipher':
>> fs/ecryptfs/crypto.c:1614:15: error: implicit declaration of function 
>> 'crypto_skcipher_default_keysize' [-Werror=implicit-function-declaration]
  *key_size = crypto_skcipher_default_keysize(*key_tfm);
  ^
   cc1: some warnings being treated as errors
--
   fs/ecryptfs/keystore.c: In function 'ecryptfs_write_tag_70_packet':
>> fs/ecryptfs/keystore.c:700:10: error: implicit declaration of function 
>> 'crypto_skcipher_driver_name' [-Werror=implicit-function-declaration]
 crypto_skcipher_driver_name(s->skcipher_tfm));
 ^
   In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:13,
from include/linux/crypto.h:21,
from include/crypto/hash.h:16,
from fs/ecryptfs/keystore.c:28:
>> include/linux/kern_levels.h:4:18: warning: format '%s' expects argument of 
>> type 'char *', but argument 3 has type '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 */
 ^
>> fs/ecryptfs/keystore.c:698:10: note: in expansion of macro 'KERN_ERR'
  printk(KERN_ERR "%s: Out of kernel memory whilst attempting to "
 ^
   fs/ecryptfs/keystore.c: In function 'ecryptfs_parse_tag_70_packet':
>> include/linux/kern_levels.h:4:18: warning: format '%s' expects argument of 
>> type 'char *', but argument 3 has type '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 */
 ^
   fs/ecryptfs/keystore.c:1031:10: note: in expansion of macro 'KERN_ERR'
  printk(KERN_ERR "%s: Out of kernel memory whilst attempting to "
 ^
   fs/ecryptfs/keystore.c: In function 
'decrypt_passphrase_encrypted_session_key':
>> include/linux/kern_levels.h:4:18: warning: format '%s' expects argument of 
>> type 'char *', but argument 3 has type '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 */
 ^
   fs/ecryptfs/keystore.c:1722:10: note: in expansion of macro 'KERN_ERR'
  printk(KERN_ERR "%s: Out of kernel memory whilst attempting to "
 ^
   fs/ecryptfs/keystore.c: In function 'write_tag_3_packet':
>> fs/ecryptfs/keystore.c:2232:10: error: implicit declaration of function 
>> 'crypto_skcipher_default_keysize' [-Werror=implicit-function-declaration]
 crypto_skcipher_default_keysize(tfm));
 ^
   In file included from fs/ecryptfs/keystore.c:36:0:
>> include/linux/kern_levels.h:4:18: warning: format '%s' expects argument of 
>> type 'char *', but argument 3 has type 'int' [-Wformat=]
#define KERN_SOH "\001"  /* ASCII Start Of Header */
 ^
   fs/ecryptfs/ecryptfs_kernel.h:530:27: note: in definition of macro 
'ecryptfs_printk'
__ecryptfs_printk(type "%s: " fmt, __func__, ## arg);
  ^
   include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
 ^
   fs/ecryptfs/keystore.c:2316:19: note: in expansion of macro 'KERN_ERR'
  ecryptfs_printk(KERN_ERR, "Out of kernel memory whilst "
  ^
   cc1: some warnings being treated as errors

vim +/shash_desc_zero +87 fs/ecryptfs/crypto.c

81  SHASH_DESC_ON_STACK(desc, tfm);
82  int err;
83  
84  desc->tfm = tfm;
85  desc->flags = CRYPTO_TFM_REQ_MAY_SLEEP;
86  err = crypto_shash_digest(desc, src, len, dst);
  > 87  shash_desc_zero(desc);
88  return err;
89  }
90  

---
0-DAY kernel test infrastructureOpen Source Technology Center

Re: [PATCH 4/26] dm crypt: Use skcipher and ahash

2016-01-24 Thread kbuild test robot
Hi Herbert,

[auto build test ERROR on net/master]
[also build test ERROR on v4.4 next-20160122]
[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/Herbert-Xu/crypto-Use-skcipher-and-ahash-shash-where-possible/20160124-212323
config: x86_64-randconfig-x014-201604 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/md/dm-crypt.c: In function 'crypt_iv_essiv_init':
>> drivers/md/dm-crypt.c:278:2: error: implicit declaration of function 
>> 'ahash_request_zero' [-Werror=implicit-function-declaration]
 ahash_request_zero(req);
 ^
   cc1: some warnings being treated as errors

vim +/ahash_request_zero +278 drivers/md/dm-crypt.c

   272  sg_init_one(, cc->key, cc->key_size);
   273  ahash_request_set_tfm(req, essiv->hash_tfm);
   274  ahash_request_set_callback(req, CRYPTO_TFM_REQ_MAY_SLEEP, NULL, 
NULL);
   275  ahash_request_set_crypt(req, , essiv->salt, cc->key_size);
   276  
   277  err = crypto_ahash_digest(req);
 > 278  ahash_request_zero(req);
   279  if (err)
   280  return err;
   281  

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


.config.gz
Description: Binary data


Re: [PATCH 19/26] ipsec: Use skcipher and ahash when probing algorithms

2016-01-24 Thread kbuild test robot
Hi Herbert,

[auto build test ERROR on net/master]
[also build test ERROR on v4.4 next-20160122]
[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/Herbert-Xu/crypto-Use-skcipher-and-ahash-shash-where-possible/20160124-212323
config: x86_64-randconfig-x014-201604 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   net/xfrm/xfrm_algo.c: In function 'xfrm_probe_algs':
>> net/xfrm/xfrm_algo.c:787:12: error: implicit declaration of function 
>> 'crypto_has_ahash' [-Werror=implicit-function-declaration]
  status = crypto_has_ahash(aalg_list[i].name, 0, 0);
   ^
   cc1: some warnings being treated as errors

vim +/crypto_has_ahash +787 net/xfrm/xfrm_algo.c

   781  {
   782  int i, status;
   783  
   784  BUG_ON(in_softirq());
   785  
   786  for (i = 0; i < aalg_entries(); i++) {
 > 787  status = crypto_has_ahash(aalg_list[i].name, 0, 0);
   788  if (aalg_list[i].available != status)
   789  aalg_list[i].available = status;
   790  }

---
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 1/2] crypto: KEYS: convert public key to the akcipher api

2015-12-23 Thread kbuild test robot
Hi Tadeusz,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.4-rc6 next-20151223]

url:
https://github.com/0day-ci/linux/commits/Tadeusz-Struk/crypto-KEYS-convert-public-key-to-akcipher-api/20151223-132001
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: xtensa-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
# save the attached .config to linux build tree
make.cross ARCH=xtensa 

Note: the 
linux-review/Tadeusz-Struk/crypto-KEYS-convert-public-key-to-akcipher-api/20151223-132001
 HEAD 06fa55a0feec438fdc649cdac682af7ab99f8099 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   security/integrity/digsig_asymmetric.c: In function 'asymmetric_verify':
>> security/integrity/digsig_asymmetric.c:95:5: error: 'struct 
>> public_key_signature' has no member named 'nr_mpi'
 pks.nr_mpi = 1;
^
>> security/integrity/digsig_asymmetric.c:96:5: error: 'struct 
>> public_key_signature' has no member named 'rsa'
 pks.rsa.s = mpi_read_raw_data(hdr->sig, siglen);
^
>> security/integrity/digsig_asymmetric.c:96:2: error: implicit declaration of 
>> function 'mpi_read_raw_data' [-Werror=implicit-function-declaration]
 pks.rsa.s = mpi_read_raw_data(hdr->sig, siglen);
 ^
   security/integrity/digsig_asymmetric.c:98:9: error: 'struct 
public_key_signature' has no member named 'rsa'
 if (pks.rsa.s)
^
>> security/integrity/digsig_asymmetric.c:101:2: error: implicit declaration of 
>> function 'mpi_free' [-Werror=implicit-function-declaration]
 mpi_free(pks.rsa.s);
 ^
   security/integrity/digsig_asymmetric.c:101:14: error: 'struct 
public_key_signature' has no member named 'rsa'
 mpi_free(pks.rsa.s);
 ^
   cc1: some warnings being treated as errors

vim +95 security/integrity/digsig_asymmetric.c

e0751257 Dmitry Kasatkin 2013-02-07   89  
e0751257 Dmitry Kasatkin 2013-02-07   90memset(, 0, sizeof(pks));
e0751257 Dmitry Kasatkin 2013-02-07   91  
e0751257 Dmitry Kasatkin 2013-02-07   92pks.pkey_hash_algo = 
hdr->hash_algo;
e0751257 Dmitry Kasatkin 2013-02-07   93pks.digest = (u8 *)data;
e0751257 Dmitry Kasatkin 2013-02-07   94pks.digest_size = datalen;
e0751257 Dmitry Kasatkin 2013-02-07  @95pks.nr_mpi = 1;
e0751257 Dmitry Kasatkin 2013-02-07  @96pks.rsa.s = 
mpi_read_raw_data(hdr->sig, siglen);
e0751257 Dmitry Kasatkin 2013-02-07   97  
e0751257 Dmitry Kasatkin 2013-02-07   98if (pks.rsa.s)
e0751257 Dmitry Kasatkin 2013-02-07   99ret = 
verify_signature(key, );
e0751257 Dmitry Kasatkin 2013-02-07  100  
e0751257 Dmitry Kasatkin 2013-02-07 @101mpi_free(pks.rsa.s);
e0751257 Dmitry Kasatkin 2013-02-07  102key_put(key);
e0751257 Dmitry Kasatkin 2013-02-07  103pr_debug("%s() = %d\n", 
__func__, ret);
e0751257 Dmitry Kasatkin 2013-02-07  104return ret;

:: The code at line 95 was first introduced by commit
:: e0751257a64ea10cca96ccb06522bfb10e36cb5b ima: digital signature 
verification using asymmetric keys

:: TO: Dmitry Kasatkin 
:: CC: Mimi Zohar 

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


.config.gz
Description: Binary data


Re: [PATCH v2 1/2] crypto: KEYS: convert public key to the akcipher api

2015-12-19 Thread kbuild test robot
Hi Tadeusz,

[auto build test ERROR on crypto/master]
[also build test ERROR on v4.4-rc5 next-20151218]

url:
https://github.com/0day-ci/linux/commits/Tadeusz-Struk/crypto-KEYS-convert-public-key-to-akcipher-api/20151213-103429
base:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git 
master
config: x86_64-randconfig-s4-12200710 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from include/crypto/public_key.h:17:0,
from include/linux/verify_pefile.h:15,
from arch/x86/kernel/kexec-bzimage64.c:22:
   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];
   ^

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


[cryptodev:master 51/54] drivers/crypto/qat/qat_c62xvf/adf_drv.c:116:57: error: 'struct pci_dev' has no member named 'physfn'

2015-12-09 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   161151d79ff4f7ed35d4ebb0eb7727a517c34ef2
commit: 3771df3cff7536da19cba2b4755ad628dc4bf371 [51/54] crypto: qat - add 
support for c62xvf accel type
config: i386-randconfig-x004-12092241 (attached as .config)
reproduce:
git checkout 3771df3cff7536da19cba2b4755ad628dc4bf371
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/crypto/qat/qat_c62xvf/adf_drv.c: In function 'adf_cleanup_accel':
>> drivers/crypto/qat/qat_c62xvf/adf_drv.c:116:57: error: 'struct pci_dev' has 
>> no member named 'physfn'
 pf = adf_devmgr_pci_to_accel_dev(accel_pci_dev->pci_dev->physfn);
^
   drivers/crypto/qat/qat_c62xvf/adf_drv.c: In function 'adf_probe':
   drivers/crypto/qat/qat_c62xvf/adf_drv.c:144:39: error: 'struct pci_dev' has 
no member named 'physfn'
 pf = adf_devmgr_pci_to_accel_dev(pdev->physfn);
  ^

vim +116 drivers/crypto/qat/qat_c62xvf/adf_drv.c

   110  }
   111  kfree(accel_dev->hw_device);
   112  accel_dev->hw_device = NULL;
   113  }
   114  adf_cfg_dev_remove(accel_dev);
   115  debugfs_remove(accel_dev->debugfs_dir);
 > 116  pf = 
 > adf_devmgr_pci_to_accel_dev(accel_pci_dev->pci_dev->physfn);
   117  adf_devmgr_rm_dev(accel_dev, pf);
   118  }
   119  

---
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/54] crypto/rsa-pkcs1pad.c:135:1: warning: 'pkcs1pad_encrypt_sign_complete' uses dynamic stack allocation

2015-12-09 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   161151d79ff4f7ed35d4ebb0eb7727a517c34ef2
commit: 3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6 [53/54] crypto: rsa - RSA 
padding algorithm
config: s390-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
git checkout 3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6
# save the attached .config to linux build tree
make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   crypto/rsa-pkcs1pad.c: In function 'pkcs1pad_encrypt_sign_complete':
>> crypto/rsa-pkcs1pad.c:135:1: warning: 'pkcs1pad_encrypt_sign_complete' uses 
>> dynamic stack allocation
}
^

vim +/pkcs1pad_encrypt_sign_complete +135 crypto/rsa-pkcs1pad.c

   119  sg_nents_for_len(req->dst,
   120  sizeof(zeros)),
   121  zeros, sizeof(zeros));
   122  }
   123  
   124  sg_pcopy_from_buffer(req->dst,
   125  sg_nents_for_len(req->dst, 
ctx->key_size),
   126  req_ctx->out_buf, 
req_ctx->child_req.dst_len,
   127  sizeof(zeros));
   128  }
   129  req->dst_len = ctx->key_size;
   130  
   131  kfree(req_ctx->in_buf);
   132  kzfree(req_ctx->out_buf);
   133  
   134  return err;
 > 135  }
   136  
   137  static void pkcs1pad_encrypt_sign_complete_cb(
   138  struct crypto_async_request *child_async_req, int err)
   139  {
   140  struct akcipher_request *req = child_async_req->data;
   141  struct crypto_async_request async_req;
   142  
   143  if (err == -EINPROGRESS)

---
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/54] adf_c3xxxvf_hw_data.c:undefined reference to `adf_iov_putmsg'

2015-12-09 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   161151d79ff4f7ed35d4ebb0eb7727a517c34ef2
commit: 8b206f2d666f41f0aa83dec83504801ee945d3dc [50/54] crypto: qat - add 
support for c3xxxvf accel type
config: x86_64-randconfig-x009-12092253 (attached as .config)
reproduce:
git checkout 8b206f2d666f41f0aa83dec83504801ee945d3dc
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/built-in.o: In function `adf_pf2vf_bh_handler':
   adf_vf_isr.c:(.text+0x8dd066): undefined reference to 
`adf_enable_pf2vf_interrupts'
   drivers/built-in.o: In function `adf_isr':
   adf_vf_isr.c:(.text+0x8dd123): undefined reference to 
`adf_disable_pf2vf_interrupts'
   drivers/built-in.o: In function `adf_vf2pf_shutdown':
>> adf_c3xxxvf_hw_data.c:(.text+0x8ee265): undefined reference to 
>> `adf_iov_putmsg'
   drivers/built-in.o: In function `adf_vf2pf_init':
   adf_c3xxxvf_hw_data.c:(.text+0x8ee2a5): undefined reference to 
`adf_iov_putmsg'
   drivers/built-in.o: In function `adf_init_hw_data_c3xxxiov':
   (.text+0x8ee3e3): undefined reference to `adf_enable_vf2pf_comms'

---
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] crypto: atmel: fix bogus select

2015-11-18 Thread kbuild test robot
Hi Arnd,

[auto build test WARNING on: cryptodev/master]
[also build test WARNING on: v4.4-rc1 next-20151118]

url:
https://github.com/0day-ci/linux/commits/Arnd-Bergmann/crypto-atmel-fix-bogus-select/20151118-233706
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: x86_64-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   include/linux/compiler.h:228:8: sparse: attribute 'no_sanitize_address': 
unknown attribute
   drivers/crypto/atmel-aes.c:191:25: sparse: incompatible types in comparison 
expression (different type sizes)
   drivers/crypto/atmel-aes.c:447:25: sparse: incompatible types in comparison 
expression (different type sizes)
   drivers/crypto/atmel-aes.c:448:25: sparse: incompatible types in comparison 
expression (different type sizes)
   In file included from drivers/crypto/atmel-aes.c:17:0:
   drivers/crypto/atmel-aes.c: In function 'atmel_aes_sg_copy':
   include/linux/kernel.h:724:17: warning: comparison of distinct pointer types 
lacks a cast
 (void) (&_min1 == &_min2);  \
^
>> drivers/crypto/atmel-aes.c:191:11: note: in expansion of macro 'min'
  count = min(count, buflen);
  ^
   drivers/crypto/atmel-aes.c: In function 'atmel_aes_crypt_dma_start':
   include/linux/kernel.h:724:17: warning: comparison of distinct pointer types 
lacks a cast
 (void) (&_min1 == &_min2);  \
^
   drivers/crypto/atmel-aes.c:447:11: note: in expansion of macro 'min'
  count = min(dd->total, sg_dma_len(dd->in_sg));
  ^
   include/linux/kernel.h:724:17: warning: comparison of distinct pointer types 
lacks a cast
 (void) (&_min1 == &_min2);  \
^
   drivers/crypto/atmel-aes.c:448: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-aes.c:17:
   drivers/crypto/atmel-aes.c: In function 'atmel_aes_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:252:9: note: in expansion of macro 'KERN_ERR'
 printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^
>> drivers/crypto/atmel-aes.c:642:5: note: in expansion of macro 'pr_err'
pr_err("not all data converted: %u\n", count);
^
   drivers/crypto/atmel-aes.c: In function 'atmel_aes_buff_init':
>> drivers/crypto/atmel-aes.c:669:20: 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-aes.c:677:20: 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);
   ^

sparse warnings: (new ones prefixed by >>)

   include/linux/compiler.h:228:8: sparse: attribute 'no_sanitize_address': 
unknown attribute
>> drivers/crypto/atmel-aes.c:191:25: sparse: incompatible types in comparison 
>> expression (different type sizes)
   drivers/crypto/atmel-aes.c:447:25: sparse: incompatible types in comparison 
expression (different type sizes)
   drivers/crypto/atmel-aes.c:448:25: sparse: incompatible types in comparison 
expression (different type sizes)
   In file included from drivers/crypto/atmel-aes.c:17:0:
   drivers/crypto/atmel-aes.c: In function 'atmel_aes_sg_copy':
   include/linux/kernel.h:724:17: warning: comparison of distinct pointer types 
lacks a cast
 (void) (&_min1 == &_min2);  \
^
   drivers/crypto/atmel-aes.c:191:11: note: in expansion of macro 'min'
  count = min(count, buflen);
  ^
   drivers/crypto/atmel-aes.c: In function 'atmel_aes_crypt_dma_start':
   include/linux/kernel.h:724:17: warning: comparison of distinct pointer types 
lacks a cast
 (void) (&_min1 == &_min2);  \
^
   drivers/crypto/atmel-aes.c:447:11: note: in expansion of macro 'min'
  count = min(dd->total, sg_dma_len(dd->in_sg));
  ^
   include/linux/kernel.h:724:17: warning: comparison of distinct pointer types 
lacks a cast
 (void) (&_min1 == &_min2);  \
^
   drivers/crypto/atmel-aes.c:448:11: note: in expansion of macro 'min'
  count = min(count, sg_dma_len(dd->out_sg));
  ^
 

Re: [PATCH v3] crypto: atmel: fix bogus select

2015-11-18 Thread kbuild test robot
Hi Arnd,

[auto build test WARNING on: cryptodev/master]
[also build test WARNING on: v4.4-rc1 next-20151118]

url:
https://github.com/0day-ci/linux/commits/Arnd-Bergmann/crypto-atmel-fix-bogus-select/20151118-233706
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: tile-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=tile 

All warnings (new ones prefixed by >>):

   drivers/crypto/atmel-aes.c: In function 'atmel_aes_sg_copy':
>> drivers/crypto/atmel-aes.c:191:11: warning: comparison of distinct pointer 
>> types lacks a cast [enabled by default]
   drivers/crypto/atmel-aes.c: In function 'atmel_aes_crypt_dma_start':
   drivers/crypto/atmel-aes.c:447:11: warning: comparison of distinct pointer 
types lacks a cast [enabled by default]
   drivers/crypto/atmel-aes.c:448:11: warning: comparison of distinct pointer 
types lacks a cast [enabled by default]
   drivers/crypto/atmel-aes.c: In function 'atmel_aes_crypt_dma_stop':
>> drivers/crypto/atmel-aes.c:642:5: warning: format '%u' expects argument of 
>> type 'unsigned int', but argument 2 has type 'size_t' [-Wformat]
   drivers/crypto/atmel-aes.c: In function 'atmel_aes_buff_init':
>> drivers/crypto/atmel-aes.c:669:3: warning: format '%d' expects argument of 
>> type 'int', but argument 3 has type 'size_t' [-Wformat]
   drivers/crypto/atmel-aes.c:677:3: warning: format '%d' expects argument of 
type 'int', but argument 3 has type 'size_t' [-Wformat]

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

bd3c7b5c Nicolas Royer 2012-07-01  175  
bd3c7b5c Nicolas Royer 2012-07-01  176  sg_list = 
sg_next(sg_list);
bd3c7b5c Nicolas Royer 2012-07-01  177  if (!sg_list)
bd3c7b5c Nicolas Royer 2012-07-01  178  total = 0;
bd3c7b5c Nicolas Royer 2012-07-01  179  }
bd3c7b5c Nicolas Royer 2012-07-01  180  
bd3c7b5c Nicolas Royer 2012-07-01  181  return sg_nb;
bd3c7b5c Nicolas Royer 2012-07-01  182  }
bd3c7b5c Nicolas Royer 2012-07-01  183  
cadc4ab8 Nicolas Royer 2013-02-20  184  static int atmel_aes_sg_copy(struct 
scatterlist **sg, size_t *offset,
cadc4ab8 Nicolas Royer 2013-02-20  185  void *buf, 
size_t buflen, size_t total, int out)
cadc4ab8 Nicolas Royer 2013-02-20  186  {
cadc4ab8 Nicolas Royer 2013-02-20  187  unsigned int count, off = 0;
cadc4ab8 Nicolas Royer 2013-02-20  188  
cadc4ab8 Nicolas Royer 2013-02-20  189  while (buflen && total) {
cadc4ab8 Nicolas Royer 2013-02-20  190  count = 
min((*sg)->length - *offset, total);
cadc4ab8 Nicolas Royer 2013-02-20 @191  count = min(count, 
buflen);
cadc4ab8 Nicolas Royer 2013-02-20  192  
cadc4ab8 Nicolas Royer 2013-02-20  193  if (!count)
cadc4ab8 Nicolas Royer 2013-02-20  194  return off;
cadc4ab8 Nicolas Royer 2013-02-20  195  
cadc4ab8 Nicolas Royer 2013-02-20  196  
scatterwalk_map_and_copy(buf + off, *sg, *offset, count, out);
cadc4ab8 Nicolas Royer 2013-02-20  197  
cadc4ab8 Nicolas Royer 2013-02-20  198  off += count;
cadc4ab8 Nicolas Royer 2013-02-20  199  buflen -= count;

:: The code at line 191 was first introduced by commit
:: cadc4ab8f6f73719ef0e124320cdd210d1c9ff3e crypto: atmel-aes - add support 
for latest release of the IP (0x130)

:: TO: Nicolas Royer 
:: 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


Re: [PATCH 7/7] Create generated/random_init.h, used by random driver

2015-11-08 Thread kbuild test robot
Hi Sandy,

[auto build test ERROR on: char-misc/char-misc-testing]
[also build test ERROR on: v4.3 next-20151106]

url:
https://github.com/0day-ci/linux/commits/Sandy-Harris/A-couple-of-generated-files/20151107-223540
config: mips-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
# save the attached .config to linux build tree
make.cross ARCH=mips 

All errors (new ones prefixed by >>):

>> /bin/sh: scripts/gen_random: cannot execute binary file: Exec format error
   make[2]: *** [include/generated/random_init.h] Error 126
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

---
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/7] Initialise pools randomly if CONFIG_RANDOM_INIT=y

2015-11-07 Thread kbuild test robot
Hi Sandy,

[auto build test ERROR on: char-misc/char-misc-testing]
[also build test ERROR on: v4.3 next-20151106]

url:
https://github.com/0day-ci/linux/commits/Sandy-Harris/A-couple-of-generated-files/20151107-223540
config: i386-allyesconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

Note: the linux-review/Sandy-Harris/A-couple-of-generated-files/20151107-223540 
HEAD 4d000f20486e81f999bc1f5499f0cfb36b37db02 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

>> drivers/char/random.c:280:35: fatal error: generated/random_init.h: No such 
>> file or directory
   compilation terminated.

vim +280 drivers/char/random.c

   274  
   275  /*
   276   * Configuration information
   277   */
   278  #ifdef CONFIG_RANDOM_INIT
   279  
 > 280  #include 
   281  
   282  #else
   283  #define INPUT_POOL_SHIFT12

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


.config.gz
Description: Binary data


Re: [PATCH 5/7] Conditionals for CONFIG_RANDOM_INIT and CONFIG_RANDOM_GCM

2015-11-07 Thread kbuild test robot
Hi Sandy,

[auto build test ERROR on: char-misc/char-misc-testing]
[also build test ERROR on: v4.3 next-20151106]

url:
https://github.com/0day-ci/linux/commits/Sandy-Harris/A-couple-of-generated-files/20151107-223540
config: arm64-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
# save the attached .config to linux build tree
make.cross ARCH=arm64 

Note: the linux-review/Sandy-Harris/A-couple-of-generated-files/20151107-223540 
HEAD 4d000f20486e81f999bc1f5499f0cfb36b37db02 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

>> drivers/char/random_gcm.c:286:35: fatal error: generated/random_init.h: No 
>> such file or directory
#include 
  ^
   compilation terminated.

vim +286 drivers/char/random_gcm.c

da17cbfa Sandy Harris 2015-11-07  270  #define CREATE_TRACE_POINTS
da17cbfa Sandy Harris 2015-11-07  271  #include 
da17cbfa Sandy Harris 2015-11-07  272  
da17cbfa Sandy Harris 2015-11-07  273  /* #define ADD_INTERRUPT_BENCH */
da17cbfa Sandy Harris 2015-11-07  274  
da17cbfa Sandy Harris 2015-11-07  275  #ifndef CONFIG_RANDOM_INIT
da17cbfa Sandy Harris 2015-11-07  276  #error This version needs 
CONFIG_RANDOM_INIT
da17cbfa Sandy Harris 2015-11-07  277  #endif
da17cbfa Sandy Harris 2015-11-07  278  #ifndef CONFIG_RANDOM_GCM
da17cbfa Sandy Harris 2015-11-07  279  #error This version should not be 
compiled if CONFIG_RANDOM_GCM is not set
da17cbfa Sandy Harris 2015-11-07  280  #endif
da17cbfa Sandy Harris 2015-11-07  281  
da17cbfa Sandy Harris 2015-11-07  282  /*
da17cbfa Sandy Harris 2015-11-07  283   * Configuration information
da17cbfa Sandy Harris 2015-11-07  284   */
da17cbfa Sandy Harris 2015-11-07  285  
da17cbfa Sandy Harris 2015-11-07 @286  #include 
da17cbfa Sandy Harris 2015-11-07  287  
da17cbfa Sandy Harris 2015-11-07  288  #define EXTRACT_SIZE 16  
/* 128-bit GCM hash */
da17cbfa Sandy Harris 2015-11-07  289  #define SEC_XFER_SIZE512
da17cbfa Sandy Harris 2015-11-07  290  #define DEBUG_RANDOM_BOOT 0
da17cbfa Sandy Harris 2015-11-07  291  
da17cbfa Sandy Harris 2015-11-07  292  #define LONGS(x) (((x) + sizeof(unsigned 
long) - 1)/sizeof(unsigned long))
da17cbfa Sandy Harris 2015-11-07  293  
da17cbfa Sandy Harris 2015-11-07  294  /*

:: The code at line 286 was first introduced by commit
:: da17cbfaa5c53120c6c5797cf2dc6bd4123b6869 Different version of driver 
using hash from AES-GCM Compiled if CONFIG_RANDOM_GCM=y

:: TO: Sandy Harris 
:: 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 7/7] Create generated/random_init.h, used by random driver

2015-11-07 Thread kbuild test robot
Hi Sandy,

[auto build test ERROR on: char-misc/char-misc-testing]
[also build test ERROR on: v4.3 next-20151106]

url:
https://github.com/0day-ci/linux/commits/Sandy-Harris/A-couple-of-generated-files/20151107-223540
config: x86_64-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

   drivers/char/random_gcm.c:2366:28: sparse: non-ANSI function declaration of 
function 'mix_const_all'
   drivers/char/random_gcm.c:2379:21: sparse: non-ANSI function declaration of 
function 'big_mix'
   drivers/char/random_gcm.c:2443:21: sparse: non-ANSI function declaration of 
function 'top_mix'
   drivers/char/random_gcm.c:2518:26: sparse: non-ANSI function declaration of 
function 'clear_addmul'
   drivers/char/random_gcm.c:3208:25: sparse: non-ANSI function declaration of 
function 'init_random'
   drivers/char/random_gcm.c:3571:26: sparse: non-ANSI function declaration of 
function 'counter_any'
   drivers/char/random_gcm.c:3652:23: sparse: non-ANSI function declaration of 
function 'load_input'
   drivers/char/random_gcm.c:3702:27: sparse: non-ANSI function declaration of 
function 'load_constants'
   drivers/char/random_gcm.c:477:14: sparse: undefined identifier 'constants'
   drivers/char/random_gcm.c:478:14: sparse: undefined identifier 'constants'
   drivers/char/random_gcm.c:496:14: sparse: undefined identifier 'constants'
   drivers/char/random_gcm.c:497:14: sparse: undefined identifier 'constants'
   drivers/char/random_gcm.c:514:14: sparse: undefined identifier 'constants'
   drivers/char/random_gcm.c:515:14: sparse: undefined identifier 'constants'
   drivers/char/random_gcm.c:530:14: sparse: undefined identifier 'constants'
   drivers/char/random_gcm.c:531:14: sparse: undefined identifier 'constants'
   drivers/char/random_gcm.c:3471:25: sparse: undefined identifier 'counter'
   drivers/char/random_gcm.c:3474:25: sparse: undefined identifier 'counter'
   drivers/char/random_gcm.c:3477:25: sparse: undefined identifier 'counter'
   drivers/char/random_gcm.c:3488:25: sparse: undefined identifier 'counter'
   drivers/char/random_gcm.c:3495:25: sparse: undefined identifier 'counter'
   drivers/char/random_gcm.c:3496:25: sparse: undefined identifier 'counter'
   drivers/char/random_gcm.c:3497:25: sparse: undefined identifier 'counter'
   drivers/char/random_gcm.c:3517:9: sparse: undefined identifier 'counter'
   drivers/char/random_gcm.c:3541:9: sparse: undefined identifier 'counter'
   drivers/char/random_gcm.c:3547:17: sparse: undefined identifier 'counter'
   drivers/char/random_gcm.c:3555:24: sparse: undefined identifier 'counter'
   drivers/char/random_gcm.c:3555:58: sparse: undefined identifier 'counter'
   drivers/char/random_gcm.c:3555:51: sparse: cast from unknown type
   drivers/char/random_gcm.c:3560:17: sparse: undefined identifier 'counter'
   drivers/char/random_gcm.c:3709:58: sparse: undefined identifier 'ARRAY_WORDS'
   drivers/char/random_gcm.c:3709:25: sparse: undefined identifier 'constants'
   drivers/char/random_gcm.c:2371:19: sparse: undefined identifier 'constants'
   drivers/char/random_gcm.c:2652:38: sparse: undefined identifier 'counter'
>> drivers/char/random_gcm.c:477:7: error: 'constants' undeclared here (not in 
>> a function)
 .A = constants,
  ^
   drivers/char/random_gcm.c: In function 'mix_first':
>> drivers/char/random_gcm.c:2652:31: error: 'counter' undeclared (first use in 
>> this function)
 addmul( (u8 *) accum, (u8 *) counter, 16, (u8 *) r->B) ;
  ^
   drivers/char/random_gcm.c:2652:31: note: each undeclared identifier is 
reported only once for each function it appears in
   drivers/char/random_gcm.c: In function 'count':
   drivers/char/random_gcm.c:3471:4: error: 'counter' undeclared (first use in 
this function)
   counter[1] += counter[3] ;
   ^
   drivers/char/random_gcm.c: In function 'buffer2counter':
   drivers/char/random_gcm.c:3541:2: error: 'counter' undeclared (first use in 
this function)
 counter[0] ^= jiffies ;
 ^
   drivers/char/random_gcm.c: In function 'load_constants':
>> drivers/char/random_gcm.c:3709:27: warning: left-hand operand of comma 
>> expression has no effect [-Wunused-value]
 for( i = 0, p = constants, ret = 1 ; ret && (i < ARRAY_WORDS) ; i++, p++ ) 
{
  ^
>> drivers/char/random_gcm.c:3709:51: error: 'ARRAY_WORDS' undeclared (first 
>> use in this function)
 for( i = 0, p = constants, ret = 1 ; ret && (i < ARRAY_WORDS) ; i++, p++ ) 
{
  ^

sparse warnings: (new ones prefixed by >>)

   drivers/char/random_gcm.c:2366:28: sparse: non-ANSI function declaration of 
function 'mix_const_all'
   drivers/char/random_gcm.c:2379:21: sparse: non-ANSI function declaration of 
function 'big_mix'
   drivers/char/random_gcm.c:2443:21: sparse: non-ANSI function declaration of 

Re: [PATCH 7/7] Create generated/random_init.h, used by random driver

2015-11-07 Thread kbuild test robot
Hi Sandy,

[auto build test ERROR on: char-misc/char-misc-testing]
[also build test ERROR on: v4.3 next-20151106]

url:
https://github.com/0day-ci/linux/commits/Sandy-Harris/A-couple-of-generated-files/20151107-223540
config: sh-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
# save the attached .config to linux build tree
make.cross ARCH=sh 

All errors (new ones prefixed by >>):

>> scripts/gen_random.c:61:19: fatal error: stdio.h: No such file or directory
   compilation terminated.
   make[2]: *** [scripts/gen_random] Error 1
   :1229:2: warning: #warning syscall sched_setattr not implemented 
[-Wcpp]
   :1232:2: warning: #warning syscall sched_getattr not implemented 
[-Wcpp]
   :1235:2: warning: #warning syscall renameat2 not implemented [-Wcpp]
   :1238:2: warning: #warning syscall seccomp not implemented [-Wcpp]
   :1241:2: warning: #warning syscall getrandom not implemented [-Wcpp]
   :1244:2: warning: #warning syscall memfd_create not implemented 
[-Wcpp]
   :1247:2: warning: #warning syscall bpf not implemented [-Wcpp]
   :1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
   :1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
   :1301:2: warning: #warning syscall membarrier not implemented [-Wcpp]
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +61 scripts/gen_random.c

06038f35 Sandy Harris 2015-11-07  45   * This is certainly done early enough 
and the data is random
06038f35 Sandy Harris 2015-11-07  46   * enough, but it is not necessarily 
secret enough.
06038f35 Sandy Harris 2015-11-07  47   *
06038f35 Sandy Harris 2015-11-07  48   * In some cases -- for example, a 
firewall machine that compiles
06038f35 Sandy Harris 2015-11-07  49   * its own kernel -- this alone might be 
enough to ensure secure
06038f35 Sandy Harris 2015-11-07  50   * initialisation, since only an enemy 
who already has root could
06038f35 Sandy Harris 2015-11-07  51   * discover this data. Of course even in 
those cases it should not
06038f35 Sandy Harris 2015-11-07  52   * be used alone, only as one layer of a 
defense in depth.
06038f35 Sandy Harris 2015-11-07  53   *
06038f35 Sandy Harris 2015-11-07  54   * In other cases -- a kernel that is 
compiled once then used in
06038f35 Sandy Harris 2015-11-07  55   * a Linux distro or installed on many 
devices -- this is likely
06038f35 Sandy Harris 2015-11-07  56   * of very little value. It complicates 
an attack somewhat, but
06038f35 Sandy Harris 2015-11-07  57   * it clearly will not stop a serious 
attacker and may not even
06038f35 Sandy Harris 2015-11-07  58   * slow them down much.
06038f35 Sandy Harris 2015-11-07  59   */
06038f35 Sandy Harris 2015-11-07  60  
06038f35 Sandy Harris 2015-11-07 @61  #include 
06038f35 Sandy Harris 2015-11-07  62  #include 
06038f35 Sandy Harris 2015-11-07  63  #include 
06038f35 Sandy Harris 2015-11-07  64  #include 
06038f35 Sandy Harris 2015-11-07  65  #include 
06038f35 Sandy Harris 2015-11-07  66  #include 
06038f35 Sandy Harris 2015-11-07  67  
06038f35 Sandy Harris 2015-11-07  68  /*
06038f35 Sandy Harris 2015-11-07  69   * Configuration information

:: The code at line 61 was first introduced by commit
:: 06038f35641185897feb14917d89d03fab1710ba Produces 
generated/random_init.h for random driver

:: TO: Sandy Harris 
:: 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 v3] keys, trusted: select hash algorithm for TPM2 chips

2015-11-05 Thread kbuild test robot
Hi Jarkko,

[auto build test ERROR on: security/next]
[also build test ERROR on: next-20151105]
[cannot apply to: v4.3]

url:
https://github.com/0day-ci/linux/commits/Jarkko-Sakkinen/keys-trusted-select-hash-algorithm-for-TPM2-chips/20151106-010236
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next
config: x86_64-randconfig-s4-11060055 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> ERROR: "hash_algo_name" [drivers/char/tpm/tpm.ko] undefined!

---
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] keys, trusted: select hash algorithm for TPM2 chips

2015-11-05 Thread kbuild test robot
Hi Jarkko,

[auto build test ERROR on: security/next]
[also build test ERROR on: next-20151105]
[cannot apply to: v4.3]

url:
https://github.com/0day-ci/linux/commits/Jarkko-Sakkinen/keys-trusted-select-hash-algorithm-for-TPM2-chips/20151106-010236
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next
config: i386-randconfig-h0-11060637 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/built-in.o: In function `tpm2_seal_trusted':
>> (.text+0xe3617): undefined reference to `hash_algo_name'

---
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/8] crypto: ux500: Use precalculated hash from headers

2015-10-20 Thread kbuild test robot
Hi LABBE,

[auto build test ERROR on crypto/master -- if it's inappropriate base, please 
suggest rules for selecting the more suitable base]

url:
https://github.com/0day-ci/linux/commits/LABBE-Corentin/crypto-hash-add-zero-length-message-hash-for-shax-and-md5/20151020-154222
config: arm-u8500_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 >>):

   drivers/built-in.o: In function `get_empty_message_digest':
>> drivers/crypto/ux500/hash/hash_core.c:229: undefined reference to 
>> `sha1_zero_message_hash'
>> drivers/crypto/ux500/hash/hash_core.c:229: undefined reference to 
>> `sha1_zero_message_hash'

vim +229 drivers/crypto/ux500/hash/hash_core.c

   223  /**
   224   * Caller responsible for ctx != NULL.
   225   */
   226  
   227  if (HASH_OPER_MODE_HASH == ctx->config.oper_mode) {
   228  if (HASH_ALGO_SHA1 == ctx->config.algorithm) {
 > 229  memcpy(zero_hash, _zero_message_hash[0],
   230 SHA1_DIGEST_SIZE);
   231  *zero_hash_size = SHA1_DIGEST_SIZE;
   232  *zero_digest = true;

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


.config.gz
Description: Binary data


[cryptodev:master 62/67] drivers/char/hw_random/stm32-rng.c:163:51: error: 'pdev' undeclared

2015-10-14 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   62f57d05e287e950c6e1246b1dba08e12985195a
commit: c6a97c42e399ad0d639f616e58e13f0b4ae87626 [62/67] hwrng: stm32 - add 
support for STM32 HW RNG
config: i386-allmodconfig (attached as .config)
reproduce:
git checkout c6a97c42e399ad0d639f616e58e13f0b4ae87626
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/char/hw_random/stm32-rng.c: In function 'stm32_rng_runtime_suspend':
>> drivers/char/hw_random/stm32-rng.c:163:51: error: 'pdev' undeclared (first 
>> use in this function)
 struct stm32_rng_private *priv = dev_get_drvdata(pdev);
  ^
   drivers/char/hw_random/stm32-rng.c:163:51: note: each undeclared identifier 
is reported only once for each function it appears in
   drivers/char/hw_random/stm32-rng.c: In function 'stm32_rng_runtime_resume':
   drivers/char/hw_random/stm32-rng.c:172:51: error: 'pdev' undeclared (first 
use in this function)
 struct stm32_rng_private *priv = dev_get_drvdata(pdev);
  ^

vim +/pdev +163 drivers/char/hw_random/stm32-rng.c

   157  return devm_hwrng_register(dev, >rng);
   158  }
   159  
   160  #ifdef CONFIG_PM
   161  static int stm32_rng_runtime_suspend(struct device *dev)
   162  {
 > 163  struct stm32_rng_private *priv = dev_get_drvdata(pdev);
   164  
   165  stm32_rng_cleanup(>rng);
   166  

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


.config.gz
Description: Binary data


Re: [PATCH v4 4/8] crypto/deflate: support contextless compression API

2015-10-14 Thread kbuild test robot
Hi Joonsoo,

[auto build test ERROR on next-20151013 -- if it's inappropriate base, please 
suggest rules for selecting the more suitable base]

url:
https://github.com/0day-ci/linux/commits/Joonsoo-Kim/zram-introduce-contextless-compression-API-and-use-it-on-zram/20151014-154649
config: i386-randconfig-i0-201541 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   crypto/built-in.o: In function `deflate_mod_fini':
>> deflate.c:(.exit.text+0x2a0): undefined reference to 
>> `crypto_unregister_ccomp'
   crypto/built-in.o: In function `deflate_mod_init':
>> deflate.c:(.init.text+0x525): undefined reference to `crypto_register_ccomp'

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


.config.gz
Description: Binary data


Re: [PATCH v4 3/8] crypto/lz4: support contextless compressiona API

2015-10-14 Thread kbuild test robot
Hi Joonsoo,

[auto build test ERROR on next-20151013 -- if it's inappropriate base, please 
suggest rules for selecting the more suitable base]

url:
https://github.com/0day-ci/linux/commits/Joonsoo-Kim/zram-introduce-contextless-compression-API-and-use-it-on-zram/20151014-154649
config: i386-randconfig-s1-201541 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   crypto/built-in.o: In function `lz4_mod_fini':
>> lz4.c:(.exit.text+0x249): undefined reference to `crypto_unregister_ccomp'
   crypto/built-in.o: In function `lz4_mod_init':
>> lz4.c:(.init.text+0x2f5): undefined reference to `crypto_register_ccomp'

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


.config.gz
Description: Binary data


Re: [PATCH v4 4/8] crypto/deflate: support contextless compression API

2015-10-14 Thread kbuild test robot
Hi Joonsoo,

[auto build test ERROR on next-20151013 -- if it's inappropriate base, please 
suggest rules for selecting the more suitable base]

url:
https://github.com/0day-ci/linux/commits/Joonsoo-Kim/zram-introduce-contextless-compression-API-and-use-it-on-zram/20151014-154649
config: parisc-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=parisc 

All errors (new ones prefixed by >>):

   crypto/built-in.o: In function `deflate_mod_fini':
>> crypto/deflate.o:(.exit.text+0x278): undefined reference to 
>> `crypto_unregister_ccomp'
   crypto/built-in.o: In function `deflate_mod_init':
>> crypto/deflate.o:(.init.text+0x31c): undefined reference to 
>> `crypto_register_ccomp'

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


.config.gz
Description: Binary data


Re: [PATCH v4 4/8] crypto/deflate: support contextless compression API

2015-10-14 Thread kbuild test robot
Hi Joonsoo,

[auto build test ERROR on next-20151013 -- if it's inappropriate base, please 
suggest rules for selecting the more suitable base]

url:
https://github.com/0day-ci/linux/commits/Joonsoo-Kim/zram-introduce-contextless-compression-API-and-use-it-on-zram/20151014-154649
config: m32r-usrv_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 errors (new ones prefixed by >>):

   crypto/built-in.o: In function `deflate_mod_init':
>> crypto/deflate.c:280: undefined reference to `crypto_register_ccomp'
   crypto/deflate.c:280:(.init.text+0x244): relocation truncated to fit: 
R_M32R_26_PCREL_RELA against undefined symbol `crypto_register_ccomp'

vim +280 crypto/deflate.c

   274  int ret;
   275  
   276  ret = crypto_register_alg();
   277  if (ret)
   278  return ret;
   279  
 > 280  ret = crypto_register_ccomp();
   281  if (ret) {
   282  crypto_unregister_alg();
   283  return ret;

---
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: Allow drivers to build if COMPILE_TEST is enabled

2015-10-13 Thread kbuild test robot
Hi Javier,

[auto build test WARNING on cryptodev/master -- if it's inappropriate base, 
please suggest rules for selecting the more suitable base]

url:
https://github.com/0day-ci/linux/commits/Javier-Martinez-Canillas/crypto-Allow-drivers-to-build-if-COMPILE_TEST-is-enabled/20151013-214554
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/crypto/s5p-sss.c:385:17: sparse: incorrect type in argument 1 
>> (different address spaces)
   drivers/crypto/s5p-sss.c:385:17:expected void *to
   drivers/crypto/s5p-sss.c:385:17:got void [noderef] *
>> drivers/crypto/s5p-sss.c:394:9: sparse: incorrect type in argument 1 
>> (different address spaces)
   drivers/crypto/s5p-sss.c:394:9:expected void *to
   drivers/crypto/s5p-sss.c:394:9:got void [noderef] *[assigned] 
keystart
--
>> drivers/crypto/marvell/cesa.c:327:30: sparse: incorrect type in assignment 
>> (different address spaces)
   drivers/crypto/marvell/cesa.c:327:30:expected void [noderef] *sram
   drivers/crypto/marvell/cesa.c:327:30:got void *
--
>> drivers/crypto/marvell/cipher.c:93:47: sparse: incorrect type in argument 3 
>> (different address spaces)
   drivers/crypto/marvell/cipher.c:93:47:expected void *buf
   drivers/crypto/marvell/cipher.c:93: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:101:17: sparse: incorrect type in argument 1 
>> (different address spaces)
   drivers/crypto/marvell/cipher.c:101:17:expected void *to
   drivers/crypto/marvell/cipher.c:101:17:got void [noderef] *sram
   drivers/crypto/marvell/cipher.c:104:17: sparse: incorrect type in argument 1 
(different address spaces)
   drivers/crypto/marvell/cipher.c:104:17:expected void *to
   drivers/crypto/marvell/cipher.c:104:17:got void [noderef] *sram
>> drivers/crypto/marvell/cipher.c:121:49: sparse: incorrect type in argument 3 
>> (different address spaces)
   drivers/crypto/marvell/cipher.c:121:49:expected void const *buf
   drivers/crypto/marvell/cipher.c:121:49:got void [noderef] *
>> drivers/crypto/marvell/cipher.c:148:9: sparse: incorrect type in argument 2 
>> (different address spaces)
   drivers/crypto/marvell/cipher.c:148:9:expected void const *from
   drivers/crypto/marvell/cipher.c:148:9:got void [noderef] *
>> drivers/crypto/marvell/cipher.c:246:41: sparse: incorrect type in assignment 
>> (different base types)
   drivers/crypto/marvell/cipher.c:246:41:expected unsigned int [unsigned] 

   drivers/crypto/marvell/cipher.c:246: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:349:60: sparse: incorrect type in argument 2 
>> (different base types)
   drivers/crypto/marvell/cipher.c:349:60:expected unsigned int [unsigned] 
[usertype] flags
   drivers/crypto/marvell/cipher.c:349: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: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] 

>> 

Re: [PATCH 8/8] crypto: testmgr: Use the xxx_zero_message_hash from headers

2015-10-12 Thread kbuild test robot
Hi LABBE,

[auto build test ERROR on crypto/master -- if it's inappropriate base, please 
suggest rules for selecting the more suitable base]

url:
https://github.com/0day-ci/linux/commits/LABBE-Corentin/crypto-hash-add-zero-length-message-hash-for-shax-and-md5/20151013-005943
config: arm-mmp (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/testmgr.c:48:0:
>> crypto/testmgr.h:370:13: error: 'md5_zero_message_hash' undeclared here (not 
>> in a function)
  .digest = md5_zero_message_hash,
^
>> crypto/testmgr.h:715:13: error: 'sha1_zero_message_hash' undeclared here 
>> (not in a function)
  .digest = sha1_zero_message_hash,
^
>> crypto/testmgr.h:715:3: error: initializer element is not constant
  .digest = sha1_zero_message_hash,
  ^
   crypto/testmgr.h:715:3: error: (near initialization for 
'sha1_tv_template[0].digest')
>> crypto/testmgr.h:906:13: error: 'sha224_zero_message_hash' undeclared here 
>> (not in a function)
  .digest = sha224_zero_message_hash,
^
   crypto/testmgr.h:906:3: error: initializer element is not constant
  .digest = sha224_zero_message_hash,
  ^
   crypto/testmgr.h:906:3: error: (near initialization for 
'sha224_tv_template[0].digest')
>> crypto/testmgr.h:1077:13: error: 'sha256_zero_message_hash' undeclared here 
>> (not in a function)
  .digest = sha256_zero_message_hash,
^
   crypto/testmgr.h:1077:3: error: initializer element is not constant
  .digest = sha256_zero_message_hash,
  ^
   crypto/testmgr.h:1077:3: error: (near initialization for 
'sha256_tv_template[0].digest')

vim +/md5_zero_message_hash +370 crypto/testmgr.h

   364   * MD5 test vectors from RFC1321
   365   */
   366  #define MD5_TEST_VECTORS7
   367  
   368  static struct hash_testvec md5_tv_template[] = {
   369  {
 > 370  .digest = md5_zero_message_hash,
   371  }, {
   372  .plaintext = "a",
   373  .psize  = 1,

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


.config.gz
Description: Binary data


Re: [PATCH 2/3] hwrng: stm32 - add support for STM32 HW RNG

2015-10-03 Thread kbuild test robot
Hi Daniel,

[auto build test results on v4.3-rc3 -- if it's inappropriate base, please 
ignore]


coccinelle warnings: (new ones prefixed by >>)

>> drivers/char/hw_random/stm32-rng.c:164:1-4: WARNING: end returns can be 
>> simpified

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] hwrng: fix simple_return.cocci warnings

2015-10-03 Thread kbuild test robot
drivers/char/hw_random/stm32-rng.c:164:1-4: WARNING: end returns can be 
simpified

 Simplify a trivial if-return sequence.  Possibly combine with a
 preceding function call.

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

CC: Daniel Thompson 
Signed-off-by: Fengguang Wu 
---

 stm32-rng.c |6 +-
 1 file changed, 1 insertion(+), 5 deletions(-)

--- a/drivers/char/hw_random/stm32-rng.c
+++ b/drivers/char/hw_random/stm32-rng.c
@@ -161,11 +161,7 @@ static int stm32_rng_probe(struct platfo
priv->rng.read = stm32_rng_read,
priv->rng.priv = (unsigned long) dev;
 
-   err = hwrng_register(>rng);
-   if (err)
-   return err;
-
-   return 0;
+   return hwrng_register(>rng);
 }
 
 static const struct of_device_id stm32_rng_match[] = {
--
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 144/146] drivers/crypto/nx/nx.h:153:39: warning: 'struct crypto_aead' declared inside parameter list

2015-08-17 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git 
master
head:   58268e58e63550e24dee7d6125078ab2a2a22272
commit: b0d955ba4688fcba8112884931aea1f1e6f50f03 [144/146] crypto: aead - 
Remove old AEAD interfaces
config: powerpc-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 b0d955ba4688fcba8112884931aea1f1e6f50f03
  # save the attached .config to linux build tree
  make.cross ARCH=powerpc 

All warnings (new ones prefixed by ):

   In file included from drivers/crypto/nx/nx_debugfs.c:33:0:
 drivers/crypto/nx/nx.h:153:39: warning: 'struct crypto_aead' declared inside 
 parameter list
int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm);
  ^
 drivers/crypto/nx/nx.h:153:39: warning: its scope is only this definition or 
 declaration, which is probably not what you want
   drivers/crypto/nx/nx.h:154:39: warning: 'struct crypto_aead' declared inside 
parameter list
int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm);
  ^
   drivers/crypto/nx/nx.h:161:37: warning: 'struct crypto_aead' declared inside 
parameter list
void nx_crypto_ctx_aead_exit(struct crypto_aead *tfm);
^

vim +153 drivers/crypto/nx/nx.h

ae0222b7 Kent Yoder 2012-05-14  137 struct nx_sg *out_sg; /* aligned 
pointer into kmem to an sg list */
ae0222b7 Kent Yoder 2012-05-14  138  
ae0222b7 Kent Yoder 2012-05-14  139 struct alg_props *ap; /* pointer 
into props based on our key size */
ae0222b7 Kent Yoder 2012-05-14  140 struct alg_props props[3];/* 
openFirmware properties for requests */
ae0222b7 Kent Yoder 2012-05-14  141 struct nx_stats *stats;   /* pointer 
into an nx_crypto_driver for stats
ae0222b7 Kent Yoder 2012-05-14  142  reporting 
*/
ae0222b7 Kent Yoder 2012-05-14  143  
ae0222b7 Kent Yoder 2012-05-14  144 union {
ae0222b7 Kent Yoder 2012-05-14  145 struct nx_gcm_priv gcm;
ae0222b7 Kent Yoder 2012-05-14  146 struct nx_ccm_priv ccm;
ae0222b7 Kent Yoder 2012-05-14  147 struct nx_xcbc_priv xcbc;
ae0222b7 Kent Yoder 2012-05-14  148 struct nx_ctr_priv ctr;
ae0222b7 Kent Yoder 2012-05-14  149 } priv;
ae0222b7 Kent Yoder 2012-05-14  150  };
ae0222b7 Kent Yoder 2012-05-14  151  
ae0222b7 Kent Yoder 2012-05-14  152  /* prototypes */
cc815653 Herbert Xu 2015-07-14 @153  int nx_crypto_ctx_aes_ccm_init(struct 
crypto_aead *tfm);
201f28f0 Herbert Xu 2015-06-16  154  int nx_crypto_ctx_aes_gcm_init(struct 
crypto_aead *tfm);
ae0222b7 Kent Yoder 2012-05-14  155  int nx_crypto_ctx_aes_xcbc_init(struct 
crypto_tfm *tfm);
ae0222b7 Kent Yoder 2012-05-14  156  int nx_crypto_ctx_aes_ctr_init(struct 
crypto_tfm *tfm);
ae0222b7 Kent Yoder 2012-05-14  157  int nx_crypto_ctx_aes_cbc_init(struct 
crypto_tfm *tfm);
ae0222b7 Kent Yoder 2012-05-14  158  int nx_crypto_ctx_aes_ecb_init(struct 
crypto_tfm *tfm);
ae0222b7 Kent Yoder 2012-05-14  159  int nx_crypto_ctx_sha_init(struct 
crypto_tfm *tfm);
ae0222b7 Kent Yoder 2012-05-14  160  void nx_crypto_ctx_exit(struct crypto_tfm 
*tfm);
201f28f0 Herbert Xu 2015-06-16  161  void nx_crypto_ctx_aead_exit(struct 
crypto_aead *tfm);

:: The code at line 153 was first introduced by commit
:: cc81565307822a062820da294c17d9f3b6f49ecd crypto: nx - Convert ccm to new 
AEAD interface

:: TO: Herbert Xu herb...@gondor.apana.org.au
:: CC: Herbert Xu herb...@gondor.apana.org.au

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
#
# Automatically generated file; DO NOT EDIT.
# Linux/powerpc 4.2.0-rc1 Kernel Configuration
#
CONFIG_PPC64=y

#
# Processor support
#
CONFIG_PPC_BOOK3S_64=y
# CONFIG_PPC_BOOK3E_64 is not set
CONFIG_GENERIC_CPU=y
# CONFIG_CELL_CPU is not set
# CONFIG_POWER4_CPU is not set
# CONFIG_POWER5_CPU is not set
# CONFIG_POWER6_CPU is not set
# CONFIG_POWER7_CPU is not set
# CONFIG_POWER8_CPU is not set
CONFIG_PPC_BOOK3S=y
# CONFIG_TUNE_CELL is not set
CONFIG_PPC_FPU=y
CONFIG_ALTIVEC=y
CONFIG_VSX=y
# CONFIG_PPC_ICSWX is not set
CONFIG_PPC_STD_MMU=y
CONFIG_PPC_STD_MMU_64=y
CONFIG_PPC_MM_SLICES=y
CONFIG_PPC_HAVE_PMU_SUPPORT=y
CONFIG_PPC_PERF_CTRS=y
CONFIG_SMP=y
CONFIG_NR_CPUS=32
CONFIG_PPC_DOORBELL=y
CONFIG_VDSO32=y
CONFIG_CPU_BIG_ENDIAN=y
# CONFIG_CPU_LITTLE_ENDIAN is not set
CONFIG_64BIT=y
CONFIG_WORD_SIZE=64
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
CONFIG_MMU=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NR_IRQS=512
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_ARCH_HAS_ILOG2_U32=y

[cryptodev:master 139/146] crypto/aead.c:770: undefined reference to `crypto_get_default_null_skcipher'

2015-08-17 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git 
master
head:   58268e58e63550e24dee7d6125078ab2a2a22272
commit: 149a39717dcce3b6ba15285c9fc86e4423437e05 [139/146] crypto: aead - Add 
type-safe geniv init/exit helpers
config: microblaze-mmu_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 149a39717dcce3b6ba15285c9fc86e4423437e05
  # save the attached .config to linux build tree
  make.cross ARCH=microblaze 

All error/warnings (new ones prefixed by ):

   crypto/built-in.o: In function `aead_init_geniv':
 crypto/aead.c:770: undefined reference to `crypto_get_default_null_skcipher'
 crypto/aead.c:790: undefined reference to `crypto_put_default_null_skcipher'
   crypto/built-in.o: In function `aead_exit_geniv':
   crypto/aead.c:800: undefined reference to `crypto_put_default_null_skcipher'

vim +770 crypto/aead.c

   764  err = crypto_rng_get_bytes(crypto_default_rng, ctx-salt,
   765 crypto_aead_ivsize(aead));
   766  crypto_put_default_rng();
   767  if (err)
   768  goto out;
   769  
  770  ctx-null = crypto_get_default_null_skcipher();
   771  err = PTR_ERR(ctx-null);
   772  if (IS_ERR(ctx-null))
   773  goto out;
   774  
   775  child = crypto_spawn_aead(aead_instance_ctx(inst));
   776  err = PTR_ERR(child);
   777  if (IS_ERR(child))
   778  goto drop_null;
   779  
   780  ctx-child = child;
   781  crypto_aead_set_reqsize(aead, crypto_aead_reqsize(child) +
   782sizeof(struct aead_request));
   783  
   784  err = 0;
   785  
   786  out:
   787  return err;
   788  
   789  drop_null:
  790  crypto_put_default_null_skcipher();
   791  goto out;
   792  }
   793  EXPORT_SYMBOL_GPL(aead_init_geniv);

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
#
# Automatically generated file; DO NOT EDIT.
# Linux/microblaze 4.2.0-rc1 Kernel Configuration
#
CONFIG_MICROBLAZE=y
# CONFIG_SWAP is not set
CONFIG_RWSEM_GENERIC_SPINLOCK=y
CONFIG_ZONE_DMA=y
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
# CONFIG_ARCH_HAS_ILOG2_U64 is not set
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_GENERIC_CSUM=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_DEFCONFIG_LIST=/lib/modules/$UNAME_RELEASE/.config
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_EXTABLE_SORT=y

#
# General setup
#
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=
CONFIG_LOCALVERSION_AUTO=y
CONFIG_DEFAULT_HOSTNAME=(none)
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
CONFIG_CROSS_MEMORY_ATTACH=y
CONFIG_FHANDLE=y
CONFIG_USELIB=y
CONFIG_AUDIT=y

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_IRQ_DOMAIN=y
CONFIG_GENERIC_CLOCKEVENTS=y

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

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

#
# RCU Subsystem
#
CONFIG_TINY_RCU=y
# CONFIG_RCU_EXPERT is not set
CONFIG_SRCU=y
# CONFIG_TASKS_RCU is not set
# CONFIG_RCU_STALL_COMMON is not set
# CONFIG_TREE_RCU_TRACE is not set
# CONFIG_RCU_EXPEDITE_BOOT is not set
CONFIG_BUILD_BIN2C=y
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_LOG_BUF_SHIFT=17
CONFIG_GENERIC_SCHED_CLOCK=y
# CONFIG_CGROUPS is not set
# CONFIG_CHECKPOINT_RESTORE is not set
# CONFIG_NAMESPACES is not set
# CONFIG_SCHED_AUTOGROUP is not set
CONFIG_SYSFS_DEPRECATED=y
CONFIG_SYSFS_DEPRECATED_V2=y
# CONFIG_RELAY is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SYSCTL=y
CONFIG_ANON_INODES=y
CONFIG_BPF=y
CONFIG_EXPERT=y
CONFIG_MULTIUSER=y
CONFIG_SGETMASK_SYSCALL=y
CONFIG_SYSFS_SYSCALL=y
# CONFIG_SYSCTL_SYSCALL is not set
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
# CONFIG_BASE_FULL is not set
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
# CONFIG_BPF_SYSCALL is not set
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_ADVISE_SYSCALLS=y
CONFIG_PCI_QUIRKS=y
CONFIG_EMBEDDED=y

#
# Kernel Performance Events And Counters
#
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_COMPAT_BRK=y
CONFIG_SLAB=y
# CONFIG_SLUB is not set
# CONFIG_SLOB is not set
# CONFIG_SYSTEM_TRUSTED_KEYRING is not set
# CONFIG_PROFILING is not set
CONFIG_HAVE_OPROFILE=y
# CONFIG_UPROBES is not set
# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set

[cryptodev:master 147/148] gcm.c:undefined reference to `crypto_put_default_null_skcipher'

2015-08-17 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git 
master
head:   9129c26da1711aba1e6295c28de8814301869732
commit: a26bcb04861db3061bb7db11ce905aa037111f81 [147/148] crypto: null - Use 
NULL2 in Makefile
config: i386-randconfig-i1-201533 (attached as .config)
reproduce:
  git checkout a26bcb04861db3061bb7db11ce905aa037111f81
  # save the attached .config to linux build tree
  make ARCH=i386 

All error/warnings (new ones prefixed by ):

   crypto/built-in.o: In function `aead_init_geniv':
   (.text+0x1ddf): undefined reference to `crypto_get_default_null_skcipher'
   crypto/built-in.o: In function `aead_init_geniv':
   (.text+0x1e14): undefined reference to `crypto_put_default_null_skcipher'
   crypto/built-in.o: In function `aead_exit_geniv':
   (.text+0x1e31): undefined reference to `crypto_put_default_null_skcipher'
   crypto/built-in.o: In function `crypto_rfc4543_exit_tfm':
 gcm.c:(.text+0x140e5): undefined reference to 
 `crypto_put_default_null_skcipher'
   crypto/built-in.o: In function `crypto_rfc4543_init_tfm':
 gcm.c:(.text+0x1410b): undefined reference to 
 `crypto_get_default_null_skcipher'

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
#
# Automatically generated file; DO NOT EDIT.
# Linux/i386 4.2.0-rc1 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_LAZY_GS=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_IRQ_WORK=y
CONFIG_BUILDTIME_EXTABLE_SORT=y

#
# General setup
#
CONFIG_BROKEN_ON_SMP=y
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=y
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
CONFIG_DEFAULT_HOSTNAME=(none)
# CONFIG_SYSVIPC is not set
# CONFIG_POSIX_MQUEUE is not set
CONFIG_CROSS_MEMORY_ATTACH=y
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_CHIP=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_DOMAIN_HIERARCHY=y
# CONFIG_IRQ_DOMAIN_DEBUG is not set
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_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
CONFIG_NO_HZ=y
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_PREEMPT_RCU=y
CONFIG_RCU_EXPERT=y
CONFIG_SRCU=y
# CONFIG_TASKS_RCU is not set
CONFIG_RCU_STALL_COMMON=y
CONFIG_RCU_FANOUT=32
CONFIG_RCU_FANOUT_LEAF=16
# CONFIG_TREE_RCU_TRACE is not set
# CONFIG_RCU_BOOST is not set
CONFIG_RCU_KTHREAD_PRIO=0
# CONFIG_RCU_NOCB_CPU is not set
# 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_HAVE_UNSTABLE_SCHED_CLOCK=y
CONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not set
# CONFIG_CGROUP_FREEZER is not set
CONFIG_CGROUP_DEVICE=y
CONFIG_CPUSETS=y
# CONFIG_PROC_PID_CPUSET is not set
# CONFIG_CGROUP_CPUACCT is not set
# CONFIG_MEMCG is not set
# CONFIG_CGROUP_PERF is not set
CONFIG_CGROUP_SCHED=y
# CONFIG_FAIR_GROUP_SCHED is not set
CONFIG_RT_GROUP_SCHED=y
CONFIG_CHECKPOINT_RESTORE=y
# CONFIG_NAMESPACES is not 

[cryptodev:master 144/149] DockBook: Warning(include/crypto/aead.h): no structured comments found

2015-08-17 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git 
master
head:   dd43c4e92fbb135dcbf02845578db60be56a453a
commit: b0d955ba4688fcba8112884931aea1f1e6f50f03 [144/149] crypto: aead - 
Remove old AEAD interfaces
reproduce: make htmldocs

All warnings (new ones prefixed by ):

   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
 Warning(include/crypto/aead.h): no structured comments found
   Was looking for 'aead_request_set_assoc'.
   Warning(include/crypto/aead.h:98): Excess struct/union/enum/typedef member 
'__ctx' description in 'aead_request'
   Warning(include/crypto/aead.h:149): No description found for parameter 'base'
   Warning(include/crypto/hash.h:188): No description found for parameter 
'hash_alg_common'
   Warning(include/crypto/hash.h:188): Excess struct/union/enum/typedef member 
'digestsize' description in 'shash_alg'
   Warning(include/crypto/hash.h:188): No description found for parameter 
'hash_alg_common'
   Warning(include/crypto/hash.h:188): Excess struct/union/enum/typedef member 
'digestsize' description in 

[cryptodev:master 118/125] drivers/crypto/qat/qat_common/adf_sriov.c:258:1-4: WARNING: end returns can be simpified and declaration on line 212 can be dropped

2015-08-11 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git 
master
head:   d5cf4023ebcbae13e14e3ab3c55cb744321b352e
commit: ed8ccaef52fa03fb03cff45b380f72c9f869f273 [118/125] crypto: qat - Add 
support for SRIOV


coccinelle warnings: (new ones prefixed by )

 drivers/crypto/qat/qat_common/adf_sriov.c:258:1-4: WARNING: end returns can 
 be simpified and declaration on line 212 can be dropped

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 simple_return.cocci warnings

2015-08-11 Thread kbuild test robot
drivers/crypto/qat/qat_common/adf_sriov.c:258:1-4: WARNING: end returns can be 
simpified and declaration on line 212 can be dropped

 Simplify a trivial if-return sequence.  Possibly combine with a
 preceding function call.
Generated by: scripts/coccinelle/misc/simple_return.cocci

CC: Tadeusz Struk tadeusz.st...@intel.com
Signed-off-by: Fengguang Wu fengguang...@intel.com
---

 adf_sriov.c |8 ++--
 1 file changed, 2 insertions(+), 6 deletions(-)

--- a/drivers/crypto/qat/qat_common/adf_sriov.c
+++ b/drivers/crypto/qat/qat_common/adf_sriov.c
@@ -209,7 +209,7 @@ static int adf_enable_sriov(struct adf_a
GET_BARS(accel_dev)[hw_data-get_misc_bar_id(hw_data)];
void __iomem *pmisc_addr = pmisc-virt_addr;
struct adf_accel_vf_info *vf_info;
-   int i, ret;
+   int i;
u32 reg;
 
/* Workqueue for PF2VF responses */
@@ -255,11 +255,7 @@ static int adf_enable_sriov(struct adf_a
 * order for all the hardware resources (i.e. bundles) to be usable.
 * When SR-IOV is enabled, each of the VFs will own one bundle.
 */
-   ret = pci_enable_sriov(pdev, totalvfs);
-   if (ret)
-   return ret;
-
-   return 0;
+   return pci_enable_sriov(pdev, totalvfs);
 }
 
 /**
--
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 91/97] authenc.c:undefined reference to `crypto_put_default_null_skcipher'

2015-08-04 Thread kbuild test robot
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git 
master
head:   a4198fd4b487afc60810f5a12b994721df220022
commit: 92d95ba91772279b6ef9c6e09661f67abcf27259 [91/97] crypto: authenc - 
Convert to new AEAD interface
config: i386-randconfig-i0-201531 (attached as .config)
reproduce:
  git checkout 92d95ba91772279b6ef9c6e09661f67abcf27259
  # save the attached .config to linux build tree
  make ARCH=i386 

All error/warnings (new ones prefixed by ):

   crypto/built-in.o: In function `crypto_authenc_exit_tfm':
 authenc.c:(.text+0x19141): undefined reference to 
 `crypto_put_default_null_skcipher'
   crypto/built-in.o: In function `crypto_authenc_init_tfm':
 authenc.c:(.text+0x19198): undefined reference to 
 `crypto_get_default_null_skcipher'

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
#
# Automatically generated file; DO NOT EDIT.
# Linux/i386 4.2.0-rc1 Kernel Configuration
#
# CONFIG_64BIT is not set
CONFIG_X86_32=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=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_32_LAZY_GS=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_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_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_PENDING_IRQ=y
CONFIG_GENERIC_IRQ_CHIP=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_DOMAIN_HIERARCHY=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_HZ_PERIODIC=y
# CONFIG_NO_HZ_IDLE is not set
CONFIG_NO_HZ=y
# CONFIG_HIGH_RES_TIMERS is not set

#
# 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_RCU_EXPERT is not set
CONFIG_SRCU=y
# CONFIG_TASKS_RCU is not set
CONFIG_RCU_STALL_COMMON=y
CONFIG_TREE_RCU_TRACE=y
# CONFIG_RCU_NOCB_CPU is not set
# 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 is not set
CONFIG_CPUSETS=y
# CONFIG_PROC_PID_CPUSET is not set
# CONFIG_CGROUP_CPUACCT is not set
CONFIG_PAGE_COUNTER=y
CONFIG_MEMCG=y
CONFIG_MEMCG_KMEM=y
CONFIG_CGROUP_PERF=y
# CONFIG_CGROUP_SCHED is not set
CONFIG_CHECKPOINT_RESTORE=y
# CONFIG_NAMESPACES is not set
# CONFIG_SCHED_AUTOGROUP is not set
# CONFIG_SYSFS_DEPRECATED is not set
CONFIG_RELAY=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=
CONFIG_RD_GZIP=y
CONFIG_RD_BZIP2=y
CONFIG_RD_LZMA=y
CONFIG_RD_XZ=y
CONFIG_RD_LZO=y
CONFIG_RD_LZ4=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SYSCTL=y
CONFIG_ANON_INODES=y
CONFIG_HAVE_UID16=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
CONFIG_HAVE_PCSPKR_PLATFORM=y
CONFIG_BPF=y
CONFIG_EXPERT=y
CONFIG_UID16=y
CONFIG_MULTIUSER=y
CONFIG_SGETMASK_SYSCALL=y
CONFIG_SYSFS_SYSCALL=y
# 

[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] asn:2*
   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] 
noident
   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] asn:2*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] asn:2*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] asn:2*
   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] asn:2*
   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] 
noident
   drivers/crypto/marvell/cipher.c:235:41:got restricted __le32 [usertype] 
noident
   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] 
noident
 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] 
noident
   drivers/crypto/marvell/cipher.c:383:44:got restricted __le32 [usertype] 
noident
   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] 
noident
   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] 
noident
   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 

[cryptodev:master 272/278] drivers/crypto/marvell/hash.c:356:48: sparse: incorrect type in assignment (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: 7aeef693d18d359134f47bf7b6621ec303b570f9 [272/278] crypto: marvell/cesa 
- add MD5 support
reproduce:
  # apt-get install sparse
  git checkout 7aeef693d18d359134f47bf7b6621ec303b570f9
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by )

   drivers/crypto/marvell/hash.c:206:17: sparse: incorrect type in argument 1 
(different address spaces)
   drivers/crypto/marvell/hash.c:206:17:expected void *to
   drivers/crypto/marvell/hash.c:206:17:got void [noderef] asn:2*
   drivers/crypto/marvell/hash.c:220:77: sparse: incorrect type in argument 3 
(different address spaces)
   drivers/crypto/marvell/hash.c:220:77:expected void *buf
   drivers/crypto/marvell/hash.c:220:77:got void [noderef] asn:2*
   drivers/crypto/marvell/cesa.h:631:16: sparse: cast to restricted __le32
   drivers/crypto/marvell/cesa.h:663:28: sparse: invalid assignment: |=
   drivers/crypto/marvell/cesa.h:663:28:left side has type unsigned int
   drivers/crypto/marvell/cesa.h:663:28:right side has type restricted 
__le32
   drivers/crypto/marvell/hash.c:248:33: sparse: incorrect type in argument 2 
(different address spaces)
   drivers/crypto/marvell/hash.c:248:33:expected void const *from
   drivers/crypto/marvell/hash.c:248:33:got void [noderef] asn:2*
   drivers/crypto/marvell/hash.c:254:68: sparse: incorrect type in argument 2 
(different address spaces)
   drivers/crypto/marvell/hash.c:254:68:expected unsigned char [usertype] 
*buf
   drivers/crypto/marvell/hash.c:254:68:got void [noderef] asn:2*
   drivers/crypto/marvell/cesa.h:670:29: sparse: invalid assignment: |=
   drivers/crypto/marvell/cesa.h:670:29:left side has type unsigned int
   drivers/crypto/marvell/cesa.h:670:29:right side has type restricted 
__le32
   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/hash.c:269:9: sparse: incorrect type in argument 1 
(different address spaces)
   drivers/crypto/marvell/hash.c:269:9:expected void *to
   drivers/crypto/marvell/hash.c:269:9:got void [noderef] asn:2*sram
   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:644:24: sparse: incorrect type in assignment 
(different base types)
   drivers/crypto/marvell/cesa.h:644:24:expected unsigned int [unsigned] 
[usertype] enc_p
   drivers/crypto/marvell/cesa.h:644:24:got restricted __le32 [usertype] 
noident
   drivers/crypto/marvell/cesa.h:645:28: sparse: incorrect type in assignment 
(different base types)
   drivers/crypto/marvell/cesa.h:645:28:expected unsigned int [unsigned] 
[usertype] enc_key_p
   drivers/crypto/marvell/cesa.h:645:28:got restricted __le32 [usertype] 
noident
   drivers/crypto/marvell/cesa.h:646:25: sparse: incorrect type in assignment 
(different base types)
   drivers/crypto/marvell/cesa.h:646:25:expected unsigned int [unsigned] 
[usertype] enc_iv
   drivers/crypto/marvell/cesa.h:646:25:got restricted __le32 [usertype] 
noident
   drivers/crypto/marvell/cesa.h:648:28: sparse: invalid assignment: |=
   drivers/crypto/marvell/cesa.h:648:28:left side has type unsigned int
   drivers/crypto/marvell/cesa.h:648:28:right side has type restricted 
__le32
   drivers/crypto/marvell/cesa.h:650:29: sparse: invalid assignment: |=
   drivers/crypto/marvell/cesa.h:650:29:left side has type unsigned int
   drivers/crypto/marvell/cesa.h:650:29:right side has type restricted 
__le32
   drivers/crypto/marvell/cesa.h:651:25: sparse: incorrect type in assignment 
(different base types)
   drivers/crypto/marvell/cesa.h:651:25:expected unsigned int [unsigned] 
[usertype] mac_iv
   drivers/crypto/marvell/cesa.h:651:25:got restricted __le32 [usertype] 
noident
   drivers/crypto/marvell/hash.c:309:9: sparse: incorrect type in argument 1 
(different address spaces)
   drivers/crypto/marvell/hash.c:309:9:expected void *to
   drivers/crypto/marvell/hash.c:309:9:got void [noderef] asn:2*sram
   

[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_PAGE_COUNTER=y

<    1   2