Skip to contentSkip to conversation

tools/testing/cxl: Remove unused SZ_512G macro

PATCH In review Xiao Yang 2 participants 2 messages Jul 19, 2023 CXL

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 tools/testing/cxl: Remove unused SZ_512G macro

SZ_512G macro has become useless since commit b2f3b74e1072 ("tools/testing/cxl: Move cxl_test resources to the top of memory") so remove it directly.

---
 tools/testing/cxl/test/cxl.c | 4 ----
 1 file changed, 4 deletions(-)
tools/testing/cxl/test/cxl.c +0 -4
index 0e78d8e19895..fb6ab9cef84f 100644
@@ -999,10 +999,6 @@ static void mock_companion(struct acpi_device *adev, struct device *dev)
 #define SZ_64G (SZ_32G * 2)
 #endif
 
-#ifndef SZ_512G
-#define SZ_512G (SZ_64G * 8)
-#endif
-
 static __init int cxl_rch_init(void)
 {
 	int rc, i;
Signature · 1 line
2.40.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Xiao Yang

SZ_512G macro has become useless since commit b2f3b74e1072 ("tools/testing/cxl: Move cxl_test resources to the top of memory") so remove it directly.

Thanks for the cleanup

Quoted 19 lines
---
  tools/testing/cxl/test/cxl.c | 4 ----
  1 file changed, 4 deletions(-)
tools/testing/cxl/test/cxl.c +0 -4
index 0e78d8e19895..fb6ab9cef84f 100644
@@ -999,10 +999,6 @@ static void mock_companion(struct acpi_device *adev, struct device *dev)
  #define SZ_64G (SZ_32G * 2)
  #endif
 
-#ifndef SZ_512G
-#define SZ_512G (SZ_64G * 8)
-#endif
-
  static __init int cxl_rch_init(void)
  {
  	int rc, i;