Re: [PATCH] drm/amd/powerplay: work around enum conversion warnings

2019-07-15 Thread Arnd Bergmann
On Mon, Jul 8, 2019 at 6:05 PM Arnd Bergmann wrote: > On Mon, Jul 8, 2019 at 4:54 PM Nathan Chancellor > wrote: > > On Mon, Jul 08, 2019 at 03:57:06PM +0200, Arnd Bergmann wrote: > > > A couple of calls to smu_get_current_clk_freq() and smu_force_clk_levels() > > > pass constants of the wrong

Re: [PATCH] drm/amd/powerplay: work around enum conversion warnings

2019-07-08 Thread Arnd Bergmann
On Mon, Jul 8, 2019 at 4:54 PM Nathan Chancellor wrote: > > Hi Arnd, > > On Mon, Jul 08, 2019 at 03:57:06PM +0200, Arnd Bergmann wrote: > > A couple of calls to smu_get_current_clk_freq() and smu_force_clk_levels() > > pass constants of the wrong type, leading to warnings with clang-8: > > > >

Re: [PATCH] drm/amd/powerplay: work around enum conversion warnings

2019-07-08 Thread Nathan Chancellor
Hi Arnd, On Mon, Jul 08, 2019 at 03:57:06PM +0200, Arnd Bergmann wrote: > A couple of calls to smu_get_current_clk_freq() and smu_force_clk_levels() > pass constants of the wrong type, leading to warnings with clang-8: > > drivers/gpu/drm/amd/amdgpu/../powerplay/vega20_ppt.c:995:39: error:

[PATCH] drm/amd/powerplay: work around enum conversion warnings

2019-07-08 Thread Arnd Bergmann
A couple of calls to smu_get_current_clk_freq() and smu_force_clk_levels() pass constants of the wrong type, leading to warnings with clang-8: drivers/gpu/drm/amd/amdgpu/../powerplay/vega20_ppt.c:995:39: error: implicit conversion from enumeration type 'PPCLK_e' to different enumeration type