Skip to contentSkip to conversation

drm/amdgpu: fix typo in amdgpu_ras_aca_sysfs_read() function

PATCH In review Yang Wang 2 participants 2 messages May 27, 2024

Subsystems (2)
lore
Share & tools
lore

Yang Wang

author
#0 lore raw

PATCH 1/1 drm/amdgpu: fix typo in amdgpu_ras_aca_sysfs_read() function

fix typo "info.ue_count" in amdgpu_ras_aca_sysfs_read() function.

Fixes edd67b5417f5 ("drm/amdgpu: add aca deferred error type support")
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +1 -1
index 8073716bc5ac..db4a811cc0f5 100644
@@ -1299,7 +1299,7 @@ ssize_t amdgpu_ras_aca_sysfs_read(struct device *dev, struct device_attribute *a
 		return -EINVAL;
 
 	return sysfs_emit(buf, "%s: %lu\n%s: %lu\n%s: %lu\n", "ue", info.ue_count,
-			  "ce", info.ce_count, "de", info.ue_count);
+			  "ce", info.ce_count, "de", info.de_count);
 }
 
 static int amdgpu_ras_query_error_status_helper(struct amdgpu_device *adev,
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Quoted 35 lines

-----Original Message-----
From: Wang, Yang(Kevin) <[email protected]>
Sent: Monday, May 27, 2024 3:47 PM
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Zhou1, Tao <[email protected]>; Chai, Thomas <[email protected]>
Subject: [PATCH] drm/amdgpu: fix typo in amdgpu_ras_aca_sysfs_read() function

fix typo "info.ue_count" in amdgpu_ras_aca_sysfs_read() function.

Fixes edd67b5417f5 ("drm/amdgpu: add aca deferred error type support")
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +1 -1
index 8073716bc5ac..db4a811cc0f5 100644
@@ -1299,7 +1299,7 @@ ssize_t amdgpu_ras_aca_sysfs_read(struct device
 *dev, struct device_attribute *a
              return -EINVAL;
 
      return sysfs_emit(buf, "%s: %lu\n%s: %lu\n%s: %lu\n", "ue",
 info.ue_count,
-                       "ce", info.ce_count, "de", info.ue_count);
+                       "ce", info.ce_count, "de", info.de_count);
 }

static int amdgpu_ras_query_error_status_helper(struct amdgpu_device *adev,
--
2.34.1