linux-next: build warning after merge of the amdgpu tree

From: Stephen Rothwell
Date: Thu May 09 2019 - 21:00:45 EST


Hi all,

After merging the amdgpu tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

In file included from drivers/gpu/drm/amd/amdgpu/df_v3_6.c:23:
drivers/gpu/drm/amd/amdgpu/df_v3_6.c: In function 'df_v3_6_pmc_start':
drivers/gpu/drm/amd/amdgpu/amdgpu.h:1010:29: warning: 'lo_val' may be used uninitialized in this function [-Wmaybe-uninitialized]
#define WREG32_PCIE(reg, v) adev->pcie_wreg(adev, (reg), (v))
^~~~
drivers/gpu/drm/amd/amdgpu/df_v3_6.c:334:39: note: 'lo_val' was declared here
uint32_t lo_base_addr, hi_base_addr, lo_val, hi_val;
^~~~~~

Introduced by commit

a6ac0b44bab9 ("drm/amdgpu: add df perfmon regs and funcs for xgmi")

--
Cheers,
Stephen Rothwell

Attachment: pgp8_lTD3YNm1.pgp
Description: OpenPGP digital signature