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@xxxxxxxxx> 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@xxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip