* [radeon-alex:amd-staging-4.9 447/467] drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:7260:2: warning: missing braces around initializer
@ 2017-01-19 2:04 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-01-19 2:04 UTC (permalink / raw)
To: Monk Liu; +Cc: kbuild-all, dri-devel, Christian König
[-- Attachment #1: Type: text/plain, Size: 3068 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 47225 bytes --]
[-- Attachment #3: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-19 2:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-19 2:04 [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
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.