Skip to contentSkip to conversation

drm/amdgpu: remove unused macro HW_REV

PATCH In review Yang Wang 3 participants 3 messages Oct 31, 2023

Subsystems (2)
lore
Share & tools
lore

Yang Wang

author
#0 lore raw

PATCH 1/1 drm/amdgpu: remove unused macro HW_REV

remove unused macro HW_REV

---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +0 -3
index a2e8c2b60857..969d8ba8b8dc 100644
@@ -365,9 +365,6 @@ struct amdgpu_ip_block_version {
 	const struct amd_ip_funcs *funcs;
 };
 
-#define HW_REV(_Major, _Minor, _Rev) \
-	((((uint32_t) (_Major)) << 16) | ((uint32_t) (_Minor) << 8) | ((uint32_t) (_Rev)))
-
 struct amdgpu_ip_block {
 	struct amdgpu_ip_block_status status;
 	const struct amdgpu_ip_block_version *version;
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - General]

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Yang Wang
Sent: Tuesday, October 31, 2023 10:13 AM
To: [email protected]
Cc: Wang, Yang(Kevin) <[email protected]>
Subject: [PATCH] drm/amdgpu: remove unused macro HW_REV

Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.

remove unused macro HW_REV

---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +0 -4
index a2e8c2b60857..969d8ba8b8dc 100644
@@ -365,9 +365,6 @@ struct amdgpu_ip_block_version {
        const struct amd_ip_funcs *funcs;  };
 
-#define HW_REV(_Major, _Minor, _Rev) \
-       ((((uint32_t) (_Major)) << 16) | ((uint32_t) (_Minor) << 8) | ((uint32_t) (_Rev)))
-
 struct amdgpu_ip_block {
        struct amdgpu_ip_block_status status;
        const struct amdgpu_ip_block_version *version;
--

2.34.1

Reviewed-by on v1 1/1
#2 lore raw
In reply to Yang Wang
Quoted 3 lines · Yang Wang

remove unused macro HW_REV

Thanks,
Lijo

Quoted 18 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 ---
  1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +0 -3
index a2e8c2b60857..969d8ba8b8dc 100644
@@ -365,9 +365,6 @@ struct amdgpu_ip_block_version {
  	const struct amd_ip_funcs *funcs;
  };
 
-#define HW_REV(_Major, _Minor, _Rev) \
-	((((uint32_t) (_Major)) << 16) | ((uint32_t) (_Minor) << 8) | ((uint32_t) (_Rev)))
-
  struct amdgpu_ip_block {
  	struct amdgpu_ip_block_status status;
  	const struct amdgpu_ip_block_version *version;