Messages in this thread | | | Date | Fri, 23 Jul 2021 08:01:03 +0800 | From | kernel test robot <> | Subject | [hch-block:scsi-ioctl 14/24] include/linux/blkdev.h:541:26: error: field has incomplete type 'struct bsg_class_device' |
| |
tree: git://git.infradead.org/users/hch/block.git scsi-ioctl head: 0d6e95412bd07b6406be6d368ea60513807caf83 commit: 075e28806125ae286114e55557067e340f30a93a [14/24] bsg: move bsg_scsi_ops to drivers/scsi/ config: mips-randconfig-r035-20210722 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9625ca5b602616b2f5584e8a49ba93c52c141e40) 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 mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu git remote add hch-block git://git.infradead.org/users/hch/block.git git fetch --no-tags hch-block scsi-ioctl git checkout 075e28806125ae286114e55557067e340f30a93a # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=mips olddefconfig
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 arch/mips/kernel/asm-offsets.c:17: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: In file included from include/linux/blk-cgroup.h:23: >> include/linux/blkdev.h:541:26: error: field has incomplete type 'struct bsg_class_device' struct bsg_class_device bsg_dev; ^ include/linux/blkdev.h:541:9: note: forward declaration of 'struct bsg_class_device' struct bsg_class_device bsg_dev; ^ arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for function 'output_ptreg_defines' [-Wmissing-prototypes] void output_ptreg_defines(void) ^ arch/mips/kernel/asm-offsets.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_ptreg_defines(void) ^ static arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for function 'output_task_defines' [-Wmissing-prototypes] void output_task_defines(void) ^ arch/mips/kernel/asm-offsets.c:78:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_task_defines(void) ^ static arch/mips/kernel/asm-offsets.c:92:6: warning: no previous prototype for function 'output_thread_info_defines' [-Wmissing-prototypes] void output_thread_info_defines(void) ^ arch/mips/kernel/asm-offsets.c:92:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_thread_info_defines(void) ^ static arch/mips/kernel/asm-offsets.c:108:6: warning: no previous prototype for function 'output_thread_defines' [-Wmissing-prototypes] void output_thread_defines(void) ^ arch/mips/kernel/asm-offsets.c:108:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_thread_defines(void) ^ static arch/mips/kernel/asm-offsets.c:136:6: warning: no previous prototype for function 'output_thread_fpu_defines' [-Wmissing-prototypes] void output_thread_fpu_defines(void) ^ arch/mips/kernel/asm-offsets.c:136:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_thread_fpu_defines(void) ^ static arch/mips/kernel/asm-offsets.c:179:6: warning: no previous prototype for function 'output_mm_defines' [-Wmissing-prototypes] void output_mm_defines(void) ^ arch/mips/kernel/asm-offsets.c:179:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_mm_defines(void) ^ static arch/mips/kernel/asm-offsets.c:218:6: warning: no previous prototype for function 'output_sc_defines' [-Wmissing-prototypes] void output_sc_defines(void) ^ arch/mips/kernel/asm-offsets.c:218:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_sc_defines(void) ^ static arch/mips/kernel/asm-offsets.c:253:6: warning: no previous prototype for function 'output_signal_defined' [-Wmissing-prototypes] void output_signal_defined(void) ^ arch/mips/kernel/asm-offsets.c:253:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_signal_defined(void) ^ static arch/mips/kernel/asm-offsets.c:332:6: warning: no previous prototype for function 'output_pm_defines' [-Wmissing-prototypes] void output_pm_defines(void) ^ arch/mips/kernel/asm-offsets.c:332:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_pm_defines(void) ^ static arch/mips/kernel/asm-offsets.c:346:6: warning: no previous prototype for function 'output_kvm_defines' [-Wmissing-prototypes] void output_kvm_defines(void) ^ arch/mips/kernel/asm-offsets.c:346:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_kvm_defines(void) ^ static 10 warnings and 1 error generated. -- In file included from arch/mips/kernel/asm-offsets.c:17: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: In file included from include/linux/blk-cgroup.h:23: >> include/linux/blkdev.h:541:26: error: field has incomplete type 'struct bsg_class_device' struct bsg_class_device bsg_dev; ^ include/linux/blkdev.h:541:9: note: forward declaration of 'struct bsg_class_device' struct bsg_class_device bsg_dev; ^ arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for function 'output_ptreg_defines' [-Wmissing-prototypes] void output_ptreg_defines(void) ^ arch/mips/kernel/asm-offsets.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_ptreg_defines(void) ^ static arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for function 'output_task_defines' [-Wmissing-prototypes] void output_task_defines(void) ^ arch/mips/kernel/asm-offsets.c:78:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_task_defines(void) ^ static arch/mips/kernel/asm-offsets.c:92:6: warning: no previous prototype for function 'output_thread_info_defines' [-Wmissing-prototypes] void output_thread_info_defines(void) ^ arch/mips/kernel/asm-offsets.c:92:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_thread_info_defines(void) ^ static arch/mips/kernel/asm-offsets.c:108:6: warning: no previous prototype for function 'output_thread_defines' [-Wmissing-prototypes] void output_thread_defines(void) ^ arch/mips/kernel/asm-offsets.c:108:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_thread_defines(void) ^ static arch/mips/kernel/asm-offsets.c:136:6: warning: no previous prototype for function 'output_thread_fpu_defines' [-Wmissing-prototypes] void output_thread_fpu_defines(void) ^ arch/mips/kernel/asm-offsets.c:136:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_thread_fpu_defines(void) ^ static arch/mips/kernel/asm-offsets.c:179:6: warning: no previous prototype for function 'output_mm_defines' [-Wmissing-prototypes] void output_mm_defines(void) ^ arch/mips/kernel/asm-offsets.c:179:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_mm_defines(void) ^ static arch/mips/kernel/asm-offsets.c:218:6: warning: no previous prototype for function 'output_sc_defines' [-Wmissing-prototypes] void output_sc_defines(void) ^ arch/mips/kernel/asm-offsets.c:218:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_sc_defines(void) ^ static arch/mips/kernel/asm-offsets.c:253:6: warning: no previous prototype for function 'output_signal_defined' [-Wmissing-prototypes] void output_signal_defined(void) ^ arch/mips/kernel/asm-offsets.c:253:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_signal_defined(void) ^ static arch/mips/kernel/asm-offsets.c:332:6: warning: no previous prototype for function 'output_pm_defines' [-Wmissing-prototypes] void output_pm_defines(void) ^ arch/mips/kernel/asm-offsets.c:332:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_pm_defines(void) ^ static arch/mips/kernel/asm-offsets.c:346:6: warning: no previous prototype for function 'output_kvm_defines' [-Wmissing-prototypes] void output_kvm_defines(void) ^ arch/mips/kernel/asm-offsets.c:346:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_kvm_defines(void) ^ static 10 warnings and 1 error generated. make[2]: *** [scripts/Makefile.build:117: arch/mips/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1213: prepare0] Error 2 make[1]: Target 'modules_prepare' not remade because of errors. make: *** [Makefile:220: __sub-make] Error 2 make: Target 'modules_prepare' not remade because of errors. -- In file included from arch/mips/kernel/asm-offsets.c:17: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: In file included from include/linux/blk-cgroup.h:23: >> include/linux/blkdev.h:541:26: error: field has incomplete type 'struct bsg_class_device' struct bsg_class_device bsg_dev; ^ include/linux/blkdev.h:541:9: note: forward declaration of 'struct bsg_class_device' struct bsg_class_device bsg_dev; ^ arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for function 'output_ptreg_defines' [-Wmissing-prototypes] void output_ptreg_defines(void) ^ arch/mips/kernel/asm-offsets.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_ptreg_defines(void) ^ static arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for function 'output_task_defines' [-Wmissing-prototypes] void output_task_defines(void) ^ arch/mips/kernel/asm-offsets.c:78:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_task_defines(void) ^ static arch/mips/kernel/asm-offsets.c:92:6: warning: no previous prototype for function 'output_thread_info_defines' [-Wmissing-prototypes] void output_thread_info_defines(void) ^ arch/mips/kernel/asm-offsets.c:92:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_thread_info_defines(void) ^ static arch/mips/kernel/asm-offsets.c:108:6: warning: no previous prototype for function 'output_thread_defines' [-Wmissing-prototypes] void output_thread_defines(void) ^ arch/mips/kernel/asm-offsets.c:108:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_thread_defines(void) ^ static arch/mips/kernel/asm-offsets.c:136:6: warning: no previous prototype for function 'output_thread_fpu_defines' [-Wmissing-prototypes] void output_thread_fpu_defines(void) ^ arch/mips/kernel/asm-offsets.c:136:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_thread_fpu_defines(void) ^ static arch/mips/kernel/asm-offsets.c:179:6: warning: no previous prototype for function 'output_mm_defines' [-Wmissing-prototypes] void output_mm_defines(void) ^ arch/mips/kernel/asm-offsets.c:179:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_mm_defines(void) ^ static arch/mips/kernel/asm-offsets.c:218:6: warning: no previous prototype for function 'output_sc_defines' [-Wmissing-prototypes] void output_sc_defines(void) ^ arch/mips/kernel/asm-offsets.c:218:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_sc_defines(void) ^ static arch/mips/kernel/asm-offsets.c:253:6: warning: no previous prototype for function 'output_signal_defined' [-Wmissing-prototypes] void output_signal_defined(void) ^ arch/mips/kernel/asm-offsets.c:253:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_signal_defined(void) ^ static arch/mips/kernel/asm-offsets.c:332:6: warning: no previous prototype for function 'output_pm_defines' [-Wmissing-prototypes] void output_pm_defines(void) ^ arch/mips/kernel/asm-offsets.c:332:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_pm_defines(void) ^ static arch/mips/kernel/asm-offsets.c:346:6: warning: no previous prototype for function 'output_kvm_defines' [-Wmissing-prototypes] void output_kvm_defines(void) ^ arch/mips/kernel/asm-offsets.c:346:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_kvm_defines(void) ^ static 10 warnings and 1 error generated. make[2]: *** [scripts/Makefile.build:117: arch/mips/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1213: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:220: __sub-make] Error 2 make: Target 'prepare' not remade because of errors.
vim +541 include/linux/blkdev.h
6cc77e9cb08041 Christoph Hellwig 2017-12-21 508 ^1da177e4c3f41 Linus Torvalds 2005-04-16 509 /* ^1da177e4c3f41 Linus Torvalds 2005-04-16 510 * sg stuff ^1da177e4c3f41 Linus Torvalds 2005-04-16 511 */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 512 unsigned int sg_timeout; ^1da177e4c3f41 Linus Torvalds 2005-04-16 513 unsigned int sg_reserved_size; 1946089a109251 Christoph Lameter 2005-06-23 514 int node; 85e0cbbb8a7953 Luis Chamberlain 2020-06-19 515 struct mutex debugfs_mutex; 6c5c934153513d Alexey Dobriyan 2006-09-29 516 #ifdef CONFIG_BLK_DEV_IO_TRACE c780e86dd48ef6 Jan Kara 2020-02-06 517 struct blk_trace __rcu *blk_trace; 6c5c934153513d Alexey Dobriyan 2006-09-29 518 #endif ^1da177e4c3f41 Linus Torvalds 2005-04-16 519 /* 4913efe456c987 Tejun Heo 2010-09-03 520 * for flush operations ^1da177e4c3f41 Linus Torvalds 2005-04-16 521 */ 7c94e1c157a227 Ming Lei 2014-09-25 522 struct blk_flush_queue *fq; 483f4afc421435 Al Viro 2006-03-18 523 6fca6a611c27f1 Christoph Hellwig 2014-05-28 524 struct list_head requeue_list; 6fca6a611c27f1 Christoph Hellwig 2014-05-28 525 spinlock_t requeue_lock; 2849450ad39d2e Mike Snitzer 2016-09-14 526 struct delayed_work requeue_work; 6fca6a611c27f1 Christoph Hellwig 2014-05-28 527 483f4afc421435 Al Viro 2006-03-18 528 struct mutex sysfs_lock; cecf5d87ff2035 Ming Lei 2019-08-27 529 struct mutex sysfs_dir_lock; d351af01b93075 FUJITA Tomonori 2007-07-09 530 2f8f1336a48bd5 Ming Lei 2019-04-30 531 /* 2f8f1336a48bd5 Ming Lei 2019-04-30 532 * for reusing dead hctx instance in case of updating 2f8f1336a48bd5 Ming Lei 2019-04-30 533 * nr_hw_queues 2f8f1336a48bd5 Ming Lei 2019-04-30 534 */ 2f8f1336a48bd5 Ming Lei 2019-04-30 535 struct list_head unused_hctx_list; 2f8f1336a48bd5 Ming Lei 2019-04-30 536 spinlock_t unused_hctx_lock; 2f8f1336a48bd5 Ming Lei 2019-04-30 537 7996a8b5511a72 Bob Liu 2019-05-21 538 int mq_freeze_depth; d732580b4eb315 Tejun Heo 2012-03-05 539 075e28806125ae Christoph Hellwig 2021-07-10 540 #if IS_ENABLED(CONFIG_BLK_DEV_BSG_COMMON) d351af01b93075 FUJITA Tomonori 2007-07-09 @541 struct bsg_class_device bsg_dev; d351af01b93075 FUJITA Tomonori 2007-07-09 542 #endif e43473b7f223ec Vivek Goyal 2010-09-15 543
:::::: The code at line 541 was first introduced by commit :::::: d351af01b9307566135cb0f355ca65d0952c10b5 bsg: bind bsg to request_queue instead of gendisk
:::::: TO: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> :::::: CC: Jens Axboe <jens.axboe@oracle.com>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |