Skip to contentSkip to conversation

cxl/memdev: Remove unused cxlmd field

PATCH In review [email protected] 2 participants 2 messages Nov 3, 2021 – Nov 4, 2021 CXL

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cxl/memdev: Remove unused cxlmd field

From: Ira Weiny <[email protected]>

This field was left over when the connection between the cxl_memdev and cxl_mem was tighter. It is no longer set nor used so remove it.[1]

[1] https://lore.kernel.org/linux-cxl/CAPcyv4hcgh2gb8qsS_UXTBSGqYfMPnC6p5kkvNUjm+V6kVKM5g@mail.gmail.com/

---
Changes from V1:
Change Subject

[v1] https://lore.kernel.org/linux-cxl/[email protected]/T/#m79c2c7ba4cc897c10e26acdaca890887e1dd487f

---
 drivers/cxl/cxlmem.h | 2 --
 1 file changed, 2 deletions(-)
drivers/cxl/cxlmem.h +0 -2
index f978a046591b..8d96d009ad90 100644
@@ -97,7 +97,6 @@ struct cxl_mbox_cmd {
  * Currently only memory devices are represented.
  *
  * @dev: The device associated with this CXL state
- * @cxlmd: Logical memory device chardev / interface
  * @regs: Parsed register blocks
  * @payload_size: Size of space for payload
  *                (CXL 2.0 8.2.8.4.3 Mailbox Capabilities Register)
@@ -124,7 +123,6 @@ struct cxl_mbox_cmd {
  */
 struct cxl_dev_state {
 	struct device *dev;
-	struct cxl_memdev *cxlmd;
 
 	struct cxl_regs regs;
 
Signature · 1 line
2.28.0.rc0.12.gb6a658bd00c9
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · On Wed, 3 Nov 2021 16:48:57 -0700 <[email protected]> wrote:

From: Ira Weiny <[email protected]>

This field was left over when the connection between the cxl_memdev and cxl_mem was tighter. It is no longer set nor used so remove it.[1]

[1] https://lore.kernel.org/linux-cxl/CAPcyv4hcgh2gb8qsS_UXTBSGqYfMPnC6p5kkvNUjm+V6kVKM5g@mail.gmail.com/

Quoted 30 lines

---
Changes from V1:
Change Subject

[v1] https://lore.kernel.org/linux-cxl/[email protected]/T/#m79c2c7ba4cc897c10e26acdaca890887e1dd487f

---
 drivers/cxl/cxlmem.h | 2 --
 1 file changed, 2 deletions(-)
drivers/cxl/cxlmem.h +0 -2
index f978a046591b..8d96d009ad90 100644
@@ -97,7 +97,6 @@ struct cxl_mbox_cmd {
  * Currently only memory devices are represented.
  *
  * @dev: The device associated with this CXL state
- * @cxlmd: Logical memory device chardev / interface
  * @regs: Parsed register blocks
  * @payload_size: Size of space for payload
  *                (CXL 2.0 8.2.8.4.3 Mailbox Capabilities Register)
@@ -124,7 +123,6 @@ struct cxl_mbox_cmd {
  */
 struct cxl_dev_state {
 	struct device *dev;
-	struct cxl_memdev *cxlmd;
 
 	struct cxl_regs regs;