[radeon-alex:amd-staging-4.7 1579/1595] drivers/gpu/drm/amd/amdgpu/../dal/dc/core/dc.c:1261:49: warning: missing braces around initializer
kbuild test robot
fengguang.wu at intel.com
Thu Oct 6 20:16:48 UTC 2016
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.7
head: a776b1b07d41d92a8ea3d38b844300f25cd0aa8f
commit: 3fbe5dd7f993e1057a58513d209d601e1c43dd42 [1579/1595] drm/amd/dal: clean up surface programmming code part 2
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
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 3fbe5dd7f993e1057a58513d209d601e1c43dd42
# save the attached .config to linux build tree
make.cross ARCH=ia64
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../dal/dc/core/dc.c: In function 'dc_commit_surfaces_to_target':
>> drivers/gpu/drm/amd/amdgpu/../dal/dc/core/dc.c:1261:49: warning: missing braces around initializer [-Wmissing-braces]
struct dc_flip_addrs flip_addr[MAX_SURFACES] = {{ 0 } };
^
drivers/gpu/drm/amd/amdgpu/../dal/dc/core/dc.c:1261:49: note: (near initialization for 'flip_addr')
drivers/gpu/drm/amd/amdgpu/../dal/dc/core/dc.c:1262:50: warning: missing braces around initializer [-Wmissing-braces]
struct dc_plane_info plane_info[MAX_SURFACES] = {{ 0 } };
^
drivers/gpu/drm/amd/amdgpu/../dal/dc/core/dc.c:1262:50: note: (near initialization for 'plane_info')
drivers/gpu/drm/amd/amdgpu/../dal/dc/core/dc.c:1263:54: warning: missing braces around initializer [-Wmissing-braces]
struct dc_scaling_info scaling_info[MAX_SURFACES] = {{ 0 } };
^
drivers/gpu/drm/amd/amdgpu/../dal/dc/core/dc.c:1263:54: note: (near initialization for 'scaling_info')
At top level:
drivers/gpu/drm/amd/amdgpu/../dal/dc/core/dc.c:812:13: warning: 'target_disable_memory_requests' defined but not used [-Wunused-function]
static void target_disable_memory_requests(struct dc_target *dc_target,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +1261 drivers/gpu/drm/amd/amdgpu/../dal/dc/core/dc.c
1245
1246 core_dc->hwss.set_bandwidth(core_dc);
1247
1248 pplib_apply_display_requirements(
1249 core_dc, core_dc->current_context, &core_dc->current_context->pp_display_cfg);
1250
1251 return true;
1252 }
1253
1254 bool dc_commit_surfaces_to_target(
1255 struct dc *dc,
1256 const struct dc_surface **new_surfaces,
1257 uint8_t new_surface_count,
1258 struct dc_target *dc_target)
1259 {
1260 struct dc_surface_update updates[MAX_SURFACES] = { 0 };
> 1261 struct dc_flip_addrs flip_addr[MAX_SURFACES] = {{ 0 } };
1262 struct dc_plane_info plane_info[MAX_SURFACES] = {{ 0 } };
1263 struct dc_scaling_info scaling_info[MAX_SURFACES] = {{ 0 } };
1264 int i;
1265
1266 if (!dc_pre_update_surfaces_to_target(
1267 dc, new_surfaces, new_surface_count, dc_target))
1268 return false;
1269
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 43764 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161007/69fdaa41/attachment-0001.gz>
More information about the dri-devel
mailing list