Messages in this thread | | | Date | Sun, 16 Jan 2022 23:37:41 +0800 | From | kernel test robot <> | Subject | [bvanassche:scsi-move-scsi-pointer 16/18] drivers/scsi/fdomain.c:122:22: warning: no previous prototype for function 'fdomain_scsi_pointer' |
| |
tree: https://github.com/bvanassche/linux scsi-move-scsi-pointer head: 7173550f8dd7130891118452742bb6e99b63fd27 commit: 6eea006091e2b2b428a910feb8041bbb99aa707d [16/18] fdomain: Move the SCSI pointer to private command data config: i386-randconfig-a002 (https://download.01.org/0day-ci/archive/20220116/202201162349.t2n6wgaH-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c63a3175c2947e8c1a2d3bbe16a8586600705c54) 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://github.com/bvanassche/linux/commit/6eea006091e2b2b428a910feb8041bbb99aa707d git remote add bvanassche https://github.com/bvanassche/linux git fetch --no-tags bvanassche scsi-move-scsi-pointer git checkout 6eea006091e2b2b428a910feb8041bbb99aa707d # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 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 >>):
>> drivers/scsi/fdomain.c:122:22: warning: no previous prototype for function 'fdomain_scsi_pointer' [-Wmissing-prototypes] struct scsi_pointer *fdomain_scsi_pointer(struct scsi_cmnd *cmd) ^ drivers/scsi/fdomain.c:122:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct scsi_pointer *fdomain_scsi_pointer(struct scsi_cmnd *cmd) ^ static 1 warning generated.
vim +/fdomain_scsi_pointer +122 drivers/scsi/fdomain.c
121 > 122 struct scsi_pointer *fdomain_scsi_pointer(struct scsi_cmnd *cmd) 123 { 124 struct fdomain_priv *fcmd = scsi_cmd_priv(cmd); 125 126 return &fcmd->scsi_pointer; 127 } 128
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |