Reviewed-by: Philip Yang <Philip.Yang@xxxxxxx> On 2019-10-17 1:56 p.m., Kim, Jonathan wrote: > fixing compiler warnings in df v3.6 for c-state toggle and pmc count. > > Change-Id: I74f8f1eafccf523a89d60d005e3549235f75c6b8 > Signed-off-by: Jonathan Kim <Jonathan.Kim@xxxxxxx> > --- > drivers/gpu/drm/amd/amdgpu/df_v3_6.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/df_v3_6.c b/drivers/gpu/drm/amd/amdgpu/df_v3_6.c > index f403c62c944e..e1cf7e9c616a 100644 > --- a/drivers/gpu/drm/amd/amdgpu/df_v3_6.c > +++ b/drivers/gpu/drm/amd/amdgpu/df_v3_6.c > @@ -93,7 +93,7 @@ const struct attribute_group *df_v3_6_attr_groups[] = { > NULL > }; > > -static df_v3_6_set_df_cstate(struct amdgpu_device *adev, int allow) > +static int df_v3_6_set_df_cstate(struct amdgpu_device *adev, int allow) > { > int r = 0; > > @@ -546,7 +546,7 @@ static void df_v3_6_pmc_get_count(struct amdgpu_device *adev, > uint64_t config, > uint64_t *count) > { > - uint32_t lo_base_addr, hi_base_addr, lo_val, hi_val; > + uint32_t lo_base_addr, hi_base_addr, lo_val = 0, hi_val = 0; > *count = 0; > > switch (adev->asic_type) { > _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx