]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Use proper enum in pm_unmap_queues_v9()
authorNathan Chancellor <nathan@kernel.org>
Thu, 17 Feb 2022 16:21:42 +0000 (09:21 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Feb 2022 20:59:06 +0000 (15:59 -0500)
commit0d6acd32a5015be1bd1eb486587b7f99434dc136
tree14cc0d1eee5b7b3123ae80f55a100c4b3f2322c2
parent2deda1d115ac2238211d92918fef703dc726ffc5
drm/amdkfd: Use proper enum in pm_unmap_queues_v9()

Clang warns:

  drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_packet_manager_v9.c:267:3:
  error: implicit conversion from enumeration type 'enum
  mes_map_queues_extended_engine_sel_enum' to different enumeration type
  'enum mes_unmap_queues_extended_engine_sel_enum'
  [-Werror,-Wenum-conversion]
                  extended_engine_sel__mes_map_queues__sdma0_to_7_sel :
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.

Use 'extended_engine_sel__mes_unmap_queues__sdma0_to_7_sel' to eliminate
the warning, which is the same numeric value of the proper type.

Fixes: 413cd0d60ad8 ("drm/amdkfd: navi2x requires extended engines to map and unmap sdma queues")
Link: https://github.com/ClangBuiltLinux/linux/issues/1596
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c