Skip to contentSkip to conversation

cxl/trace: Fix uncorrectable macro spelling

PATCH In review Ira Weiny 3 participants 3 messages Feb 22, 2024 CXL

lore
Share & tools
lore

Ira Weiny

author
#0 lore raw

PATCH 1/1 cxl/trace: Fix uncorrectable macro spelling

Uncorrectable is spelled with two r's.

Fix the macro spelling.

---
 drivers/cxl/core/trace.h     | 4 ++--
 tools/testing/cxl/test/mem.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/cxl/core/trace.h +2 -2
index bdf117a33744..577a01954f71 100644
@@ -267,11 +267,11 @@ TRACE_EVENT(cxl_generic_event,
  * General Media Event Record - GMER
  * CXL rev 3.0 Section 8.2.9.2.1.1; Table 8-43
  */
-#define CXL_GMER_EVT_DESC_UNCORECTABLE_EVENT		BIT(0)
+#define CXL_GMER_EVT_DESC_UNCORRECTABLE_EVENT		BIT(0)
 #define CXL_GMER_EVT_DESC_THRESHOLD_EVENT		BIT(1)
 #define CXL_GMER_EVT_DESC_POISON_LIST_OVERFLOW		BIT(2)
 #define show_event_desc_flags(flags)	__print_flags(flags, "|",		   \
-	{ CXL_GMER_EVT_DESC_UNCORECTABLE_EVENT,		"UNCORRECTABLE_EVENT"	}, \
+	{ CXL_GMER_EVT_DESC_UNCORRECTABLE_EVENT,	"UNCORRECTABLE_EVENT"	}, \
 	{ CXL_GMER_EVT_DESC_THRESHOLD_EVENT,		"THRESHOLD_EVENT"	}, \
 	{ CXL_GMER_EVT_DESC_POISON_LIST_OVERFLOW,	"POISON_LIST_OVERFLOW"	}  \
 )
tools/testing/cxl/test/mem.c +1 -1
index 35ee41e435ab..c0c1e6b4db75 100644
@@ -380,7 +380,7 @@ struct cxl_test_gen_media gen_media = {
 			.related_handle = cpu_to_le16(0),
 		},
 		.phys_addr = cpu_to_le64(0x2000),
-		.descriptor = CXL_GMER_EVT_DESC_UNCORECTABLE_EVENT,
+		.descriptor = CXL_GMER_EVT_DESC_UNCORRECTABLE_EVENT,
 		.type = CXL_GMER_MEM_EVT_TYPE_DATA_PATH_ERROR,
 		.transaction_type = CXL_GMER_TRANS_HOST_WRITE,
 		/* .validity_flags = <set below> */

---
base-commit: a2cd3520e6085b0f9145d9c5e3d1bfa9cce4c3be
change-id: 20240102-fix-correctable-macro-2847ce932c9c

Best regards,

Signature · 1 line
Ira Weiny <[email protected]>
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Ira Weiny

Uncorrectable is spelled with two r's.

Fix the macro spelling.

Quoted 42 lines
---
 drivers/cxl/core/trace.h     | 4 ++--
 tools/testing/cxl/test/mem.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/cxl/core/trace.h +2 -2
index bdf117a33744..577a01954f71 100644
@@ -267,11 +267,11 @@ TRACE_EVENT(cxl_generic_event,
  * General Media Event Record - GMER
  * CXL rev 3.0 Section 8.2.9.2.1.1; Table 8-43
  */
-#define CXL_GMER_EVT_DESC_UNCORECTABLE_EVENT		BIT(0)
+#define CXL_GMER_EVT_DESC_UNCORRECTABLE_EVENT		BIT(0)
 #define CXL_GMER_EVT_DESC_THRESHOLD_EVENT		BIT(1)
 #define CXL_GMER_EVT_DESC_POISON_LIST_OVERFLOW		BIT(2)
 #define show_event_desc_flags(flags)	__print_flags(flags, "|",		   \
-	{ CXL_GMER_EVT_DESC_UNCORECTABLE_EVENT,		"UNCORRECTABLE_EVENT"	}, \
+	{ CXL_GMER_EVT_DESC_UNCORRECTABLE_EVENT,	"UNCORRECTABLE_EVENT"	}, \
 	{ CXL_GMER_EVT_DESC_THRESHOLD_EVENT,		"THRESHOLD_EVENT"	}, \
 	{ CXL_GMER_EVT_DESC_POISON_LIST_OVERFLOW,	"POISON_LIST_OVERFLOW"	}  \
 )
