[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
kernel test robot
lkp at intel.com
Fri Jun 26 04:48:09 UTC 2020
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 at intel.com>
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@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 36316 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200626/3d136bd7/attachment-0001.gz>
More information about the dri-devel
mailing list