* [linux-next:master 2541/11103] drivers/scsi/qla2xxx/qla_isr.c:3443:32: sparse: sparse: incorrect type in assignment (different base types)
@ 2021-02-14 23:18 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-02-14 23:18 UTC (permalink / raw)
To: Bikash Hazarika
Cc: kbuild-all, Linux Memory Management List, Martin K. Petersen,
Himanshu Madhani, Saurav Kashyap, Arun Easi, Nilesh Javali
[-- Attachment #1: Type: text/plain, Size: 2473 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 07f7e57c63aaa2afb4ea31edef05e08699a63a00
commit: a04658594399e1fa25f984601b77ee840e6aaf01 [2541/11103] scsi: qla2xxx: Wait for ABTS response on I/O timeouts for NVMe
config: powerpc64-randconfig-s031-20210214 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=a04658594399e1fa25f984601b77ee840e6aaf01
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout a04658594399e1fa25f984601b77ee840e6aaf01
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/scsi/qla2xxx/qla_isr.c:3443:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] comp_status @@ got int @@
drivers/scsi/qla2xxx/qla_isr.c:3443:32: sparse: expected restricted __le16 [usertype] comp_status
drivers/scsi/qla2xxx/qla_isr.c:3443:32: sparse: got int
vim +3443 drivers/scsi/qla2xxx/qla_isr.c
3428
3429 static void
3430 qla24xx_abort_iocb_entry(scsi_qla_host_t *vha, struct req_que *req,
3431 struct abort_entry_24xx *pkt)
3432 {
3433 const char func[] = "ABT_IOCB";
3434 srb_t *sp;
3435 srb_t *orig_sp = NULL;
3436 struct srb_iocb *abt;
3437
3438 sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
3439 if (!sp)
3440 return;
3441
3442 abt = &sp->u.iocb_cmd;
> 3443 abt->u.abt.comp_status = le16_to_cpu(pkt->comp_status);
3444 orig_sp = sp->cmd_sp;
3445 /* Need to pass original sp */
3446 if (orig_sp)
3447 qla_nvme_abort_process_comp_status(pkt, orig_sp);
3448
3449 sp->done(sp, 0);
3450 }
3451
---
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: 28492 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [linux-next:master 2541/11103] drivers/scsi/qla2xxx/qla_isr.c:3443:32: sparse: sparse: incorrect type in assignment (different base types)
@ 2021-02-14 23:18 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-02-14 23:18 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2531 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 07f7e57c63aaa2afb4ea31edef05e08699a63a00
commit: a04658594399e1fa25f984601b77ee840e6aaf01 [2541/11103] scsi: qla2xxx: Wait for ABTS response on I/O timeouts for NVMe
config: powerpc64-randconfig-s031-20210214 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=a04658594399e1fa25f984601b77ee840e6aaf01
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout a04658594399e1fa25f984601b77ee840e6aaf01
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/scsi/qla2xxx/qla_isr.c:3443:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] comp_status @@ got int @@
drivers/scsi/qla2xxx/qla_isr.c:3443:32: sparse: expected restricted __le16 [usertype] comp_status
drivers/scsi/qla2xxx/qla_isr.c:3443:32: sparse: got int
vim +3443 drivers/scsi/qla2xxx/qla_isr.c
3428
3429 static void
3430 qla24xx_abort_iocb_entry(scsi_qla_host_t *vha, struct req_que *req,
3431 struct abort_entry_24xx *pkt)
3432 {
3433 const char func[] = "ABT_IOCB";
3434 srb_t *sp;
3435 srb_t *orig_sp = NULL;
3436 struct srb_iocb *abt;
3437
3438 sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
3439 if (!sp)
3440 return;
3441
3442 abt = &sp->u.iocb_cmd;
> 3443 abt->u.abt.comp_status = le16_to_cpu(pkt->comp_status);
3444 orig_sp = sp->cmd_sp;
3445 /* Need to pass original sp */
3446 if (orig_sp)
3447 qla_nvme_abort_process_comp_status(pkt, orig_sp);
3448
3449 sp->done(sp, 0);
3450 }
3451
---
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: 28492 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-14 23:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-14 23:18 [linux-next:master 2541/11103] drivers/scsi/qla2xxx/qla_isr.c:3443:32: sparse: sparse: incorrect type in assignment (different base types) kernel test robot
2021-02-14 23:18 ` kernel test robot
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.