linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Sandy Harris <sandyinchina@gmail.com>
Cc: kbuild-all@01.org, "Theodore Ts\\\\'o" <tytso@mit.edu>,
	Jason Cooper <jason@lakedaemon.net>,
	"H. Peter Anvin" <hpa@zytor.com>, John Denker <jsd@av8n.com>,
	linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org
Subject: Re: [PATCH 7/7] Create generated/random_init.h, used by random driver
Date: Sun, 8 Nov 2015 05:18:50 +0800	[thread overview]
Message-ID: <201511080527.N9UQrWZO%fengguang.wu@intel.com> (raw)
In-Reply-To: <1446906642-19372-7-git-send-email-sandyinchina@gmail.com>

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

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 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++ ) {
                                                      ^

vim +/constants +477 drivers/char/random_gcm.c

da17cbfa Sandy Harris 2015-11-07  461  	unsigned int initialized:1;
da17cbfa Sandy Harris 2015-11-07  462  	unsigned int limit:1;
da17cbfa Sandy Harris 2015-11-07  463  	unsigned int last_data_init:1;
da17cbfa Sandy Harris 2015-11-07  464  	__u8 last_data[EXTRACT_SIZE];
da17cbfa Sandy Harris 2015-11-07  465  	u32 *A, *B, which, count ;
da17cbfa Sandy Harris 2015-11-07  466  	u32 *p, *q, *end, size ;
da17cbfa Sandy Harris 2015-11-07  467  };
da17cbfa Sandy Harris 2015-11-07  468  
da17cbfa Sandy Harris 2015-11-07  469  static void push_to_pool(struct work_struct *work);
da17cbfa Sandy Harris 2015-11-07  470  
da17cbfa Sandy Harris 2015-11-07  471  static struct entropy_store input_pool = {
da17cbfa Sandy Harris 2015-11-07  472  	.poolinfo = &poolinfo_table[0],
da17cbfa Sandy Harris 2015-11-07  473  	.name = "input",
da17cbfa Sandy Harris 2015-11-07  474  	.limit = 1,
da17cbfa Sandy Harris 2015-11-07  475  	.lock = __SPIN_LOCK_UNLOCKED(input_pool.lock),
da17cbfa Sandy Harris 2015-11-07  476  	.pool = pools,
da17cbfa Sandy Harris 2015-11-07 @477  	.A = constants,
da17cbfa Sandy Harris 2015-11-07  478  	.B = constants+4,
da17cbfa Sandy Harris 2015-11-07  479  	.which = 0,
da17cbfa Sandy Harris 2015-11-07  480  	.count = 0,
da17cbfa Sandy Harris 2015-11-07  481  	.size = INPUT_POOL_WORDS,
da17cbfa Sandy Harris 2015-11-07  482  	.p = pools,
da17cbfa Sandy Harris 2015-11-07  483  	.q = pools + (INPUT_POOL_WORDS/2),
da17cbfa Sandy Harris 2015-11-07  484  	.end = pools + INPUT_POOL_WORDS
da17cbfa Sandy Harris 2015-11-07  485  };

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

:::::: TO: Sandy Harris <sandyinchina@gmail.com>
:::::: CC: 0day robot <fengguang.wu@intel.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 50199 bytes --]

  parent reply	other threads:[~2015-11-07 21:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-07 14:30 [PATCH 1/7] A couple of generated files Sandy Harris
2015-11-07 14:30 ` [PATCH 2/7] Two new CONFIG options for the random(4) driver Sandy Harris
2015-11-07 14:30 ` [PATCH 3/7] Initialise pools randomly if CONFIG_RANDOM_INIT=y Sandy Harris
2015-11-07 16:54   ` Jason Cooper
2015-11-07 17:08   ` kbuild test robot
2015-11-07 14:30 ` [PATCH 4/7] Different version of driver using hash from AES-GCM Compiled if CONFIG_RANDOM_GCM=y Sandy Harris
2015-11-07 14:30 ` [PATCH 5/7] Conditionals for CONFIG_RANDOM_INIT and CONFIG_RANDOM_GCM Sandy Harris
2015-11-07 17:11   ` kbuild test robot
2015-11-07 14:30 ` [PATCH 6/7] Produces generated/random_init.h for random driver Sandy Harris
2015-11-07 14:30 ` [PATCH 7/7] Create generated/random_init.h, used by " Sandy Harris
2015-11-07 16:00   ` kbuild test robot
2015-11-07 21:18   ` kbuild test robot [this message]
2015-11-08 11:14   ` kbuild test robot
2015-11-07 16:53 ` [PATCH 1/7] A couple of generated files Jason Cooper
2015-11-07 18:50   ` Sandy Harris
2016-03-02  3:15     ` Sandy Harris
2015-11-07 17:01 ` Jason Cooper
2015-11-07 17:50   ` Sandy Harris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201511080527.N9UQrWZO%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=hpa@zytor.com \
    --cc=jason@lakedaemon.net \
    --cc=jsd@av8n.com \
    --cc=kbuild-all@01.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sandyinchina@gmail.com \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).