* [linux-next:master 11501/14669] drivers/scsi/qla2xxx/qla_tmpl.c:1065:9: sparse: sparse: Trying to use reserved word 'if' as identifier
@ 2020-10-12 5:34 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-12 5:34 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 7162 bytes --]
CC: kbuild-all(a)lists.01.org
CC: Linux Memory Management List <linux-mm@kvack.org>
TO: Arun Easi <aeasi@marvell.com>
CC: "Martin K. Petersen" <martin.petersen@oracle.com>
CC: Himanshu Madhani <himanshu.madhani@oracle.com>
CC: Nilesh Javali <njavali@marvell.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d67bc7812221606e1886620a357b13f906814af7
commit: 3e6efab865ac943f4ec43913eb665695737112b0 [11501/14669] scsi: qla2xxx: Fix reset of MPI firmware
:::::: branch date: 3 days ago
:::::: commit date: 12 days ago
config: arm64-randconfig-s032-20201012 (attached as .config)
compiler: aarch64-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.2-229-g0c6896f4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3e6efab865ac943f4ec43913eb665695737112b0
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 3e6efab865ac943f4ec43913eb665695737112b0
# 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=arm64
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_tmpl.c:1058:1: sparse: sparse: Expected ; at end of statement
drivers/scsi/qla2xxx/qla_tmpl.c:1058:1: sparse: sparse: got }
drivers/scsi/qla2xxx/qla_tmpl.c:1063:9: sparse: sparse: Expected ; at the end of type declaration
drivers/scsi/qla2xxx/qla_tmpl.c:1063:9: sparse: sparse: got )
drivers/scsi/qla2xxx/qla_tmpl.c:1063:9: sparse: sparse: Expected ; at the end of type declaration
drivers/scsi/qla2xxx/qla_tmpl.c:1063:9: sparse: sparse: got }
drivers/scsi/qla2xxx/qla_tmpl.c:1065:13: sparse: sparse: Expected ) in function declarator
drivers/scsi/qla2xxx/qla_tmpl.c:1065:13: sparse: sparse: got !
>> drivers/scsi/qla2xxx/qla_tmpl.c:1065:9: sparse: sparse: Trying to use reserved word 'if' as identifier
drivers/scsi/qla2xxx/qla_tmpl.c:1067:9: sparse: sparse: Expected ; at the end of type declaration
drivers/scsi/qla2xxx/qla_tmpl.c:1067:9: sparse: sparse: got }
drivers/scsi/qla2xxx/qla_tmpl.c:1071:9: sparse: sparse: Expected ; at the end of type declaration
drivers/scsi/qla2xxx/qla_tmpl.c:1071:9: sparse: sparse: got }
drivers/scsi/qla2xxx/qla_tmpl.c:1076:24: sparse: sparse: Expected ) in function declarator
drivers/scsi/qla2xxx/qla_tmpl.c:1076:24: sparse: sparse: got 1
drivers/scsi/qla2xxx/qla_tmpl.c:1077:21: sparse: sparse: Expected ) in function declarator
drivers/scsi/qla2xxx/qla_tmpl.c:1077:21: sparse: sparse: got !
drivers/scsi/qla2xxx/qla_tmpl.c:1077:17: sparse: sparse: Trying to use reserved word 'if' as identifier
>> drivers/scsi/qla2xxx/qla_tmpl.c:1080:25: sparse: sparse: Trying to use reserved word 'return' as identifier
drivers/scsi/qla2xxx/qla_tmpl.c:1081:17: sparse: sparse: Expected ; at the end of type declaration
drivers/scsi/qla2xxx/qla_tmpl.c:1081:17: sparse: sparse: got }
drivers/scsi/qla2xxx/qla_tmpl.c:1083:25: sparse: sparse: Expected ) in function declarator
drivers/scsi/qla2xxx/qla_tmpl.c:1083:25: sparse: sparse: got ==
drivers/scsi/qla2xxx/qla_tmpl.c:1083:17: sparse: sparse: Trying to use reserved word 'if' as identifier
drivers/scsi/qla2xxx/qla_tmpl.c:1085:17: sparse: sparse: Expected ; at the end of type declaration
drivers/scsi/qla2xxx/qla_tmpl.c:1085:17: sparse: sparse: got }
drivers/scsi/qla2xxx/qla_tmpl.c:1089:17: sparse: sparse: Expected ; at the end of type declaration
drivers/scsi/qla2xxx/qla_tmpl.c:1089:17: sparse: sparse: got }
drivers/scsi/qla2xxx/qla_tmpl.c:1092:20: sparse: sparse: Expected ; at end of declaration
drivers/scsi/qla2xxx/qla_tmpl.c:1092:20: sparse: sparse: got ->
drivers/scsi/qla2xxx/qla_tmpl.c:1094:24: sparse: sparse: Expected ) in function declarator
drivers/scsi/qla2xxx/qla_tmpl.c:1094:24: sparse: sparse: got 1
drivers/scsi/qla2xxx/qla_tmpl.c:1097:45: sparse: sparse: Expected ) in function declarator
drivers/scsi/qla2xxx/qla_tmpl.c:1097:45: sparse: sparse: got ,
drivers/scsi/qla2xxx/qla_tmpl.c:1098:9: sparse: sparse: Expected ; at the end of type declaration
drivers/scsi/qla2xxx/qla_tmpl.c:1098:9: sparse: sparse: got }
drivers/scsi/qla2xxx/qla_tmpl.c:1063:9: sparse: sparse: undefined identifier '__ret_warn_on'
drivers/scsi/qla2xxx/qla_tmpl.c:1063:9: sparse: sparse: undefined identifier '__ret_warn_on'
drivers/scsi/qla2xxx/qla_tmpl.c:1074:29: sparse: sparse: undefined identifier 'vha'
vim +/if +1065 drivers/scsi/qla2xxx/qla_tmpl.c
cbb01c2f2f630f1 Arun Easi 2020-03-31 1059
f73cb695d3eccd1 Chad Dupuis 2014-02-26 1060 void
8ae178760b23e20 Bart Van Assche 2020-05-18 1061 qla27xx_fwdump(scsi_qla_host_t *vha)
f73cb695d3eccd1 Chad Dupuis 2014-02-26 1062 {
8ae178760b23e20 Bart Van Assche 2020-05-18 1063 lockdep_assert_held(&vha->hw->hardware_lock);
f73cb695d3eccd1 Chad Dupuis 2014-02-26 1064
a28d9e4ef99729d Joe Carnuccio 2019-03-12 @1065 if (!vha->hw->fw_dump) {
a28d9e4ef99729d Joe Carnuccio 2019-03-12 1066 ql_log(ql_log_warn, vha, 0xd01e, "-> fwdump no buffer\n");
a28d9e4ef99729d Joe Carnuccio 2019-03-12 1067 } else if (vha->hw->fw_dumped) {
a28d9e4ef99729d Joe Carnuccio 2019-03-12 1068 ql_log(ql_log_warn, vha, 0xd01f,
a28d9e4ef99729d Joe Carnuccio 2019-03-12 1069 "-> Firmware already dumped (%p) -- ignoring request\n",
a28d9e4ef99729d Joe Carnuccio 2019-03-12 1070 vha->hw->fw_dump);
a28d9e4ef99729d Joe Carnuccio 2019-03-12 1071 } else {
a28d9e4ef99729d Joe Carnuccio 2019-03-12 1072 struct fwdt *fwdt = vha->hw->fwdt;
a28d9e4ef99729d Joe Carnuccio 2019-03-12 1073 ulong len;
a28d9e4ef99729d Joe Carnuccio 2019-03-12 1074 void *buf = vha->hw->fw_dump;
a28d9e4ef99729d Joe Carnuccio 2019-03-12 1075
cbb01c2f2f630f1 Arun Easi 2020-03-31 1076 ql_log(ql_log_warn, vha, 0xd011, "-> fwdt0 running...\n");
a28d9e4ef99729d Joe Carnuccio 2019-03-12 1077 if (!fwdt->template) {
a28d9e4ef99729d Joe Carnuccio 2019-03-12 1078 ql_log(ql_log_warn, vha, 0xd012,
cbb01c2f2f630f1 Arun Easi 2020-03-31 1079 "-> fwdt0 no template\n");
8ae178760b23e20 Bart Van Assche 2020-05-18 @1080 return;
:::::: The code at line 1065 was first introduced by commit
:::::: a28d9e4ef99729d7e4db31d2dfeaf00755be4ab7 scsi: qla2xxx: Add support for multiple fwdump templates/segments
:::::: TO: Joe Carnuccio <joe.carnuccio@cavium.com>
:::::: 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: 41096 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-12 5:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-12 5:34 [linux-next:master 11501/14669] drivers/scsi/qla2xxx/qla_tmpl.c:1065:9: sparse: sparse: Trying to use reserved word 'if' as identifier 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.