[radeon-alex:amd-staging-drm-next 149/158] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1740:2: warning: ISO C90 forbids mixed declarations and code

[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:   5d8e75c019bf76889bd606a67afabf7d0b32d3fa
commit: 23ffa1200a5abc5b724fe87bb4a7291fce85bba2 [149/158] drm/amd/display: DAL3: HDR10 Infoframe encoding
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 23ffa1200a5abc5b724fe87bb4a7291fce85bba2
        # save the attached .config to linux build tree
        make.cross ARCH=alpha 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c: In function 'set_hdr_static_info_packet':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1740:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     struct dc_hdr_static_metadata hdr_metadata =
     ^~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1760:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     uint32_t data;
     ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c: In function 'set_avi_info_frame':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1495:38: warning: iteration 28 invokes undefined behavior [-Waggressive-loop-optimizations]
      info_packet->sb[byte_index] = info_frame.avi_info_packet.
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
      info_packet_hdmi.packet_raw_data.sb[byte_index];
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1493:2: note: within this loop
     for (byte_index = 0; byte_index < sizeof(info_packet->sb); byte_index++)
     ^~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c: In function 'set_hdr_static_info_packet.isra.7':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1734:11: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
     uint16_t i;
              ^

vim +1740 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c

  1728	
  1729	static void set_hdr_static_info_packet(
  1730			struct core_surface *surface,
  1731			struct core_stream *stream,
  1732			struct hw_info_packet *info_packet)
  1733	{
> 1734		uint16_t i;
  1735		enum signal_type signal = stream->signal;
  1736	
  1737		if (!surface)
  1738			return;
  1739	
> 1740		struct dc_hdr_static_metadata hdr_metadata =
  1741				surface->public.hdr_static_ctx;
  1742	
  1743		if (dc_is_hdmi_signal(signal)) {

---
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