drm/amdgpu: fix compiler warning for amdgpu_gfx_cp_init_microcode
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 drm/amdgpu: fix compiler warning for amdgpu_gfx_cp_init_microcode
[AMD Official Use Only - General]
From: Likun Gao <[email protected]>
Change the type of parameter on amdgpu_gfx_cp_init_microcode to fix compiler warning.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +1 -1
@@ -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; diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
index e9087f83d764..832b3807f1d6 100644
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h +2 -1
@@ -426,6 +426,6 @@ int amdgpu_gfx_cp_ecc_error_irq(struct amdgpu_device *adev, uint32_t amdgpu_kiq_rreg(struct amdgpu_device *adev, uint32_t reg); void amdgpu_kiq_wreg(struct amdgpu_device *adev, uint32_t reg, uint32_t v); 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); +void amdgpu_gfx_cp_init_microcode (struct amdgpu_device *adev,uint32_t +ucode_id);#endif --
2.25.1
[AMD Official Use Only - General]
Regards,
Hawking
-----Original Message-----
From: Gao, Likun <[email protected]>
Sent: Tuesday, September 27, 2022 17:34
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Kuehling, Felix <[email protected]>
Subject: [PATCH] drm/amdgpu: fix compiler warning for amdgpu_gfx_cp_init_microcode
[AMD Official Use Only - General]
From: Likun Gao <[email protected]>
Change the type of parameter on amdgpu_gfx_cp_init_microcode to fix compiler warning.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +1 -1
@@ -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; diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
index e9087f83d764..832b3807f1d6 100644
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h +2 -1
@@ -426,6 +426,6 @@ int amdgpu_gfx_cp_ecc_error_irq(struct amdgpu_device *adev, uint32_t amdgpu_kiq_rreg(struct amdgpu_device *adev, uint32_t reg); void amdgpu_kiq_wreg(struct amdgpu_device *adev, uint32_t reg, uint32_t v); 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); +void amdgpu_gfx_cp_init_microcode (struct amdgpu_device *adev,uint32_t +ucode_id);#endif --
2.25.1