[radeon-alex:amd-staging-4.9 447/467] drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:7260:2: warning: missing braces around initializer
kbuild test robot
fengguang.wu at intel.com
Thu Jan 19 02:04:14 UTC 2017
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.9
head: b835df46869363b4159bede011489ab368c33552
commit: 493b0bdd03aa5514f1e7f8c63b75f876a8df9608 [447/467] drm/amdgpu:implement CE/DE meta-init routines
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.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 493b0bdd03aa5514f1e7f8c63b75f876a8df9608
# save the attached .config to linux build tree
make.cross ARCH=xtensa
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c: In function 'gfx_v8_0_ring_emit_ce_meta_init':
>> drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:7260:2: warning: missing braces around initializer [-Wmissing-braces]
} ce_payload = {0};
^
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:7260:2: warning: (near initialization for 'ce_payload.regular') [-Wmissing-braces]
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c: In function 'gfx_v8_0_ring_emit_de_meta_init':
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:7287:2: warning: missing braces around initializer [-Wmissing-braces]
} de_payload = {0};
^
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:7287:2: warning: (near initialization for 'de_payload.regular') [-Wmissing-braces]
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c: At top level:
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:7253:13: warning: 'gfx_v8_0_ring_emit_ce_meta_init' defined but not used [-Wunused-function]
static void gfx_v8_0_ring_emit_ce_meta_init(struct amdgpu_ring *ring, uint64_t csa_addr)
^
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:7280:13: warning: 'gfx_v8_0_ring_emit_de_meta_init' defined but not used [-Wunused-function]
static void gfx_v8_0_ring_emit_de_meta_init(struct amdgpu_ring *ring, uint64_t csa_addr)
^
vim +7260 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
7244 const struct amdgpu_ip_block_version gfx_v8_1_ip_block =
7245 {
7246 .type = AMD_IP_BLOCK_TYPE_GFX,
7247 .major = 8,
7248 .minor = 1,
7249 .rev = 0,
7250 .funcs = &gfx_v8_0_ip_funcs,
7251 };
7252
7253 static void gfx_v8_0_ring_emit_ce_meta_init(struct amdgpu_ring *ring, uint64_t csa_addr)
7254 {
7255 uint64_t ce_payload_addr;
7256 int cnt_ce;
7257 static union {
7258 struct amdgpu_ce_ib_state regular;
7259 struct amdgpu_ce_ib_state_chained_ib chained;
> 7260 } ce_payload = {0};
7261
7262 if (ring->adev->virt.chained_ib_support) {
7263 ce_payload_addr = csa_addr + offsetof(struct amdgpu_gfx_meta_data_chained_ib, ce_payload);
7264 cnt_ce = (sizeof(ce_payload.chained) >> 2) + 4 - 2;
7265 } else {
7266 ce_payload_addr = csa_addr + offsetof(struct amdgpu_gfx_meta_data, ce_payload);
7267 cnt_ce = (sizeof(ce_payload.regular) >> 2) + 4 - 2;
7268 }
---
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: 47225 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170119/06364111/attachment-0001.gz>
More information about the dri-devel
mailing list