Skip to contentSkip to conversation

drm/amdgpu: fix compiler warning for amdgpu_gfx_cp_init_microcode

PATCH In review Gao, Likun 2 participants 2 messages Sep 27, 2022 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Gao, Likun

author
#1 lore raw

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
index e3535a963c5a..9546adc8a76f 100644
@@ -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

Reviewed-by on v1 1/1
#2 lore raw

[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
index e3535a963c5a..9546adc8a76f 100644
@@ -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