[radeon-alex:amd-staging-drm-next 1033/1053] arch/ia64/include/uapi/asm/swab.h:20:23: warning: 'tmp' may be used uninitialized in this function

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

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   dcae401d111324489c066aa57ed9c77b97b475f9
commit: e2e8b699af4f02a8ce46d338bbb1d227f68523b1 [1033/1053] drm/amd/powerplay: add CI asics support to smumgr
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout e2e8b699af4f02a8ce46d338bbb1d227f68523b1
        # save the attached .config to linux build tree
        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 >>):

   In file included from include/uapi/linux/swab.h:6:0,
                    from include/linux/swab.h:4,
                    from include/uapi/linux/byteorder/little_endian.h:12,
                    from include/linux/byteorder/little_endian.h:4,
                    from arch/ia64/include/uapi/asm/byteorder.h:4,
                    from include/asm-generic/bitops/le.h:5,
                    from arch/ia64/include/asm/bitops.h:448,
                    from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/ci_smc.c:23:
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/ci_smc.c: In function 'ci_init_smc_table':
>> arch/ia64/include/uapi/asm/swab.h:20:23: warning: 'tmp' may be used uninitialized in this function [-Wmaybe-uninitialized]
    #define __arch_swab64 __arch_swab64
                          ^~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/ci_smc.c:571:11: note: 'tmp' was declared here
     uint16_t tmp;
              ^~~
--
   In file included from include/uapi/linux/swab.h:6:0,
                    from include/linux/swab.h:4,
                    from include/uapi/linux/byteorder/little_endian.h:12,
                    from include/linux/byteorder/little_endian.h:4,
                    from arch/ia64/include/uapi/asm/byteorder.h:4,
                    from include/asm-generic/bitops/le.h:5,
                    from arch/ia64/include/asm/bitops.h:448,
                    from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from drivers/gpu//drm/amd/amdgpu/../powerplay/smumgr/ci_smc.c:23:
   drivers/gpu//drm/amd/amdgpu/../powerplay/smumgr/ci_smc.c: In function 'ci_init_smc_table':
>> arch/ia64/include/uapi/asm/swab.h:20:23: warning: 'tmp' may be used uninitialized in this function [-Wmaybe-uninitialized]
    #define __arch_swab64 __arch_swab64
                          ^~~~~~~~~~~~~
   drivers/gpu//drm/amd/amdgpu/../powerplay/smumgr/ci_smc.c:571:11: note: 'tmp' was declared here
     uint16_t tmp;
              ^~~

vim +/tmp +20 arch/ia64/include/uapi/asm/swab.h

ae189623 arch/ia64/include/asm/swab.h Harvey Harrison 2009-01-06  12  
ae189623 arch/ia64/include/asm/swab.h Harvey Harrison 2009-01-06  13  static __inline__ __attribute_const__ __u64 __arch_swab64(__u64 x)
ae189623 arch/ia64/include/asm/swab.h Harvey Harrison 2009-01-06  14  {
ae189623 arch/ia64/include/asm/swab.h Harvey Harrison 2009-01-06  15  	__u64 result;
ae189623 arch/ia64/include/asm/swab.h Harvey Harrison 2009-01-06  16  
ae189623 arch/ia64/include/asm/swab.h Harvey Harrison 2009-01-06  17  	result = ia64_mux1(x, ia64_mux1_rev);
ae189623 arch/ia64/include/asm/swab.h Harvey Harrison 2009-01-06  18  	return result;
ae189623 arch/ia64/include/asm/swab.h Harvey Harrison 2009-01-06  19  }
ae189623 arch/ia64/include/asm/swab.h Harvey Harrison 2009-01-06 @20  #define __arch_swab64 __arch_swab64
ae189623 arch/ia64/include/asm/swab.h Harvey Harrison 2009-01-06  21  

:::::: The code at line 20 was first introduced by commit
:::::: ae189623b7248cd245c068a1aeb4983359f9c088 ia64: introduce asm/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

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux