[PATCH 2/5] drm/amdgpu: use macro instead of enum for flags
Alex Deucher
alexdeucher at gmail.com
Thu Mar 21 15:55:25 UTC 2019
On Thu, Mar 21, 2019 at 3:29 AM Pan, Xinhui <Xinhui.Pan at amd.com> wrote:
>
> Signed-off-by: xinhui pan <xinhui.pan at amd.com>
Please provide a patch description. With that fixed:
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> index a2ab70a24314..5ece0671f108 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> @@ -118,9 +118,7 @@ const char *ras_block_string[] = {
> #define ras_err_str(i) (ras_error_string[ffs(i)])
> #define ras_block_str(i) (ras_block_string[i])
>
> -enum amdgpu_ras_flags {
> - AMDGPU_RAS_FLAG_INIT_BY_VBIOS = 1,
> -};
> +#define AMDGPU_RAS_FLAG_INIT_BY_VBIOS 1
> #define RAS_DEFAULT_FLAGS (AMDGPU_RAS_FLAG_INIT_BY_VBIOS)
>
> static void amdgpu_ras_self_test(struct amdgpu_device *adev)
> --
> 2.17.1
>
> _______________________________________________
> 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