]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix implicit enum conversion in gfx_v9_4_ras_error_inject
authorNathan Chancellor <natechancellor@gmail.com>
Thu, 30 Jan 2020 01:24:35 +0000 (18:24 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Jan 2020 22:15:43 +0000 (17:15 -0500)
commit39d9abba930fbc538a2f481597b26c377a1d1029
tree7a9636c18c6e81802c15d52b208fec6a09f09fc1
parentc92af50388e2fa0a2596c2d13d5496950e2f3765
drm/amdgpu: Fix implicit enum conversion in gfx_v9_4_ras_error_inject

Clang warns:

../drivers/gpu/drm/amd/amdgpu/gfx_v9_4.c:967:35: warning: implicit
conversion from enumeration type 'enum amdgpu_ras_block' to different
enumeration type 'enum ta_ras_block' [-Wenum-conversion]
        block_info.block_id = info->head.block;
                            ~ ~~~~~~~~~~~^~~~~
1 warning generated.

Use the function added in commit 8f10ff291b3d ("drm/amdgpu: Fix amdgpu
ras to ta enums conversion") that handles this conversion explicitly.

Fixes: 88600d16a817 ("drm/amdgpu: add RAS support for the gfx block of Arcturus")
Link: https://github.com/ClangBuiltLinux/linux/issues/849
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4.c