All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [sashal-linux-stable:queue-5.4 24/25] drivers/scsi/qla2xxx/qla_init.c:156:12: error: static declaration of 'qla24xx_async_abort_cmd' follows non-static declaration
Date: Sat, 17 Apr 2021 00:41:38 +0800	[thread overview]
Message-ID: <202104170035.pgEudkot-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head:   e53f5c1fde5c006e28ef2ee0ac0afa3a940b51be
commit: 2a2346e9fb9df53fb793af8ded6e727f0677601d [24/25] scsi: qla2xxx: Add a shadow variable to hold disc_state history of fcport
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=2a2346e9fb9df53fb793af8ded6e727f0677601d
        git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
        git fetch --no-tags sashal-linux-stable queue-5.4
        git checkout 2a2346e9fb9df53fb793af8ded6e727f0677601d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm64 

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

All errors (new ones prefixed by >>):

>> drivers/scsi/qla2xxx/qla_init.c:156:12: error: static declaration of 'qla24xx_async_abort_cmd' follows non-static declaration
     156 | static int qla24xx_async_abort_cmd(srb_t *cmd_sp, bool wait)
         |            ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/scsi/qla2xxx/qla_def.h:4861,
                    from drivers/scsi/qla2xxx/qla_init.c:7:
   drivers/scsi/qla2xxx/qla_gbl.h:83:12: note: previous declaration of 'qla24xx_async_abort_cmd' was here
      83 | extern int qla24xx_async_abort_cmd(srb_t *, bool);
         |            ^~~~~~~~~~~~~~~~~~~~~~~


vim +/qla24xx_async_abort_cmd +156 drivers/scsi/qla2xxx/qla_init.c

