[PATCH] drm/amdgpu/dc: Use WARN_ON_ONCE for ASSERT

Alex Deucher alexdeucher at gmail.com
Thu Apr 30 14:55:38 UTC 2020


On Wed, Apr 29, 2020 at 12:28 PM Michel Dänzer <michel at daenzer.net> wrote:
>
> From: Michel Dänzer <mdaenzer at redhat.com>
>
> Once should generally be enough for diagnosing what lead up to it,
> repeating it over and over can be pretty annoying.
>
> Signed-off-by: Michel Dänzer <mdaenzer at redhat.com>

Applied.  Thanks!

Alex

> ---
>  drivers/gpu/drm/amd/display/dc/os_types.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/os_types.h b/drivers/gpu/drm/amd/display/dc/os_types.h
> index c34eba19860a32..6d7bca562eec00 100644
> --- a/drivers/gpu/drm/amd/display/dc/os_types.h
> +++ b/drivers/gpu/drm/amd/display/dc/os_types.h
> @@ -108,7 +108,7 @@
>  #define ASSERT(expr) ASSERT_CRITICAL(expr)
>
>  #else
> -#define ASSERT(expr) WARN_ON(!(expr))
> +#define ASSERT(expr) WARN_ON_ONCE(!(expr))
>  #endif
>
>  #define BREAK_TO_DEBUGGER() ASSERT(0)
> --
> 2.26.2
>
> _______________________________________________
> 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