[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <39e1fcca-c2f4-2342-3f8c-76996024ebda@amd.com>
Date: Mon, 25 Jan 2021 10:39:35 -0500
From: Harry Wentland <harry.wentland@....com>
To: Arnd Bergmann <arnd@...nel.org>, Leo Li <sunpeng.li@....com>,
Alex Deucher <alexander.deucher@....com>,
Christian König <christian.koenig@....com>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Bhawanpreet Lakha <Bhawanpreet.Lakha@....com>,
Nicholas Kazlauskas <nicholas.kazlauskas@....com>
Cc: Stylon Wang <stylon.wang@....com>, Arnd Bergmann <arnd@...db.de>,
Simon Ser <contact@...rsion.fr>,
Rodrigo Siqueira <Rodrigo.Siqueira@....com>,
linux-kernel@...r.kernel.org, amd-gfx@...ts.freedesktop.org,
Aurabindo Pillai <aurabindo.pillai@....com>,
dri-devel@...ts.freedesktop.org,
Bas Nieuwenhuizen <bas@...nieuwenhuizen.nl>
Subject: Re: [PATCH] drm/amd/display: fix unused variable warning
On 2021-01-25 7:48 a.m., Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> After all users of the 'dm' warnings got hidden in an #ifdef,
> the compiler started warning about it being unused:
>
> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5380:33: error: unused variable 'dm' [-Werror,-Wunused-variable]
>
> Add another such #ifdef.
>
> Fixes: 98ab5f3513f9 ("drm/amd/display: Fix deadlock during gpu reset v3")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Reviewed-by: Harry Wentland <harry.wentland@....com>
Harry
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> 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 a90dc4d31c32..37bf2dd87e1e 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -5377,7 +5377,9 @@ static inline int dm_set_vblank(struct drm_crtc *crtc, bool enable)
> struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc);
> struct amdgpu_device *adev = drm_to_adev(crtc->dev);
> struct dm_crtc_state *acrtc_state = to_dm_crtc_state(crtc->state);
> +#if defined(CONFIG_DRM_AMD_DC_DCN)
> struct amdgpu_display_manager *dm = &adev->dm;
> +#endif
> int rc = 0;
>
> if (enable) {
>
Powered by blists - more mailing lists