Re: [PATCH v2 07/14] qla2xxx: Cleanups for NVRAM/Flash read/write path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: ia64-allyesconfig (attached as .config)
compiler: ia64-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=ia64 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_other':
   drivers/scsi/qla2xxx/qla_tmpl.c:784:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong type = le32_to_cpu(*qla_fw_addr32(ent->hdr.type));
           ^~~~
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t278':
   drivers/scsi/qla2xxx/qla_tmpl.c:769:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     ulong data_addr = le32_to_cpu(*qla_fw_addr32(ent->t278.data_addr));
           ^~~~~~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi/qla2xxx/qla_def.h:13,
                    from drivers/scsi/qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:763:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t278(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:767:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     ulong cmd_addr = le32_to_cpu(*qla_fw_addr32(ent->t278.cmd_addr));
           ^~~~~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi/qla2xxx/qla_def.h:13,
                    from drivers/scsi/qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:763:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t278(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t277':
   drivers/scsi/qla2xxx/qla_tmpl.c:33:18: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
      *(__le32 *)buf = cpu_to_le32(value);
   drivers/scsi/qla2xxx/qla_tmpl.c:745:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t277(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:749:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     ulong cmd_addr = le32_to_cpu(*qla_fw_addr32(ent->t277.cmd_addr));
           ^~~~~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:751:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     ulong data_addr = le32_to_cpu(*qla_fw_addr32(ent->t277.data_addr));
           ^~~~~~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t276':
   drivers/scsi/qla2xxx/qla_tmpl.c:728:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong cond1 = le32_to_cpu(*qla_fw_addr32(ent->t276.cond1));
           ^~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:729:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     ulong cond2 = le32_to_cpu(*qla_fw_addr32(ent->t276.cond2));
           ^~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t274':
   drivers/scsi/qla2xxx/qla_tmpl.c:637:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong type = le32_to_cpu(*qla_fw_addr32(ent->t274.queue_type));
           ^~~~
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t270':
   drivers/scsi/qla2xxx/qla_tmpl.c:558:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong dwords = le32_to_cpu(*qla_fw_addr32(ent->t270.count));
           ^~~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:553:1: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
    qla27xx_fwdt_entry_t270(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi/qla2xxx/qla_def.h:13,
                    from drivers/scsi/qla2xxx/qla_tmpl.c:7:
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t267':
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   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 arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi/qla2xxx/qla_def.h:13,
                    from drivers/scsi/qla2xxx/qla_tmpl.c:7:
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t261':
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   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 arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi/qla2xxx/qla_def.h:13,
                    from drivers/scsi/qla2xxx/qla_tmpl.c:7:
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t259':
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   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 arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi/qla2xxx/qla_def.h:13,
                    from drivers/scsi/qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   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 arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi/qla2xxx/qla_def.h:13,
                    from drivers/scsi/qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:218:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t259(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t258':
   drivers/scsi/qla2xxx/qla_tmpl.c:206:7: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     uint count = le16_to_cpu(*qla_fw_addr16(ent->t258.reg_count));
          ^~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi/qla2xxx/qla_def.h:13,
                    from drivers/scsi/qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:198:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t258(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi/qla2xxx/qla_def.h:13,
                    from drivers/scsi/qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:198:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t258(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi/qla2xxx/qla_def.h:13,
                    from drivers/scsi/qla2xxx/qla_tmpl.c:7:
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t257':
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:181:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t257(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi/qla2xxx/qla_def.h:13,
                    from drivers/scsi/qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:181:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t257(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t256':
   drivers/scsi/qla2xxx/qla_tmpl.c:175:2: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     qla27xx_read_window(reg, addr, offset, count, width, buf, len);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi/qla2xxx/qla_def.h:13,
                    from drivers/scsi/qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:164:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t256(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/byteorder/little_endian.h:5,
                    from arch/ia64/include/uapi/asm/byteorder.h:5,
                    from include/asm-generic/bitops/le.h:6,
                    from arch/ia64/include/asm/bitops.h:448,
                    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':
   include/uapi/linux/byteorder/little_endian.h:34:27: warning: 'x' is used uninitialized in this function [-Wuninitialized]
    #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                              ^
   drivers/scsi/qla2xxx/qla_tmpl.c:839:1: note: 'x' was declared here
    qla27xx_walk_template(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:844:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong count = le32_to_cpu(*qla_fw_addr32(tmp->entry_count));
           ^~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:830:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     while (list->type < type)
           ^
   drivers/scsi/qla2xxx/qla_tmpl.c:839:1: note: 'x' was declared here
    qla27xx_walk_template(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t275':
   drivers/scsi/qla2xxx/qla_tmpl.c:700:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong length = le32_to_cpu(*qla_fw_addr32(ent->t275.length));
           ^~~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:701:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong size = le32_to_cpu(*qla_fw_addr32(ent->hdr.size));
           ^~~~
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t272':
   drivers/scsi/qla2xxx/qla_tmpl.c:594:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong dwords = le32_to_cpu(*qla_fw_addr32(ent->t272.count));
           ^~~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:595:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     ulong start = le32_to_cpu(*qla_fw_addr32(ent->t272.addr));
           ^~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t262':
   drivers/scsi/qla2xxx/qla_tmpl.c:272:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong start = le32_to_cpu(*qla_fw_addr32(ent->t262.start_addr));
           ^~~~~
   drivers/scsi/qla2xxx/qla_tmpl.c:273:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong end = le32_to_cpu(*qla_fw_addr32(ent->t262.end_addr));
           ^~~
   drivers/scsi/qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_template_valid':
   drivers/scsi/qla2xxx/qla_tmpl.c:990:3: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
      ql_log(ql_log_warn, NULL, 0xd01c,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          "%s: template type %x\n", __func__,
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          le32_to_cpu(*qla_fw_addr32(tmp->template_type)));
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_other':
   drivers/scsi//qla2xxx/qla_tmpl.c:784:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong type = le32_to_cpu(*qla_fw_addr32(ent->hdr.type));
           ^~~~
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t278':
   drivers/scsi//qla2xxx/qla_tmpl.c:769:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     ulong data_addr = le32_to_cpu(*qla_fw_addr32(ent->t278.data_addr));
           ^~~~~~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi//qla2xxx/qla_def.h:13,
                    from drivers/scsi//qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:763:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t278(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:767:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     ulong cmd_addr = le32_to_cpu(*qla_fw_addr32(ent->t278.cmd_addr));
           ^~~~~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi//qla2xxx/qla_def.h:13,
                    from drivers/scsi//qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:763:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t278(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t277':
   drivers/scsi//qla2xxx/qla_tmpl.c:33:18: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
      *(__le32 *)buf = cpu_to_le32(value);
   drivers/scsi//qla2xxx/qla_tmpl.c:745:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t277(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:749:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     ulong cmd_addr = le32_to_cpu(*qla_fw_addr32(ent->t277.cmd_addr));
           ^~~~~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:751:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     ulong data_addr = le32_to_cpu(*qla_fw_addr32(ent->t277.data_addr));
           ^~~~~~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t276':
   drivers/scsi//qla2xxx/qla_tmpl.c:728:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong cond1 = le32_to_cpu(*qla_fw_addr32(ent->t276.cond1));
           ^~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:729:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     ulong cond2 = le32_to_cpu(*qla_fw_addr32(ent->t276.cond2));
           ^~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t274':
   drivers/scsi//qla2xxx/qla_tmpl.c:637:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong type = le32_to_cpu(*qla_fw_addr32(ent->t274.queue_type));
           ^~~~
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t270':
   drivers/scsi//qla2xxx/qla_tmpl.c:558:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong dwords = le32_to_cpu(*qla_fw_addr32(ent->t270.count));
           ^~~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:553:1: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
    qla27xx_fwdt_entry_t270(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi//qla2xxx/qla_def.h:13,
                    from drivers/scsi//qla2xxx/qla_tmpl.c:7:
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t267':
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   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 arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi//qla2xxx/qla_def.h:13,
                    from drivers/scsi//qla2xxx/qla_tmpl.c:7:
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t261':
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   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 arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi//qla2xxx/qla_def.h:13,
                    from drivers/scsi//qla2xxx/qla_tmpl.c:7:
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t259':
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   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 arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi//qla2xxx/qla_def.h:13,
                    from drivers/scsi//qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   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 arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi//qla2xxx/qla_def.h:13,
                    from drivers/scsi//qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:218:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t259(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t258':
   drivers/scsi//qla2xxx/qla_tmpl.c:206:7: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     uint count = le16_to_cpu(*qla_fw_addr16(ent->t258.reg_count));
          ^~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi//qla2xxx/qla_def.h:13,
                    from drivers/scsi//qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:198:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t258(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi//qla2xxx/qla_def.h:13,
                    from drivers/scsi//qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:198:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t258(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi//qla2xxx/qla_def.h:13,
                    from drivers/scsi//qla2xxx/qla_tmpl.c:7:
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t257':
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:181:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t257(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi//qla2xxx/qla_def.h:13,
                    from drivers/scsi//qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:181:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t257(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t256':
   drivers/scsi//qla2xxx/qla_tmpl.c:175:2: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     qla27xx_read_window(reg, addr, offset, count, width, buf, len);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/smp.h:21,
                    from include/linux/smp.h:68,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/scsi//qla2xxx/qla_def.h:13,
                    from drivers/scsi//qla2xxx/qla_tmpl.c:7:
>> arch/ia64/include/asm/io.h:362:42: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     *(volatile unsigned int __force *) addr = val;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:164:1: note: 'x' was declared here
    qla27xx_fwdt_entry_t256(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/byteorder/little_endian.h:5,
                    from arch/ia64/include/uapi/asm/byteorder.h:5,
                    from include/asm-generic/bitops/le.h:6,
                    from arch/ia64/include/asm/bitops.h:448,
                    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':
   include/uapi/linux/byteorder/little_endian.h:34:27: warning: 'x' is used uninitialized in this function [-Wuninitialized]
    #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                              ^
   drivers/scsi//qla2xxx/qla_tmpl.c:839:1: note: 'x' was declared here
    qla27xx_walk_template(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:844:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong count = le32_to_cpu(*qla_fw_addr32(tmp->entry_count));
           ^~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:830:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     while (list->type < type)
           ^
   drivers/scsi//qla2xxx/qla_tmpl.c:839:1: note: 'x' was declared here
    qla27xx_walk_template(struct scsi_qla_host *vha,
    ^~~~~~~~~~~~~~~~~~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t275':
   drivers/scsi//qla2xxx/qla_tmpl.c:700:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong length = le32_to_cpu(*qla_fw_addr32(ent->t275.length));
           ^~~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:701:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong size = le32_to_cpu(*qla_fw_addr32(ent->hdr.size));
           ^~~~
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t272':
   drivers/scsi//qla2xxx/qla_tmpl.c:594:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong dwords = le32_to_cpu(*qla_fw_addr32(ent->t272.count));
           ^~~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:595:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     ulong start = le32_to_cpu(*qla_fw_addr32(ent->t272.addr));
           ^~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_entry_t262':
   drivers/scsi//qla2xxx/qla_tmpl.c:272:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong start = le32_to_cpu(*qla_fw_addr32(ent->t262.start_addr));
           ^~~~~
   drivers/scsi//qla2xxx/qla_tmpl.c:273:8: warning: 'x' is used uninitialized in this function [-Wuninitialized]
     ulong end = le32_to_cpu(*qla_fw_addr32(ent->t262.end_addr));
           ^~~
   drivers/scsi//qla2xxx/qla_tmpl.c: In function 'qla27xx_fwdt_template_valid':
   drivers/scsi//qla2xxx/qla_tmpl.c:990:3: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
      ql_log(ql_log_warn, NULL, 0xd01c,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          "%s: template type %x\n", __func__,
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          le32_to_cpu(*qla_fw_addr32(tmp->template_type)));
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/x +362 arch/ia64/include/asm/io.h

^1da177e include/asm-ia64/io.h Linus Torvalds 2005-04-16  358  
^1da177e include/asm-ia64/io.h Linus Torvalds 2005-04-16  359  static inline void
^1da177e include/asm-ia64/io.h Linus Torvalds 2005-04-16  360  __writel (unsigned int val, volatile void __iomem *addr)
^1da177e include/asm-ia64/io.h Linus Torvalds 2005-04-16  361  {
^1da177e include/asm-ia64/io.h Linus Torvalds 2005-04-16 @362  	*(volatile unsigned int __force *) addr = val;
^1da177e include/asm-ia64/io.h Linus Torvalds 2005-04-16  363  }
^1da177e include/asm-ia64/io.h Linus Torvalds 2005-04-16  364  

:::::: The code at line 362 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux