OpenCloudOS-Kernel/drivers/gpu/drm/amd/powerplay
Nathan Chancellor 3ea81f7125 drm/amd/powerplay: Change id parameter type in pp_atomfwctrl_get_clk_information_by_clkid
Clang generates warnings when one enumerated type is implicitly
converted to another.

drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/ppatomfwctrl.c:532:57:
warning: implicit conversion from enumeration type 'enum
atom_smu11_syspll0_clock_id' to different enumeration type 'BIOS_CLKID'
      (aka 'enum atom_smu9_syspll0_clock_id') [-Wenum-conversion]
        if (!pp_atomfwctrl_get_clk_information_by_clkid(hwmgr,
SMU11_SYSPLL0_SOCCLK_ID, &frequency))

In this case, that is expected behavior. To make that clear to Clang
without explicitly casting these values, change id's type to uint8_t
in pp_atomfwctrl_get_clk_information_by_clkid so no conversion happens.

Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-09-27 09:40:09 -05:00
..
hwmgr drm/amd/powerplay: Change id parameter type in pp_atomfwctrl_get_clk_information_by_clkid 2018-09-27 09:40:09 -05:00
inc drm/amd/powerplay: update OD to take voltage value instead of offset 2018-09-19 12:37:55 -05:00
smumgr drm/amdgpu: implement ENABLED_SMC_FEATURES_MASK sensor for vega10 2018-09-26 21:09:10 -05:00
Makefile drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00
amd_powerplay.c drm/amd/pp: Add ACP PG support in SMU 2018-08-27 11:09:41 -05:00