summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
diff options
context:
space:
mode:
authorBrahmajit Das <listout@listout.xyz>2025-08-11 12:21:25 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-08-11 18:13:44 +0300
commit260dcf5b06d519bcf27a5dfdb5c626821a55c170 (patch)
tree79c14738be0b15e961c934890b2b62d1b97acfb0 /drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
parent388b68aef7319cfee7511b99826c46e951e2f1bd (diff)
downloadlinux-260dcf5b06d519bcf27a5dfdb5c626821a55c170.tar.xz
drm/radeon/r600_cs: clean up of dead code in r600_cs
GCC 16 enables -Werror=unused-but-set-variable= which results in build error with the following message. drivers/gpu/drm/radeon/r600_cs.c: In function ‘r600_texture_size’: drivers/gpu/drm/radeon/r600_cs.c:1411:29: error: variable ‘level’ set but not used [-Werror=unused-but-set-variable=] 1411 | unsigned offset, i, level; | ^~~~~ cc1: all warnings being treated as errors make[6]: *** [scripts/Makefile.build:287: drivers/gpu/drm/radeon/r600_cs.o] Error 1 level although is set, but in never used in the function r600_texture_size. Thus resulting in dead code and this error getting triggered. Fixes: 60b212f8ddcd ("drm/radeon: overhaul texture checking. (v3)") Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Brahmajit Das <listout@listout.xyz> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c')
0 files changed, 0 insertions, 0 deletions