All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: angkery <angkery@163.com>,
	dmitry.torokhov@gmail.com, hdegoede@redhat.com,
	rajatja@google.com, luomeng12@huawei.com, gustavoars@kernel.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
	Junlin Yang <yangjunlin@yulong.com>
Subject: Re: [PATCH] Input: i8042: Remove unneeded variable
Date: Thu, 25 Feb 2021 23:36:29 +0800	[thread overview]
Message-ID: <202102252313.89YBUzk1-lkp@intel.com> (raw)
In-Reply-To: <20210225092943.657-1-angkery@163.com>

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

Hi angkery,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on input/next]
[also build test ERROR on v5.11 next-20210225]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/angkery/Input-i8042-Remove-unneeded-variable/20210225-215352
base:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
config: x86_64-randconfig-r034-20210225 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a921aaf789912d981cbb2036bdc91ad7289e1523)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/0day-ci/linux/commit/d3f5af97cbc5d1ff5f8a3e96e4d858335f910e78
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review angkery/Input-i8042-Remove-unneeded-variable/20210225-215352
        git checkout d3f5af97cbc5d1ff5f8a3e96e4d858335f910e78
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from drivers/input/serio/i8042.c:131:
   In file included from drivers/input/serio/i8042.h:23:
   drivers/input/serio/i8042-x86ia64io.h:591:14: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
                   .matches = {
                              ^
   drivers/input/serio/i8042-x86ia64io.h:587:14: note: previous initialization is here
                   .matches = {
                              ^
>> drivers/input/serio/i8042.c:1133:3: error: use of undeclared identifier 'delay'
                   DELAY;
                   ^
   drivers/input/serio/i8042.c:1125:37: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                       ^
>> drivers/input/serio/i8042.c:1133:3: error: use of undeclared identifier 'delay'
   drivers/input/serio/i8042.c:1125:56: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                                          ^
   drivers/input/serio/i8042.c:1137:2: error: use of undeclared identifier 'delay'
           DELAY;
           ^
   drivers/input/serio/i8042.c:1125:37: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                       ^
   drivers/input/serio/i8042.c:1137:2: error: use of undeclared identifier 'delay'
   drivers/input/serio/i8042.c:1125:56: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                                          ^
   drivers/input/serio/i8042.c:1139:3: error: use of undeclared identifier 'delay'
                   DELAY;
                   ^
   drivers/input/serio/i8042.c:1125:37: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                       ^
   drivers/input/serio/i8042.c:1139:3: error: use of undeclared identifier 'delay'
   drivers/input/serio/i8042.c:1125:56: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                                          ^
   drivers/input/serio/i8042.c:1140:2: error: use of undeclared identifier 'delay'
           DELAY;
           ^
   drivers/input/serio/i8042.c:1125:37: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                       ^
   drivers/input/serio/i8042.c:1140:2: error: use of undeclared identifier 'delay'
   drivers/input/serio/i8042.c:1125:56: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                                          ^
   drivers/input/serio/i8042.c:1143:2: error: use of undeclared identifier 'delay'
           DELAY;
           ^
   drivers/input/serio/i8042.c:1125:37: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                       ^
   drivers/input/serio/i8042.c:1143:2: error: use of undeclared identifier 'delay'
   drivers/input/serio/i8042.c:1125:56: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                                          ^
   1 warning and 10 errors generated.


vim +/delay +1133 drivers/input/serio/i8042.c

^1da177e4c3f41 Linus Torvalds  2005-04-16  1126  
c7ff0d9c92435e TAMUKI Shoichi  2010-08-10  1127  static long i8042_panic_blink(int state)
^1da177e4c3f41 Linus Torvalds  2005-04-16  1128  {
c7ff0d9c92435e TAMUKI Shoichi  2010-08-10  1129  	char led;
^1da177e4c3f41 Linus Torvalds  2005-04-16  1130  
c7ff0d9c92435e TAMUKI Shoichi  2010-08-10  1131  	led = (state) ? 0x01 | 0x04 : 0;
^1da177e4c3f41 Linus Torvalds  2005-04-16  1132  	while (i8042_read_status() & I8042_STR_IBF)
^1da177e4c3f41 Linus Torvalds  2005-04-16 @1133  		DELAY;
4eb3c30b2e034b Joe Perches     2010-11-29  1134  	dbg("%02x -> i8042 (panic blink)\n", 0xed);
19f3c3e37314a2 Dmitry Torokhov 2007-01-18  1135  	i8042_suppress_kbd_ack = 2;
^1da177e4c3f41 Linus Torvalds  2005-04-16  1136  	i8042_write_data(0xed); /* set leds */
^1da177e4c3f41 Linus Torvalds  2005-04-16  1137  	DELAY;
^1da177e4c3f41 Linus Torvalds  2005-04-16  1138  	while (i8042_read_status() & I8042_STR_IBF)
^1da177e4c3f41 Linus Torvalds  2005-04-16  1139  		DELAY;
^1da177e4c3f41 Linus Torvalds  2005-04-16  1140  	DELAY;
4eb3c30b2e034b Joe Perches     2010-11-29  1141  	dbg("%02x -> i8042 (panic blink)\n", led);
^1da177e4c3f41 Linus Torvalds  2005-04-16  1142  	i8042_write_data(led);
^1da177e4c3f41 Linus Torvalds  2005-04-16  1143  	DELAY;
d3f5af97cbc5d1 Junlin Yang     2021-02-25  1144  	return 0;
^1da177e4c3f41 Linus Torvalds  2005-04-16  1145  }
^1da177e4c3f41 Linus Torvalds  2005-04-16  1146  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37270 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH] Input: i8042: Remove unneeded variable
Date: Thu, 25 Feb 2021 23:36:29 +0800	[thread overview]
Message-ID: <202102252313.89YBUzk1-lkp@intel.com> (raw)
In-Reply-To: <20210225092943.657-1-angkery@163.com>

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

Hi angkery,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on input/next]
[also build test ERROR on v5.11 next-20210225]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/angkery/Input-i8042-Remove-unneeded-variable/20210225-215352
base:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
config: x86_64-randconfig-r034-20210225 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a921aaf789912d981cbb2036bdc91ad7289e1523)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/0day-ci/linux/commit/d3f5af97cbc5d1ff5f8a3e96e4d858335f910e78
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review angkery/Input-i8042-Remove-unneeded-variable/20210225-215352
        git checkout d3f5af97cbc5d1ff5f8a3e96e4d858335f910e78
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from drivers/input/serio/i8042.c:131:
   In file included from drivers/input/serio/i8042.h:23:
   drivers/input/serio/i8042-x86ia64io.h:591:14: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
                   .matches = {
                              ^
   drivers/input/serio/i8042-x86ia64io.h:587:14: note: previous initialization is here
                   .matches = {
                              ^
>> drivers/input/serio/i8042.c:1133:3: error: use of undeclared identifier 'delay'
                   DELAY;
                   ^
   drivers/input/serio/i8042.c:1125:37: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                       ^
>> drivers/input/serio/i8042.c:1133:3: error: use of undeclared identifier 'delay'
   drivers/input/serio/i8042.c:1125:56: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                                          ^
   drivers/input/serio/i8042.c:1137:2: error: use of undeclared identifier 'delay'
           DELAY;
           ^
   drivers/input/serio/i8042.c:1125:37: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                       ^
   drivers/input/serio/i8042.c:1137:2: error: use of undeclared identifier 'delay'
   drivers/input/serio/i8042.c:1125:56: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                                          ^
   drivers/input/serio/i8042.c:1139:3: error: use of undeclared identifier 'delay'
                   DELAY;
                   ^
   drivers/input/serio/i8042.c:1125:37: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                       ^
   drivers/input/serio/i8042.c:1139:3: error: use of undeclared identifier 'delay'
   drivers/input/serio/i8042.c:1125:56: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                                          ^
   drivers/input/serio/i8042.c:1140:2: error: use of undeclared identifier 'delay'
           DELAY;
           ^
   drivers/input/serio/i8042.c:1125:37: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                       ^
   drivers/input/serio/i8042.c:1140:2: error: use of undeclared identifier 'delay'
   drivers/input/serio/i8042.c:1125:56: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                                          ^
   drivers/input/serio/i8042.c:1143:2: error: use of undeclared identifier 'delay'
           DELAY;
           ^
   drivers/input/serio/i8042.c:1125:37: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                       ^
   drivers/input/serio/i8042.c:1143:2: error: use of undeclared identifier 'delay'
   drivers/input/serio/i8042.c:1125:56: note: expanded from macro 'DELAY'
   #define DELAY do { mdelay(1); if (++delay > 10) return delay; } while(0)
                                                          ^
   1 warning and 10 errors generated.


vim +/delay +1133 drivers/input/serio/i8042.c

^1da177e4c3f41 Linus Torvalds  2005-04-16  1126  
c7ff0d9c92435e TAMUKI Shoichi  2010-08-10  1127  static long i8042_panic_blink(int state)
^1da177e4c3f41 Linus Torvalds  2005-04-16  1128  {
c7ff0d9c92435e TAMUKI Shoichi  2010-08-10  1129  	char led;
^1da177e4c3f41 Linus Torvalds  2005-04-16  1130  
c7ff0d9c92435e TAMUKI Shoichi  2010-08-10  1131  	led = (state) ? 0x01 | 0x04 : 0;
^1da177e4c3f41 Linus Torvalds  2005-04-16  1132  	while (i8042_read_status() & I8042_STR_IBF)
^1da177e4c3f41 Linus Torvalds  2005-04-16 @1133  		DELAY;
4eb3c30b2e034b Joe Perches     2010-11-29  1134  	dbg("%02x -> i8042 (panic blink)\n", 0xed);
19f3c3e37314a2 Dmitry Torokhov 2007-01-18  1135  	i8042_suppress_kbd_ack = 2;
^1da177e4c3f41 Linus Torvalds  2005-04-16  1136  	i8042_write_data(0xed); /* set leds */
^1da177e4c3f41 Linus Torvalds  2005-04-16  1137  	DELAY;
^1da177e4c3f41 Linus Torvalds  2005-04-16  1138  	while (i8042_read_status() & I8042_STR_IBF)
^1da177e4c3f41 Linus Torvalds  2005-04-16  1139  		DELAY;
^1da177e4c3f41 Linus Torvalds  2005-04-16  1140  	DELAY;
4eb3c30b2e034b Joe Perches     2010-11-29  1141  	dbg("%02x -> i8042 (panic blink)\n", led);
^1da177e4c3f41 Linus Torvalds  2005-04-16  1142  	i8042_write_data(led);
^1da177e4c3f41 Linus Torvalds  2005-04-16  1143  	DELAY;
d3f5af97cbc5d1 Junlin Yang     2021-02-25  1144  	return 0;
^1da177e4c3f41 Linus Torvalds  2005-04-16  1145  }
^1da177e4c3f41 Linus Torvalds  2005-04-16  1146  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37270 bytes --]

  parent reply	other threads:[~2021-02-25 15:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25  9:29 [PATCH] Input: i8042: Remove unneeded variable angkery
2021-02-25 15:30 ` kernel test robot
2021-02-25 15:30   ` kernel test robot
2021-02-25 15:36 ` kernel test robot [this message]
2021-02-25 15:36   ` kernel test robot

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=202102252313.89YBUzk1-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=angkery@163.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=gustavoars@kernel.org \
    --cc=hdegoede@redhat.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luomeng12@huawei.com \
    --cc=rajatja@google.com \
    --cc=yangjunlin@yulong.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.