[PATCH -next] drm/amd/display: Fix the Wunused-function warning
Alex Deucher
alexdeucher at gmail.com
Thu Apr 8 20:14:49 UTC 2021
Applied. Thanks.
Alex
On Thu, Apr 8, 2021 at 11:09 AM Harry Wentland <harry.wentland at amd.com> wrote:
>
> On 2021-04-08 8:41 a.m., Shaokun Zhang wrote:
> > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:941:13: warning: ‘dm_dmub_trace_high_irq’ defined but not used [-Wunused-function]
> > 941 | static void dm_dmub_trace_high_irq(void *interrupt_params)
> > | ^~~~~~~~~~~~~~~~~~~~~~
> >
> > Fixes: 83b39e1fc3ea ("drm/amd/display: Log DMCUB trace buffer events")
> > Cc: Leo (Hanghong) Ma <hanghong.ma at amd.com>
> > Cc: Daniel Wheeler <daniel.wheeler at amd.com>
> > Cc: Harry Wentland <Harry.Wentland at amd.com>
> > Cc: Solomon Chiu <solomon.chiu at amd.com>
> > Cc: Alex Deucher <alexander.deucher at amd.com>
> > Signed-off-by: Shaokun Zhang <zhangshaokun at hisilicon.com>
>
> Reviewed-by: Harry Wentland <harry.wentland at amd.com>
>
> Harry
>
> > ---
> > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> > index daacc5cc8d51..5298e5d4075b 100644
> > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> > @@ -937,6 +937,7 @@ static int dm_dmub_hw_init(struct amdgpu_device *adev)
> > return 0;
> > }
> >
> > +#if defined(CONFIG_DRM_AMD_DC_DCN)
> > #define DMUB_TRACE_MAX_READ 64
> > static void dm_dmub_trace_high_irq(void *interrupt_params)
> > {
> > @@ -963,7 +964,6 @@ static void dm_dmub_trace_high_irq(void *interrupt_params)
> > ASSERT(count <= DMUB_TRACE_MAX_READ);
> > }
> >
> > -#if defined(CONFIG_DRM_AMD_DC_DCN)
> > static void mmhub_read_system_context(struct amdgpu_device *adev, struct dc_phy_addr_space_config *pa_config)
> > {
> > uint64_t pt_base;
> >
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list