[hch-block:scsi-ioctl 14/24] drivers/scsi/scsi_bsg.c:92:5: warning: no previous prototype for function 'scsi_bsg_register_queue'

From: kernel test robot
Date: Thu Jul 22 2021 - 19:24:15 EST


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: powerpc64-randconfig-r011-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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64

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

All warnings (new ones prefixed by >>):

>> drivers/scsi/scsi_bsg.c:92:5: warning: no previous prototype for function 'scsi_bsg_register_queue' [-Wmissing-prototypes]
int scsi_bsg_register_queue(struct request_queue *q, struct device *parent)
^
drivers/scsi/scsi_bsg.c:92:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int scsi_bsg_register_queue(struct request_queue *q, struct device *parent)
^
static
1 warning generated.


vim +/scsi_bsg_register_queue +92 drivers/scsi/scsi_bsg.c

91
> 92 int scsi_bsg_register_queue(struct request_queue *q, struct device *parent)

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

Attachment: .config.gz
Description: application/gzip