* [hch-block:scsi-ioctl 14/25] include/linux/bsg.h:29:48: warning: 'struct request_queue' declared inside parameter list will not be visible outside of this definition or declaration
@ 2021-06-29 12:45 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-29 12:45 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5205 bytes --]
tree: git://git.infradead.org/users/hch/block.git scsi-ioctl
head: 93b776b41496d0e5f840a1bb32cecbd92fa8100d
commit: be7c73ced87ccb1235f98c383ac717016b834c2a [14/25] bsg: move bsg_scsi_ops to drivers/scsi/
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
git remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block scsi-ioctl
git checkout be7c73ced87ccb1235f98c383ac717016b834c2a
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/scsi/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/scsi/scsi_bsg.c:2:
>> include/linux/bsg.h:29:48: warning: 'struct request_queue' declared inside parameter list will not be visible outside of this definition or declaration
29 | static inline void bsg_unregister_queue(struct request_queue *q)
| ^~~~~~~~~~~~~
drivers/scsi/scsi_bsg.c:83:21: error: variable 'bsg_scsi_ops' has initializer but incomplete type
83 | static const struct bsg_ops bsg_scsi_ops = {
| ^~~~~~~
drivers/scsi/scsi_bsg.c:84:3: error: 'const struct bsg_ops' has no member named 'check_proto'
84 | .check_proto = bsg_scsi_check_proto,
| ^~~~~~~~~~~
>> drivers/scsi/scsi_bsg.c:84:18: warning: excess elements in struct initializer
84 | .check_proto = bsg_scsi_check_proto,
| ^~~~~~~~~~~~~~~~~~~~
drivers/scsi/scsi_bsg.c:84:18: note: (near initialization for 'bsg_scsi_ops')
drivers/scsi/scsi_bsg.c:85:3: error: 'const struct bsg_ops' has no member named 'fill_hdr'
85 | .fill_hdr = bsg_scsi_fill_hdr,
| ^~~~~~~~
drivers/scsi/scsi_bsg.c:85:15: warning: excess elements in struct initializer
85 | .fill_hdr = bsg_scsi_fill_hdr,
| ^~~~~~~~~~~~~~~~~
drivers/scsi/scsi_bsg.c:85:15: note: (near initialization for 'bsg_scsi_ops')
drivers/scsi/scsi_bsg.c:86:3: error: 'const struct bsg_ops' has no member named 'complete_rq'
86 | .complete_rq = bsg_scsi_complete_rq,
| ^~~~~~~~~~~
drivers/scsi/scsi_bsg.c:86:18: warning: excess elements in struct initializer
86 | .complete_rq = bsg_scsi_complete_rq,
| ^~~~~~~~~~~~~~~~~~~~
drivers/scsi/scsi_bsg.c:86:18: note: (near initialization for 'bsg_scsi_ops')
drivers/scsi/scsi_bsg.c:87:3: error: 'const struct bsg_ops' has no member named 'free_rq'
87 | .free_rq = bsg_scsi_free_rq,
| ^~~~~~~
drivers/scsi/scsi_bsg.c:87:14: warning: excess elements in struct initializer
87 | .free_rq = bsg_scsi_free_rq,
| ^~~~~~~~~~~~~~~~
drivers/scsi/scsi_bsg.c:87:14: note: (near initialization for 'bsg_scsi_ops')
drivers/scsi/scsi_bsg.c:90:5: warning: no previous prototype for 'bsg_scsi_register_queue' [-Wmissing-prototypes]
90 | int bsg_scsi_register_queue(struct request_queue *q, struct device *parent)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/scsi_bsg.c: In function 'bsg_scsi_register_queue':
drivers/scsi/scsi_bsg.c:92:9: error: implicit declaration of function 'bsg_register_queue'; did you mean 'blk_register_queue'? [-Werror=implicit-function-declaration]
92 | return bsg_register_queue(q, parent, dev_name(parent), &bsg_scsi_ops);
| ^~~~~~~~~~~~~~~~~~
| blk_register_queue
drivers/scsi/scsi_bsg.c: At top level:
drivers/scsi/scsi_bsg.c:83:29: error: storage size of 'bsg_scsi_ops' isn't known
83 | static const struct bsg_ops bsg_scsi_ops = {
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +29 include/linux/bsg.h
3d6392cfbd7dc1 Jens Axboe 2007-07-09 24
17cb960f29c29e Christoph Hellwig 2018-03-13 25 int bsg_register_queue(struct request_queue *q, struct device *parent,
5de815a7eedfac Christoph Hellwig 2018-05-29 26 const char *name, const struct bsg_ops *ops);
17cb960f29c29e Christoph Hellwig 2018-03-13 27 void bsg_unregister_queue(struct request_queue *q);
3d6392cfbd7dc1 Jens Axboe 2007-07-09 28 #else
97f46ae45c7085 FUJITA Tomonori 2008-04-19 @29 static inline void bsg_unregister_queue(struct request_queue *q)
:::::: The code at line 29 was first introduced by commit
:::::: 97f46ae45c70857e459b7f8df1fc2807e7bd90a9 [SCSI] bsg: add release callback support
:::::: TO: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
:::::: CC: James Bottomley <James.Bottomley@HansenPartnership.com>
---
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: 54703 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-29 12:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 12:45 [hch-block:scsi-ioctl 14/25] include/linux/bsg.h:29:48: warning: 'struct request_queue' declared inside parameter list will not be visible outside of this definition or declaration kernel test robot
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.