[bvanassche:scsi-move-scsi-pointer 24/45] drivers/scsi/mac53c94.h:219:22: warning: no previous prototype for 'mac53c94_scsi_pointer'

From: kernel test robot
Date: Mon Jan 24 2022 - 11:04:04 EST


tree: https://github.com/bvanassche/linux scsi-move-scsi-pointer
head: 83b0eca2b3e354c26f2dbfcc765d97c35de34a57
commit: 7d78660acf74697fe6470e6f95fbeacca3113524 [24/45] mac53c94: Move the SCSI pointer to private command data
config: powerpc-ppc6xx_defconfig (https://download.01.org/0day-ci/archive/20220124/202201242330.fIUDhR7w-lkp@xxxxxxxxx/config)
compiler: powerpc-linux-gcc (GCC) 11.2.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
# https://github.com/bvanassche/linux/commit/7d78660acf74697fe6470e6f95fbeacca3113524
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-move-scsi-pointer
git checkout 7d78660acf74697fe6470e6f95fbeacca3113524
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/

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

All warnings (new ones prefixed by >>):

In file included from drivers/scsi/mac53c94.c:34:
>> drivers/scsi/mac53c94.h:219:22: warning: no previous prototype for 'mac53c94_scsi_pointer' [-Wmissing-prototypes]
219 | struct scsi_pointer *mac53c94_scsi_pointer(struct scsi_cmnd *cmd)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/scsi/mac53c94.c: In function 'mac53c94_init':
drivers/scsi/mac53c94.c:128:13: warning: variable 'x' set but not used [-Wunused-but-set-variable]
128 | int x;
| ^


vim +/mac53c94_scsi_pointer +219 drivers/scsi/mac53c94.h

218
> 219 struct scsi_pointer *mac53c94_scsi_pointer(struct scsi_cmnd *cmd)
220 {
221 struct mac53c94_cmd_priv *mcmd = scsi_cmd_priv(cmd);
222
223 return &mcmd->scsi_pointer;
224 }
225

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