1956eee58872e6 Bart Van Assche 2019-04-17  155  
1956eee58872e6 Bart Van Assche 2019-04-17 @156  static int qla24xx_async_abort_cmd(srb_t *cmd_sp, bool wait)
1956eee58872e6 Bart Van Assche 2019-04-17  157  {
1956eee58872e6 Bart Van Assche 2019-04-17  158  	scsi_qla_host_t *vha = cmd_sp->vha;
1956eee58872e6 Bart Van Assche 2019-04-17  159  	struct srb_iocb *abt_iocb;
1956eee58872e6 Bart Van Assche 2019-04-17  160  	srb_t *sp;
1956eee58872e6 Bart Van Assche 2019-04-17  161  	int rval = QLA_FUNCTION_FAILED;
1956eee58872e6 Bart Van Assche 2019-04-17  162  
1956eee58872e6 Bart Van Assche 2019-04-17  163  	sp = qla2xxx_get_qpair_sp(cmd_sp->vha, cmd_sp->qpair, cmd_sp->fcport,
1956eee58872e6 Bart Van Assche 2019-04-17  164  				  GFP_ATOMIC);
1956eee58872e6 Bart Van Assche 2019-04-17  165  	if (!sp)
fe6b52c9adbcce Bart Van Assche 2019-08-08  166  		return rval;
1956eee58872e6 Bart Van Assche 2019-04-17  167  
1956eee58872e6 Bart Van Assche 2019-04-17  168  	abt_iocb = &sp->u.iocb_cmd;
1956eee58872e6 Bart Van Assche 2019-04-17  169  	sp->type = SRB_ABT_CMD;
1956eee58872e6 Bart Van Assche 2019-04-17  170  	sp->name = "abort";
1956eee58872e6 Bart Van Assche 2019-04-17  171  	sp->qpair = cmd_sp->qpair;
b7abcc7df5e131 Quinn Tran      2019-11-05  172  	sp->cmd_sp = cmd_sp;
1956eee58872e6 Bart Van Assche 2019-04-17  173  	if (wait)
1956eee58872e6 Bart Van Assche 2019-04-17  174  		sp->flags = SRB_WAKEUP_ON_COMP;
1956eee58872e6 Bart Van Assche 2019-04-17  175  
1956eee58872e6 Bart Van Assche 2019-04-17  176  	abt_iocb->timeout = qla24xx_abort_iocb_timeout;
1956eee58872e6 Bart Van Assche 2019-04-17  177  	init_completion(&abt_iocb->u.abt.comp);
1956eee58872e6 Bart Van Assche 2019-04-17  178  	/* FW can send 2 x ABTS's timeout/20s */
1956eee58872e6 Bart Van Assche 2019-04-17  179  	qla2x00_init_timer(sp, 42);
1956eee58872e6 Bart Van Assche 2019-04-17  180  
1956eee58872e6 Bart Van Assche 2019-04-17  181  	abt_iocb->u.abt.cmd_hndl = cmd_sp->handle;
1956eee58872e6 Bart Van Assche 2019-04-17  182  	abt_iocb->u.abt.req_que_no = cpu_to_le16(cmd_sp->qpair->req->id);
1956eee58872e6 Bart Van Assche 2019-04-17  183  
1956eee58872e6 Bart Van Assche 2019-04-17  184  	sp->done = qla24xx_abort_sp_done;
1956eee58872e6 Bart Van Assche 2019-04-17  185  
1956eee58872e6 Bart Van Assche 2019-04-17  186  	ql_dbg(ql_dbg_async, vha, 0x507c,
1956eee58872e6 Bart Van Assche 2019-04-17  187  	       "Abort command issued - hdl=%x, type=%x\n", cmd_sp->handle,
1956eee58872e6 Bart Van Assche 2019-04-17  188  	       cmd_sp->type);
1956eee58872e6 Bart Van Assche 2019-04-17  189  
1956eee58872e6 Bart Van Assche 2019-04-17  190  	rval = qla2x00_start_sp(sp);
fe6b52c9adbcce Bart Van Assche 2019-08-08  191  	if (rval != QLA_SUCCESS) {
fe6b52c9adbcce Bart Van Assche 2019-08-08  192  		sp->free(sp);
fe6b52c9adbcce Bart Van Assche 2019-08-08  193  		return rval;
fe6b52c9adbcce Bart Van Assche 2019-08-08  194  	}
1956eee58872e6 Bart Van Assche 2019-04-17  195  
1956eee58872e6 Bart Van Assche 2019-04-17  196  	if (wait) {
1956eee58872e6 Bart Van Assche 2019-04-17  197  		wait_for_completion(&abt_iocb->u.abt.comp);
1956eee58872e6 Bart Van Assche 2019-04-17  198  		rval = abt_iocb->u.abt.comp_status == CS_COMPLETE ?
1956eee58872e6 Bart Van Assche 2019-04-17  199  			QLA_SUCCESS : QLA_FUNCTION_FAILED;
fe6b52c9adbcce Bart Van Assche 2019-08-08  200  		sp->free(sp);
1956eee58872e6 Bart Van Assche 2019-04-17  201  	}
1956eee58872e6 Bart Van Assche 2019-04-17  202  
1956eee58872e6 Bart Van Assche 2019-04-17  203  	return rval;
1956eee58872e6 Bart Van Assche 2019-04-17  204  }
1956eee58872e6 Bart Van Assche 2019-04-17  205  

:::::: The code at line 156 was first introduced by commit
:::::: 1956eee58872e622cfe03f060a5d8a20d24afe47 scsi: qla2xxx: Make qla24xx_async_abort_cmd() static

:::::: TO: Bart Van Assche <bvanassche@acm.org>
:::::: CC: Martin K. Petersen <martin.petersen@oracle.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: 68127 bytes --]

             reply	other threads:[~2021-04-16 16:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-16 16:41 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-04-16 18:56 [sashal-linux-stable:queue-5.4 24/25] drivers/scsi/qla2xxx/qla_init.c:156:12: error: static declaration of 'qla24xx_async_abort_cmd' follows non-static declaration kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202104170035.pgEudkot-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.