LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [hare-scsi-devel:eh-rework.v2 49/51] drivers/scsi/scsi_error.c:1207:6: warning: no previous prototype for function '__scsi_eh_finish_cmd'
@ 2021-08-17 13:16 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-17 13:16 UTC (permalink / raw)
  To: Hannes Reinecke; +Cc: clang-built-linux, kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2822 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git eh-rework.v2
head:   7603e2e1f37e470064b8c865b5d6470137baa79b
commit: a5bf3d7edeb8669d4c307b527f1164788d7aefb8 [49/51] scsi: Move eh_device_reset_handler() to use scsi_device as argument
config: i386-randconfig-r022-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2c6448cdc2f68f8c28fd0bd9404182b81306e6e6)
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://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commit/?id=a5bf3d7edeb8669d4c307b527f1164788d7aefb8
        git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
        git fetch --no-tags hare-scsi-devel eh-rework.v2
        git checkout a5bf3d7edeb8669d4c307b527f1164788d7aefb8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386 

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/scsi_error.c:1207:6: warning: no previous prototype for function '__scsi_eh_finish_cmd' [-Wmissing-prototypes]
   void __scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q,
        ^
   drivers/scsi/scsi_error.c:1207:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q,
   ^
   static 
   1 warning generated.


vim +/__scsi_eh_finish_cmd +1207 drivers/scsi/scsi_error.c

  1193	
  1194	/**
  1195	 * scsi_eh_finish_cmd - Handle a cmd that eh is finished with.
  1196	 * @scmd:	Original SCSI cmd that eh has finished.
  1197	 * @done_q:	Queue for processed commands.
  1198	 * @result:	Final command status to be set
  1199	 *
  1200	 * Notes:
  1201	 *    We don't want to use the normal command completion while we are are
  1202	 *    still handling errors - it may cause other commands to be queued,
  1203	 *    and that would disturb what we are doing.  Thus we really want to
  1204	 *    keep a list of pending commands for final completion, and once we
  1205	 *    are ready to leave error handling we handle completion for real.
  1206	 */
> 1207	void __scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q,
  1208				int host_byte)
  1209	{
  1210		if (host_byte)
  1211			set_host_byte(scmd, host_byte);
  1212		list_move_tail(&scmd->eh_entry, done_q);
  1213	}
  1214	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 40775 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-17 13:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-17 13:16 [hare-scsi-devel:eh-rework.v2 49/51] drivers/scsi/scsi_error.c:1207:6: warning: no previous prototype for function '__scsi_eh_finish_cmd' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).