[radeon-alex:amd-staging-4.9 447/467] drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:7260:2: 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 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: .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