Hello devs,

While building the -next tree with allyesconfig and GCC 16, I got this
build error:

drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h:164:26: error: variable 
‘internal_reg_offset’ set but not used [-Werror=unused-but-set-variable=]
  164 |                 uint32_t internal_reg_offset, addr;                     
                        \
      |                          ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h:208:33: note: in definition of macro 
‘WREG32_SOC24_DPG_MODE’
  208 |                                 offset;                                 
                \
      |                                 ^~~~~~
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c:751:41: note: in expansion of macro 
‘SOC24_DPG_MODE_OFFSET’
  751 |         WREG32_SOC24_DPG_MODE(inst_idx, SOC24_DPG_MODE_OFFSET(
      |                                         ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

The WREG32_SOC24_DPG_MODE macro is calling the SOC24_DPG_MODE_OFFSET.
The variable internal_reg_offset, while not being used in
SOC24_DPG_MODE_OFFSET, is used in WREG32_SOC24_DPG_MODE. I might be
wrong though. So I'm wondering is there any *easy* way to fix this?

-- 
Regards,
listout

Reply via email to