TO: Stephan Mueller <smuel...@chronox.de>
CC: Herbert Xu <herb...@gondor.apana.org.au>

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git 
master
head:   6c9e3dcd36691c8690861a5f6902226ed2d8a75e
commit: 5bfcf65b385f3e011b72261612abfd49df102086 [9/28] crypto: drbg - compile 
the DRBG code
config: make ARCH=i386 allyesconfig
:::::: branch date: 2 hours ago
:::::: commit date: 7 hours ago

All warnings:

   crypto/drbg.c: In function 'drbg_seed':
>> crypto/drbg.c:1097:3: warning: format '%lu' expects argument of type 'long 
>> unsigned int', but argument 2 has type 'size_t' [-Wformat=]
      pr_devel("DRBG: personalization string too long %lu\n",
      ^
   In file included from include/linux/cpumask.h:12:0,
                    from arch/x86/include/asm/cpumask.h:4,
                    from arch/x86/include/asm/msr.h:10,
                    from arch/x86/include/asm/processor.h:20,
                    from arch/x86/include/asm/archrandom.h:26,
                    from include/linux/random.h:81,
                    from include/crypto/drbg.h:43,
                    from crypto/drbg.c:100:
   crypto/drbg.c: In function 'drbg_init':
>> include/linux/bug.h:33:45: warning: format '%lu' expects argument of type 
>> 'long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=]
    #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
                                                ^
>> include/linux/compiler-gcc.h:47:28: note: in expansion of macro 
>> 'BUILD_BUG_ON_ZERO'
    #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
                               ^
>> include/linux/kernel.h:54:59: note: in expansion of macro '__must_be_array'
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + 
__must_be_array(arr))
                                                              ^
>> include/linux/printk.h:244:34: note: in expansion of macro 'ARRAY_SIZE'
     printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                     ^
>> crypto/drbg.c:1966:3: note: in expansion of macro 'pr_info'
      pr_info("DRBG: Cannot register all DRBG types"
      ^
>> include/linux/bug.h:33:45: warning: format '%lu' expects argument of type 
>> 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat=]
    #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
                                                ^
>> include/linux/compiler-gcc.h:47:28: note: in expansion of macro 
>> 'BUILD_BUG_ON_ZERO'
    #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
                               ^
>> include/linux/kernel.h:54:59: note: in expansion of macro '__must_be_array'
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + 
__must_be_array(arr))
                                                              ^
>> include/linux/printk.h:244:34: note: in expansion of macro 'ARRAY_SIZE'
     printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                     ^
>> crypto/drbg.c:1966:3: note: in expansion of macro 'pr_info'
      pr_info("DRBG: Cannot register all DRBG types"
      ^
crypto/drbg.c:526 drbg_ctr_df() error: we previously assumed 'tempstr' could be 
null (see line 523)

git remote add cryptodev 
git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
git remote update cryptodev
git checkout 5bfcf65b385f3e011b72261612abfd49df102086
vim +/tempstr +526 crypto/drbg.c

541af946 Stephan Mueller 2014-05-31  517  
541af946 Stephan Mueller 2014-05-31  518        /*
541af946 Stephan Mueller 2014-05-31  519         * splice in addtl between S2 
and S4 -- we place S4 at the end of the
541af946 Stephan Mueller 2014-05-31  520         * input data chain
541af946 Stephan Mueller 2014-05-31  521         */
541af946 Stephan Mueller 2014-05-31  522        tempstr = addtl;
541af946 Stephan Mueller 2014-05-31 @523        for (; NULL != tempstr; tempstr 
= tempstr->next)
541af946 Stephan Mueller 2014-05-31  524                if (NULL == 
tempstr->next)
541af946 Stephan Mueller 2014-05-31  525                        break;
541af946 Stephan Mueller 2014-05-31 @526        tempstr->next = &S4;
541af946 Stephan Mueller 2014-05-31  527  
541af946 Stephan Mueller 2014-05-31  528        /* 10.4.2 step 9 */
541af946 Stephan Mueller 2014-05-31  529        while (templen < 
(drbg_keylen(drbg) + (drbg_blocklen(drbg)))) {

:::::: The code at line 526 was first introduced by commit
:::::: 541af946fe1360ec1b45730964e87d7f93c50781 crypto: drbg - SP800-90A 
Deterministic Random Bit Generator

:::::: TO: Stephan Mueller <smuel...@chronox.de>
:::::: CC: Herbert Xu <herb...@gondor.apana.org.au>

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
_______________________________________________
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild

Reply via email to