diff mbox series

tools/testing/cxl: Remove unused SZ_512G macro

Message ID 20230719163103.3392-1-yangx.jy@fujitsu.com
State Accepted
Commit 70d49bbf962ce4579bebd82938ef7f265bc3e6ae
Headers show
Series tools/testing/cxl: Remove unused SZ_512G macro | expand

Commit Message

Xiao Yang July 19, 2023, 4:31 p.m. UTC
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.

Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
---
 tools/testing/cxl/test/cxl.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Dave Jiang July 19, 2023, 5:42 p.m. UTC | #1
On 7/19/23 09:31, Xiao Yang wrote:
> 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.
> 
> Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>

Reviewed-by: Dave Jiang <dave.jiang@intel.com>

Thanks for the cleanup

> ---
>   tools/testing/cxl/test/cxl.c | 4 ----
>   1 file changed, 4 deletions(-)
> 
> diff --git a/tools/testing/cxl/test/cxl.c b/tools/testing/cxl/test/cxl.c
> index 0e78d8e19895..fb6ab9cef84f 100644
> --- a/tools/testing/cxl/test/cxl.c
> +++ b/tools/testing/cxl/test/cxl.c
> @@ -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;
diff mbox series

Patch

diff --git a/tools/testing/cxl/test/cxl.c b/tools/testing/cxl/test/cxl.c
index 0e78d8e19895..fb6ab9cef84f 100644
--- a/tools/testing/cxl/test/cxl.c
+++ b/tools/testing/cxl/test/cxl.c
@@ -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;