Hi Joe, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on scsi/for-next] [also build test WARNING on next-20190306] [cannot apply to v5.0] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Himanshu-Madhani/qla2xxx-Add-support-for-ISP28XX-Gen7-adapter/20190309-120215 base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next config: xtensa-allyesconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 8.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree GCC_VERSION=8.2.0 make.cross ARCH=xtensa All warnings (new ones prefixed by >>): In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_other': >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:781:1: note: 'x' was declared here qla27xx_fwdt_entry_other(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t276': >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:725:1: note: 'x' was declared here qla27xx_fwdt_entry_t276(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:725:1: note: 'x' was declared here qla27xx_fwdt_entry_t276(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_walk_template': >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:839:1: note: 'x' was declared here qla27xx_walk_template(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:839:1: note: 'x' was declared here qla27xx_walk_template(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:839:1: note: 'x' was declared here qla27xx_walk_template(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t278': >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:763:1: note: 'x' was declared here qla27xx_fwdt_entry_t278(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:763:1: note: 'x' was declared here qla27xx_fwdt_entry_t278(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:763:1: note: 'x' was declared here qla27xx_fwdt_entry_t278(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:763:1: note: 'x' was declared here qla27xx_fwdt_entry_t278(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t277': >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:745:1: note: 'x' was declared here qla27xx_fwdt_entry_t277(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:745:1: note: 'x' was declared here qla27xx_fwdt_entry_t277(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:745:1: note: 'x' was declared here qla27xx_fwdt_entry_t277(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t274': >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:634:1: note: 'x' was declared here qla27xx_fwdt_entry_t274(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t270': >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:553:1: note: 'x' was declared here qla27xx_fwdt_entry_t270(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:553:1: note: 'x' was declared here qla27xx_fwdt_entry_t270(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t267': >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:451:1: note: 'x' was declared here qla27xx_fwdt_entry_t267(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t261': >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:253:1: note: 'x' was declared here qla27xx_fwdt_entry_t261(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t259': >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:218:1: note: 'x' was declared here qla27xx_fwdt_entry_t259(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: >> arch/xtensa/include/uapi/asm/swab.h:24:5: warning: 'x' is used uninitialized in this function [-Wuninitialized] __asm__("ssai 8 \n\t" ^~~~~~~ drivers/scsi/qla2xxx/qla_tmpl.c:218:1: note: 'x' was declared here qla27xx_fwdt_entry_t259(struct scsi_qla_host *vha, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/swab.h:7, from include/linux/swab.h:5, from include/uapi/linux/byteorder/big_endian.h:13, from include/linux/byteorder/big_endian.h:5, from arch/xtensa/include/uapi/asm/byteorder.h:8, from arch/xtensa/include/asm/bitops.h:23, from include/linux/bitops.h:19, from include/linux/kernel.h:11, from drivers/scsi/qla2xxx/qla_def.h:10, from drivers/scsi/qla2xxx/qla_tmpl.c:7: .. vim +/x +24 arch/xtensa/include/uapi/asm/swab.h 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 19 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 20 static inline __attribute_const__ __u32 __arch_swab32(__u32 x) 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 21 { 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 22 __u32 res; 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 23 /* instruction sequence from Xtensa ISA release 2/2000 */ 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 @24 __asm__("ssai 8 \n\t" 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 25 "srli %0, %1, 16 \n\t" 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 26 "src %0, %0, %1 \n\t" 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 27 "src %0, %0, %0 \n\t" 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 28 "src %0, %1, %0 \n" 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 29 : "=&a" (res) 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 30 : "a" (x) 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 31 ); 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 32 return res; 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 33 } 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 34 #define __arch_swab32 __arch_swab32 8903709b arch/xtensa/include/asm/swab.h Harvey Harrison 2009-01-07 35 :::::: The code at line 24 was first introduced by commit :::::: 8903709b054a8dafe4e8c6d9a6444034d7aba36f xtensa: introduce swab.h :::::: TO: Harvey Harrison <harvey.harrison@xxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip