All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 11847/12015] drivers/md/md.c:8339:30: error: unused variable 'mdstat_proc_ops'
Date: Mon, 6 Sep 2021 19:55:15 +0800	[thread overview]
Message-ID: <202109061904.Lhao327m-lkp@intel.com> (raw)

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

Hi Stephen,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   7800ca95d0ed11b492962dc3abc2181c9d5f7f82
commit: c3edca52a70e2f1ce3a323d3e9d637fcf52d53d6 [11847/12015] don't make the syscall checking produced errors from warnings
config: hexagon-randconfig-r041-20210906 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6fe2beba7d2a41964af658c8c59dd172683ef739)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=c3edca52a70e2f1ce3a323d3e9d637fcf52d53d6
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout c3edca52a70e2f1ce3a323d3e9d637fcf52d53d6
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon 

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

>> drivers/md/md.c:8339:30: error: unused variable 'mdstat_proc_ops' [-Werror,-Wunused-const-variable]
   static const struct proc_ops mdstat_proc_ops = {
                                ^
   1 error generated.
--
   drivers/md/dm-integrity.c:1729:13: error: variable 'bi_sector' set but not used [-Werror,-Wunused-but-set-variable]
                           sector_t bi_sector = dio->bio_details.bi_iter.bi_sector;
                                    ^
>> drivers/md/dm-integrity.c:4075:12: error: result of comparison of constant 17179869180 with expression of type 'unsigned int' is always false [-Werror,-Wtautological-constant-out-of-range-compare]
                           if (val >= (uint64_t)UINT_MAX * 1000 / HZ) {
                               ~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.
--
>> drivers/regulator/twl-regulator.c:559:34: error: unused variable 'twl_of_match' [-Werror,-Wunused-const-variable]
   static const struct of_device_id twl_of_match[] = {
                                    ^
   1 error generated.
--
>> drivers/regulator/twl6030-regulator.c:637:34: error: unused variable 'twl_of_match' [-Werror,-Wunused-const-variable]
   static const struct of_device_id twl_of_match[] = {
                                    ^
   1 error generated.
--
>> drivers/iio/accel/da280.c:170:36: error: unused variable 'da280_acpi_match' [-Werror,-Wunused-const-variable]
   static const struct acpi_device_id da280_acpi_match[] = {
                                      ^
   1 error generated.
--
   drivers/iio/accel/kxcjk-1013.c:321:3: error: unused variable 'odr_start_up_times' [-Werror,-Wunused-const-variable]
   } odr_start_up_times[KX_MAX_CHIPS][12] = {
     ^
>> drivers/iio/accel/kxcjk-1013.c:1706:36: error: unused variable 'kx_acpi_match' [-Werror,-Wunused-const-variable]
   static const struct acpi_device_id kx_acpi_match[] = {
                                      ^
   2 errors generated.
--
>> drivers/iio/accel/mma9551.c:594:36: error: unused variable 'mma9551_acpi_match' [-Werror,-Wunused-const-variable]
   static const struct acpi_device_id mma9551_acpi_match[] = {
                                      ^
   1 error generated.
--
>> drivers/iio/accel/stk8ba50.c:538:36: error: unused variable 'stk8ba50_acpi_id' [-Werror,-Wunused-const-variable]
   static const struct acpi_device_id stk8ba50_acpi_id[] = {
                                      ^
   1 error generated.
--
>> drivers/iio/light/ltr501.c:1568:36: error: unused variable 'ltr_acpi_match' [-Werror,-Wunused-const-variable]
   static const struct acpi_device_id ltr_acpi_match[] = {
                                      ^
   1 error generated.
--
>> drivers/iio/light/stk3310.c:674:36: error: unused variable 'stk3310_acpi_id' [-Werror,-Wunused-const-variable]
   static const struct acpi_device_id stk3310_acpi_id[] = {
                                      ^
   1 error generated.
--
>> drivers/iio/magnetometer/bmc150_magn_i2c.c:42:36: error: unused variable 'bmc150_magn_acpi_match' [-Werror,-Wunused-const-variable]
   static const struct acpi_device_id bmc150_magn_acpi_match[] = {
                                      ^
   1 error generated.
..


vim +/mdstat_proc_ops +8339 drivers/md/md.c

d7603b7e3a7f80 NeilBrown       2006-01-06  8338  
97a32539b9568b Alexey Dobriyan 2020-02-03 @8339  static const struct proc_ops mdstat_proc_ops = {
97a32539b9568b Alexey Dobriyan 2020-02-03  8340  	.proc_open	= md_seq_open,
97a32539b9568b Alexey Dobriyan 2020-02-03  8341  	.proc_read	= seq_read,
97a32539b9568b Alexey Dobriyan 2020-02-03  8342  	.proc_lseek	= seq_lseek,
97a32539b9568b Alexey Dobriyan 2020-02-03  8343  	.proc_release	= seq_release,
97a32539b9568b Alexey Dobriyan 2020-02-03  8344  	.proc_poll	= mdstat_poll,
^1da177e4c3f41 Linus Torvalds  2005-04-16  8345  };
^1da177e4c3f41 Linus Torvalds  2005-04-16  8346  

:::::: The code at line 8339 was first introduced by commit
:::::: 97a32539b9568bb653683349e5a76d02ff3c3e2c proc: convert everything to "struct proc_ops"

:::::: TO: Alexey Dobriyan <adobriyan@gmail.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
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: 29563 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:master 11847/12015] drivers/md/md.c:8339:30: error: unused variable 'mdstat_proc_ops'
Date: Mon, 06 Sep 2021 19:55:15 +0800	[thread overview]
Message-ID: <202109061904.Lhao327m-lkp@intel.com> (raw)

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

Hi Stephen,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   7800ca95d0ed11b492962dc3abc2181c9d5f7f82
commit: c3edca52a70e2f1ce3a323d3e9d637fcf52d53d6 [11847/12015] don't make the syscall checking produced errors from warnings
config: hexagon-randconfig-r041-20210906 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6fe2beba7d2a41964af658c8c59dd172683ef739)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=c3edca52a70e2f1ce3a323d3e9d637fcf52d53d6
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout c3edca52a70e2f1ce3a323d3e9d637fcf52d53d6
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon 

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

>> drivers/md/md.c:8339:30: error: unused variable 'mdstat_proc_ops' [-Werror,-Wunused-const-variable]
   static const struct proc_ops mdstat_proc_ops = {
                                ^
   1 error generated.
--
   drivers/md/dm-integrity.c:1729:13: error: variable 'bi_sector' set but not used [-Werror,-Wunused-but-set-variable]
                           sector_t bi_sector = dio->bio_details.bi_iter.bi_sector;
                                    ^
>> drivers/md/dm-integrity.c:4075:12: error: result of comparison of constant 17179869180 with expression of type 'unsigned int' is always false [-Werror,-Wtautological-constant-out-of-range-compare]
                           if (val >= (uint64_t)UINT_MAX * 1000 / HZ) {
                               ~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.
--
>> drivers/regulator/twl-regulator.c:559:34: error: unused variable 'twl_of_match' [-Werror,-Wunused-const-variable]
   static const struct of_device_id twl_of_match[] = {
                                    ^
   1 error generated.
--
>> drivers/regulator/twl6030-regulator.c:637:34: error: unused variable 'twl_of_match' [-Werror,-Wunused-const-variable]
   static const struct of_device_id twl_of_match[] = {
                                    ^
   1 error generated.
--
>> drivers/iio/accel/da280.c:170:36: error: unused variable 'da280_acpi_match' [-Werror,-Wunused-const-variable]
   static const struct acpi_device_id da280_acpi_match[] = {
                                      ^
   1 error generated.
--
   drivers/iio/accel/kxcjk-1013.c:321:3: error: unused variable 'odr_start_up_times' [-Werror,-Wunused-const-variable]
   } odr_start_up_times[KX_MAX_CHIPS][12] = {
     ^
>> drivers/iio/accel/kxcjk-1013.c:1706:36: error: unused variable 'kx_acpi_match' [-Werror,-Wunused-const-variable]
   static const struct acpi_device_id kx_acpi_match[] = {
                                      ^
   2 errors generated.
--
>> drivers/iio/accel/mma9551.c:594:36: error: unused variable 'mma9551_acpi_match' [-Werror,-Wunused-const-variable]
   static const struct acpi_device_id mma9551_acpi_match[] = {
                                      ^
   1 error generated.
--
>> drivers/iio/accel/stk8ba50.c:538:36: error: unused variable 'stk8ba50_acpi_id' [-Werror,-Wunused-const-variable]
   static const struct acpi_device_id stk8ba50_acpi_id[] = {
                                      ^
   1 error generated.
--
>> drivers/iio/light/ltr501.c:1568:36: error: unused variable 'ltr_acpi_match' [-Werror,-Wunused-const-variable]
   static const struct acpi_device_id ltr_acpi_match[] = {
                                      ^
   1 error generated.
--
>> drivers/iio/light/stk3310.c:674:36: error: unused variable 'stk3310_acpi_id' [-Werror,-Wunused-const-variable]
   static const struct acpi_device_id stk3310_acpi_id[] = {
                                      ^
   1 error generated.
--
>> drivers/iio/magnetometer/bmc150_magn_i2c.c:42:36: error: unused variable 'bmc150_magn_acpi_match' [-Werror,-Wunused-const-variable]
   static const struct acpi_device_id bmc150_magn_acpi_match[] = {
                                      ^
   1 error generated.
..


vim +/mdstat_proc_ops +8339 drivers/md/md.c

d7603b7e3a7f80 NeilBrown       2006-01-06  8338  
97a32539b9568b Alexey Dobriyan 2020-02-03 @8339  static const struct proc_ops mdstat_proc_ops = {
97a32539b9568b Alexey Dobriyan 2020-02-03  8340  	.proc_open	= md_seq_open,
97a32539b9568b Alexey Dobriyan 2020-02-03  8341  	.proc_read	= seq_read,
97a32539b9568b Alexey Dobriyan 2020-02-03  8342  	.proc_lseek	= seq_lseek,
97a32539b9568b Alexey Dobriyan 2020-02-03  8343  	.proc_release	= seq_release,
97a32539b9568b Alexey Dobriyan 2020-02-03  8344  	.proc_poll	= mdstat_poll,
^1da177e4c3f41 Linus Torvalds  2005-04-16  8345  };
^1da177e4c3f41 Linus Torvalds  2005-04-16  8346  

:::::: The code at line 8339 was first introduced by commit
:::::: 97a32539b9568bb653683349e5a76d02ff3c3e2c proc: convert everything to "struct proc_ops"

:::::: TO: Alexey Dobriyan <adobriyan@gmail.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
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: 29563 bytes --]

             reply	other threads:[~2021-09-06 11:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-06 11:55 kernel test robot [this message]
2021-09-06 11:55 ` [linux-next:master 11847/12015] drivers/md/md.c:8339:30: error: unused variable 'mdstat_proc_ops' 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=202109061904.Lhao327m-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=llvm@lists.linux.dev \
    --cc=sfr@canb.auug.org.au \
    /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.