Skip to content

amdgpu clang warning fixes on next-20190703

Nathan Chancellor amd-gfx dri-devel lkml 1 version Applied

Status from this message: Applied the series. thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 12 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7drm/amdgpu/mes10.1: Fix header guarddrivers/gpu/drm/amd/amdgpu/mes_v10_1.h+1 -11 reply
2/7drm/amd/powerplay: Use memset to initialize metrics structsdrivers/gpu/drm/amd/powerplay/navi10_ppt.c+6 -20 replies
3/7drm/amd/powerplay: Use proper enums in smu_adjust_power_state_dynamicdrivers/gpu/drm/amd/powerplay/amdgpu_smu.c+2 -20 replies
4/7drm/amd/powerplay: Zero initialize freq in smu_v11_0_get_current_clk_freqdrivers/gpu/drm/amd/powerplay/smu_v11_0.c+1 -10 replies
5/7drm/amd/display: Use proper enum conversion functionsdrivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c+2 -26 replies
6/7drm/amd/powerplay: Use proper enums in vega20_print_clk_levelsdrivers/gpu/drm/amd/powerplay/vega20_ppt.c+3 -33 replies
7/7drm/amd/powerplay: Zero initialize current_rpm in vega20_get_fan_speed_percentdrivers/gpu/drm/amd/powerplay/vega20_ppt.c+1 -20 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchArnd BergmannLeo Li
1/7A-b
2/7
3/7
4/7
5/7R-b
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] amdgpu clang warning fixes on next-20190703

Hi all,

I don't do threaded patches very often so if I have messed something up, please forgive me :)

This series fixes all of the clang warnings that I saw added in next-20190703. The full list is visible in the gist linked below and each full individual warning can be seen in the GitHub link in each patch.

https://gist.github.com/5411af08b96c99b14e60c60800e99a47

All of the warnings are fixed in what I believe is the optimal way but the enum conversion warnings were the trickiest; please review carefully as the code paths for some of them have changed (especially in patch 3 and 6).

Thank you!
Nathan