[PATCH 4/4] drm/amdgpu: Silent GCC warning
Alex Deucher
alexdeucher at gmail.com
Tue Jan 11 02:06:02 UTC 2022
I just sent these same three fixes earlier today:
https://patchwork.freedesktop.org/series/98695/
Alex
On Mon, Jan 10, 2022 at 6:39 PM Rodrigo Siqueira
<Rodrigo.Siqueira at amd.com> wrote:
>
> We have the following GCC warning:
>
> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h:400:10:
> error: ‘struct amdgpu_iv_entry’ declared inside parameter list will not
> be visible outside of this definition or declaration [-Werror]
> 400 | struct amdgpu_iv_entry *entry);
>
> Silent this warning
>
> Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
> index f604a2235a9c..62f1f97ef7f4 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
> @@ -395,6 +395,7 @@ struct ras_err_handler_data {
> int space_left;
> };
>
> +struct amdgpu_iv_entry;
> typedef int (*ras_ih_cb)(struct amdgpu_device *adev,
> void *err_data,
> struct amdgpu_iv_entry *entry);
> --
> 2.25.1
>
More information about the amd-gfx
mailing list