Re: [Patch V5 7/7] crypto: AES CBC multi-buffer tcrypt

2017-04-20 Thread kbuild test robot
Hi Megha,

[auto build test WARNING on next-20170420]
[also build test WARNING on v4.11-rc7]
[cannot apply to crypto/master sparc-next/master v4.9-rc8 v4.9-rc7 v4.9-rc6]
[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/Megha-Dey/crypto-AES-CBC-multibuffer-implementation/20170421-064210
config: parisc-c3000_defconfig (attached as .config)
compiler: hppa-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=parisc 

All warnings (new ones prefixed by >>):

   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/aead.h:16,
from crypto/tcrypt.c:27:
   crypto/tcrypt.c: In function 'test_mb_acipher_cycles':
>> include/linux/kern_levels.h:4:18: warning: format '%llu' expects argument of 
>> type 'long long unsigned int', but argument 2 has type 'long unsigned int' 
>> [-Wformat=]
#define KERN_SOH "\001"  /* ASCII Start Of Header */
 ^
   include/linux/kern_levels.h:23:19: note: in expansion of macro 'KERN_SOH'
#define KERN_CONT KERN_SOH "c"
  ^~~~
>> include/linux/printk.h:315:9: note: in expansion of macro 'KERN_CONT'
 printk(KERN_CONT fmt, ##__VA_ARGS__)
^
>> crypto/tcrypt.c:1082:3: note: in expansion of macro 'pr_cont'
  pr_cont("1 operation in %llu cycles (%d bytes)\n",
  ^~~

vim +/KERN_CONT +315 include/linux/printk.h

a0cba217 Linus Torvalds 2016-08-09  299 printk(KERN_CRIT pr_fmt(fmt), 
##__VA_ARGS__)
a0cba217 Linus Torvalds 2016-08-09  300  #define pr_err(fmt, ...) \
a0cba217 Linus Torvalds 2016-08-09  301 printk(KERN_ERR pr_fmt(fmt), 
##__VA_ARGS__)
a0cba217 Linus Torvalds 2016-08-09  302  #define pr_warning(fmt, ...) \
a0cba217 Linus Torvalds 2016-08-09  303 printk(KERN_WARNING 
pr_fmt(fmt), ##__VA_ARGS__)
a0cba217 Linus Torvalds 2016-08-09  304  #define pr_warn pr_warning
a0cba217 Linus Torvalds 2016-08-09  305  #define pr_notice(fmt, ...) \
a0cba217 Linus Torvalds 2016-08-09  306 printk(KERN_NOTICE pr_fmt(fmt), 
##__VA_ARGS__)
a0cba217 Linus Torvalds 2016-08-09  307  #define pr_info(fmt, ...) \
a0cba217 Linus Torvalds 2016-08-09  308 printk(KERN_INFO pr_fmt(fmt), 
##__VA_ARGS__)
7b1460ec Steven Rostedt 2015-04-15  309  /*
7b1460ec Steven Rostedt 2015-04-15  310   * Like KERN_CONT, pr_cont() should 
only be used when continuing
7b1460ec Steven Rostedt 2015-04-15  311   * a line with no newline ('\n') 
enclosed. Otherwise it defaults
7b1460ec Steven Rostedt 2015-04-15  312   * back to KERN_DEFAULT.
7b1460ec Steven Rostedt 2015-04-15  313   */
968ab183 Linus Torvalds 2010-11-15  314  #define pr_cont(fmt, ...) \
968ab183 Linus Torvalds 2010-11-15 @315 printk(KERN_CONT fmt, 
##__VA_ARGS__)
968ab183 Linus Torvalds 2010-11-15  316  
968ab183 Linus Torvalds 2010-11-15  317  /* pr_devel() should produce zero code 
unless DEBUG is defined */
968ab183 Linus Torvalds 2010-11-15  318  #ifdef DEBUG
968ab183 Linus Torvalds 2010-11-15  319  #define pr_devel(fmt, ...) \
968ab183 Linus Torvalds 2010-11-15  320 printk(KERN_DEBUG pr_fmt(fmt), 
##__VA_ARGS__)
968ab183 Linus Torvalds 2010-11-15  321  #else
968ab183 Linus Torvalds 2010-11-15  322  #define pr_devel(fmt, ...) \
5264f2f7 Joe Perches2011-01-12  323 no_printk(KERN_DEBUG 
pr_fmt(fmt), ##__VA_ARGS__)

:: The code at line 315 was first introduced by commit
:: 968ab1838a5d48f02f5b471aa1d0e59e2cc2ccbc include/linux/kernel.h: Move 
logging bits to include/linux/printk.h

:: 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: application/gzip


Re: [Patch V5 7/7] crypto: AES CBC multi-buffer tcrypt

2017-04-20 Thread kbuild test robot
Hi Megha,

[auto build test WARNING on next-20170420]
[also build test WARNING on v4.11-rc7]
[cannot apply to crypto/master sparc-next/master v4.9-rc8 v4.9-rc7 v4.9-rc6]
[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/Megha-Dey/crypto-AES-CBC-multibuffer-implementation/20170421-064210
config: m68k-sun3_defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m68k 

All warnings (new ones prefixed by >>):

   crypto/tcrypt.c: In function 'test_mb_acipher_cycles':
>> crypto/tcrypt.c:1082:3: warning: format '%llu' expects argument of type 
>> 'long long unsigned int', but argument 2 has type 'long unsigned int' 
>> [-Wformat=]
  pr_cont("1 operation in %llu cycles (%d bytes)\n",
  ^

vim +1082 crypto/tcrypt.c

  1066   * Initiate a maximum of MB_WIDTH operations per loop
  1067   * Measure performance over MB_WIDTH iterations
  1068   * Let do_multi_acipher_op count the cycles
  1069   */
  1070  for (i = 0; i < ITR; i++) {
  1071  mb_start = get_cycles();
  1072  ret = do_multi_acipher_op(req, enc);
  1073  
  1074  mb_end = get_cycles();
  1075  cycles += mb_end - mb_start;
  1076  if (ret)
  1077  goto out;
  1078  }
  1079  
  1080  out:
  1081  if (ret == 0)
> 1082  pr_cont("1 operation in %llu cycles (%d bytes)\n",
  1083  (cycles + 4) / (ITR*MB_WIDTH), blen);
  1084  
  1085  return ret;
  1086  }
  1087  
  1088  static void test_mb_acipher_speed(const char *algo, int enc, unsigned 
int secs,
  1089  struct cipher_speed_template *template,
  1090  unsigned int tcount, u8 *keysize)

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


.config.gz
Description: application/gzip