aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
diff options
context:
space:
mode:
authorLikun Gao <[email protected]>2022-09-27 09:15:20 +0000
committerAlex Deucher <[email protected]>2022-09-29 13:41:46 +0000
commit2d89e2ddfd00ca569dd73883c7c70badbd57f4ac (patch)
tree6dc04e9fa7ab2100da01dd7ca231bceb53a9cfed /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
parentdrm/amdgpu: fix a compiling error in old kernels (diff)
downloadkernel-2d89e2ddfd00ca569dd73883c7c70badbd57f4ac.tar.gz
kernel-2d89e2ddfd00ca569dd73883c7c70badbd57f4ac.zip
drm/amdgpu: fix compiler warning for amdgpu_gfx_cp_init_microcode
Change the type of parameter on amdgpu_gfx_cp_init_microcode to fix compiler warning. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
index e3535a963c5a..9546adc8a76f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
@@ -868,7 +868,7 @@ int amdgpu_gfx_get_num_kcq(struct amdgpu_device *adev)
}
void amdgpu_gfx_cp_init_microcode(struct amdgpu_device *adev,
- enum AMDGPU_UCODE_ID ucode_id)
+ uint32_t ucode_id)
{
const struct gfx_firmware_header_v1_0 *cp_hdr;
const struct gfx_firmware_header_v2_0 *cp_hdr_v2_0;