diff options
author | Nathan Chancellor | 2018-09-21 23:01:06 +0200 |
---|---|---|
committer | Alex Deucher | 2018-09-27 16:40:09 +0200 |
commit | 3ea81f7125dfda80e264e4552b1146c88eff1aa7 (patch) | |
tree | b570989f2c729e4f1f924c98dbfda7e7773b2129 /drivers/gpu/drm/scheduler | |
parent | drm/amdkfd: Remove the requirement for atomic Ops on vg20 (diff) | |
download | kernel-qcow2-linux-3ea81f7125dfda80e264e4552b1146c88eff1aa7.tar.gz kernel-qcow2-linux-3ea81f7125dfda80e264e4552b1146c88eff1aa7.tar.xz kernel-qcow2-linux-3ea81f7125dfda80e264e4552b1146c88eff1aa7.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/scheduler')
0 files changed, 0 insertions, 0 deletions