Skip to content

Commit 16ca2f5

Browse files
weiny2davejiang
authored andcommitted
cxl/memdev: Remove unused partition values
The next volatile and next persistent values are unused and are cluttering the cxl_memdev_state. Remove these values. Reviewed-by: Davidlohr Bueso <dave@stgolabs.net> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Dan Williams <dan.j.williams@intel.com> Reviewed-by: Fan Ni <fan.ni@samsung.com> Signed-off-by: Ira Weiny <ira.weiny@intel.com> Link: https://patch.msgid.link/20250206-cxl-cleanup-v1-1-9ddf26dd8433@intel.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
1 parent 9387c6a commit 16ca2f5

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

drivers/cxl/core/mbox.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,10 +1097,6 @@ static int cxl_mem_get_partition_info(struct cxl_memdev_state *mds)
10971097
le64_to_cpu(pi.active_volatile_cap) * CXL_CAPACITY_MULTIPLIER;
10981098
mds->active_persistent_bytes =
10991099
le64_to_cpu(pi.active_persistent_cap) * CXL_CAPACITY_MULTIPLIER;
1100-
mds->next_volatile_bytes =
1101-
le64_to_cpu(pi.next_volatile_cap) * CXL_CAPACITY_MULTIPLIER;
1102-
mds->next_persistent_bytes =
1103-
le64_to_cpu(pi.next_volatile_cap) * CXL_CAPACITY_MULTIPLIER;
11041100

11051101
return 0;
11061102
}

drivers/cxl/cxlmem.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,6 @@ static inline struct cxl_dev_state *mbox_to_cxlds(struct cxl_mailbox *cxl_mbox)
506506
* @partition_align_bytes: alignment size for partition-able capacity
507507
* @active_volatile_bytes: sum of hard + soft volatile
508508
* @active_persistent_bytes: sum of hard + soft persistent
509-
* @next_volatile_bytes: volatile capacity change pending device reset
510-
* @next_persistent_bytes: persistent capacity change pending device reset
511509
* @event: event log driver state
512510
* @poison: poison driver state info
513511
* @security: security driver state info
@@ -528,8 +526,6 @@ struct cxl_memdev_state {
528526
u64 partition_align_bytes;
529527
u64 active_volatile_bytes;
530528
u64 active_persistent_bytes;
531-
u64 next_volatile_bytes;
532-
u64 next_persistent_bytes;
533529

534530
struct cxl_event_state event;
535531
struct cxl_poison_state poison;

0 commit comments

Comments
 (0)