[radeon-alex:drm-next 448/499] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_hw_lock_mgr.c:36:8: warning: missing braces around initializer

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

 



tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next
head:   7aebbbd59a2ee62e3b75d7e8e3617171c3c6a208
commit: 4dc079787b23524c4d88a21bc25db29e9e525eb2 [448/499] drm/amd/display: Use dmub fw to lock pipe, cursor, dig
config: i386-randconfig-a014-20200624 (attached as .config)
compiler: gcc-4.9 (Ubuntu 4.9.3-13ubuntu2) 4.9.3
reproduce (this is a W=1 build):
        git checkout 4dc079787b23524c4d88a21bc25db29e9e525eb2
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67:0,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:30,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_hw_lock_mgr.h:29,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_hw_lock_mgr.c:26:
   drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
   drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:752:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
      uint64_t temp;
               ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_hw_lock_mgr.c: In function 'dmub_hw_lock_mgr_cmd':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_hw_lock_mgr.c:36:8: warning: missing braces around initializer [-Wmissing-braces]
     union dmub_rb_cmd cmd = { 0 };
           ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_hw_lock_mgr.c:36:8: warning: (near initialization for 'cmd.lock_hw') [-Wmissing-braces]
--
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67:0,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:30,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hwseq.c:52:
   drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
   drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:752:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
      uint64_t temp;
               ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hwseq.c: At top level:
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hwseq.c:1081:6: warning: no previous prototype for 'dcn20_enable_plane' [-Wmissing-prototypes]
    void dcn20_enable_plane(
         ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hwseq.c: In function 'dcn20_pipe_control_lock':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hwseq.c:1200:9: warning: missing braces around initializer [-Wmissing-braces]
      union dmub_hw_lock_flags hw_locks = { 0 };
            ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hwseq.c:1200:9: warning: (near initialization for 'hw_locks.bits') [-Wmissing-braces]
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hwseq.c: In function 'dcn20_update_dchubp_dpp':
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hwseq.c:1369:7: warning: variable 'viewport_changed' set but not used [-Wunused-but-set-variable]
     bool viewport_changed = false;
          ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hwseq.c: At top level:
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_hwseq.c:2200:6: warning: no previous prototype for 'dcn20_get_mpctree_visual_confirm_color' [-Wmissing-prototypes]
    void dcn20_get_mpctree_visual_confirm_color(
         ^
--
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67:0,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:30,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:61:
   drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
   drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:752:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
      uint64_t temp;
               ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c: At top level:
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:777:6: warning: no previous prototype for 'apply_ctx_interdependent_lock' [-Wmissing-prototypes]
    void apply_ctx_interdependent_lock(struct dc *dc, struct dc_state *context, struct dc_stream_state *stream, bool lock)
         ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c: In function 'commit_planes_for_stream':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:2328:11: warning: missing braces around initializer [-Wmissing-braces]
        union dmub_hw_lock_flags hw_locks = { 0 };
              ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:2328:11: warning: (near initialization for 'hw_locks.bits') [-Wmissing-braces]
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:2513:11: warning: missing braces around initializer [-Wmissing-braces]
        union dmub_hw_lock_flags hw_locks = { 0 };
              ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:2513:11: warning: (near initialization for 'hw_locks.bits') [-Wmissing-braces]

vim +36 drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_hw_lock_mgr.c

    30	
    31	void dmub_hw_lock_mgr_cmd(struct dc_dmub_srv *dmub_srv,
    32					bool lock,
    33					union dmub_hw_lock_flags *hw_locks,
    34					struct dmub_hw_lock_inst_flags *inst_flags)
    35	{
  > 36		union dmub_rb_cmd cmd = { 0 };
    37	
    38		cmd.lock_hw.header.type = DMUB_CMD__HW_LOCK;
    39		cmd.lock_hw.header.sub_type = 0;
    40		cmd.lock_hw.header.payload_bytes = sizeof(struct dmub_cmd_lock_hw_data);
    41		cmd.lock_hw.lock_hw_data.client = HW_LOCK_CLIENT_DRIVER;
    42		cmd.lock_hw.lock_hw_data.lock = lock;
    43		cmd.lock_hw.lock_hw_data.hw_locks.u8All = hw_locks->u8All;
    44		memcpy(&cmd.lock_hw.lock_hw_data.inst_flags, inst_flags, sizeof(struct dmub_hw_lock_inst_flags));
    45	
    46		if (!lock)
    47			cmd.lock_hw.lock_hw_data.should_release = 1;
    48	
    49		dc_dmub_srv_cmd_queue(dmub_srv, &cmd);
    50		dc_dmub_srv_cmd_execute(dmub_srv);
    51		dc_dmub_srv_wait_idle(dmub_srv);
    52	}
    53	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

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