tools/testing/cxl/test/mem.c +1 -2
index 35ee41e435ab..c0c1e6b4db75 100644
@@ -380,7 +380,7 @@ struct cxl_test_gen_media gen_media = {
 			.related_handle = cpu_to_le16(0),
 		},
 		.phys_addr = cpu_to_le64(0x2000),
-		.descriptor = CXL_GMER_EVT_DESC_UNCORECTABLE_EVENT,
+		.descriptor = CXL_GMER_EVT_DESC_UNCORRECTABLE_EVENT,
 		.type = CXL_GMER_MEM_EVT_TYPE_DATA_PATH_ERROR,
 		.transaction_type = CXL_GMER_TRANS_HOST_WRITE,
 		/* .validity_flags = <set below> */
 
---

base-commit: a2cd3520e6085b0f9145d9c5e3d1bfa9cce4c3be
change-id: 20240102-fix-correctable-macro-2847ce932c9c

Best regards,

Reviewed-by Fan Ni on v1 1/1
#2 lore raw
In reply to Ira Weiny
Quoted 6 lines · Ira Weiny

Uncorrectable is spelled with two r's.

Fix the macro spelling.

---

Quoted 44 lines
 drivers/cxl/core/trace.h     | 4 ++--
 tools/testing/cxl/test/mem.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/cxl/core/trace.h +2 -2
index bdf117a33744..577a01954f71 100644
@@ -267,11 +267,11 @@ TRACE_EVENT(cxl_generic_event,
  * General Media Event Record - GMER
  * CXL rev 3.0 Section 8.2.9.2.1.1; Table 8-43
  */
-#define CXL_GMER_EVT_DESC_UNCORECTABLE_EVENT		BIT(0)
+#define CXL_GMER_EVT_DESC_UNCORRECTABLE_EVENT		BIT(0)
 #define CXL_GMER_EVT_DESC_THRESHOLD_EVENT		BIT(1)
 #define CXL_GMER_EVT_DESC_POISON_LIST_OVERFLOW		BIT(2)
 #define show_event_desc_flags(flags)	__print_flags(flags, "|",		   \
-	{ CXL_GMER_EVT_DESC_UNCORECTABLE_EVENT,		"UNCORRECTABLE_EVENT"	}, \
+	{ CXL_GMER_EVT_DESC_UNCORRECTABLE_EVENT,	"UNCORRECTABLE_EVENT"	}, \
 	{ CXL_GMER_EVT_DESC_THRESHOLD_EVENT,		"THRESHOLD_EVENT"	}, \
 	{ CXL_GMER_EVT_DESC_POISON_LIST_OVERFLOW,	"POISON_LIST_OVERFLOW"	}  \
 )
tools/testing/cxl/test/mem.c +1 -2
index 35ee41e435ab..c0c1e6b4db75 100644
@@ -380,7 +380,7 @@ struct cxl_test_gen_media gen_media = {
 			.related_handle = cpu_to_le16(0),
 		},
 		.phys_addr = cpu_to_le64(0x2000),
-		.descriptor = CXL_GMER_EVT_DESC_UNCORECTABLE_EVENT,
+		.descriptor = CXL_GMER_EVT_DESC_UNCORRECTABLE_EVENT,
 		.type = CXL_GMER_MEM_EVT_TYPE_DATA_PATH_ERROR,
 		.transaction_type = CXL_GMER_TRANS_HOST_WRITE,
 		/* .validity_flags = <set below> */
 
---

base-commit: a2cd3520e6085b0f9145d9c5e3d1bfa9cce4c3be
change-id: 20240102-fix-correctable-macro-2847ce932c9c

Best regards,

Signature · 1 line
Ira Weiny <[email protected]>