summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorLi Ming <ming.li@zohomail.com>2026-07-13 14:15:31 +0800
committerDave Jiang <dave.jiang@intel.com>2026-07-14 08:30:21 -0700
commit9515af581da976911aea820175afb05be803ae8c (patch)
treee0d037815fb081376987ad9e276b53a617a544cd /scripts/stackusage
parent1c6b4ceafc3b994871c29340e0c1ddb0af5800e7 (diff)
downloadlinux-9515af581da976911aea820175afb05be803ae8c.tar.gz
linux-9515af581da976911aea820175afb05be803ae8c.zip
cxl/test: Rework cxl_type2_mem_init() to use cxl_mock_platform_device_add()
cxl_type2_mem_init() is used to set up mock CXL type2 memory device for cxl testing, it introduces a known bug fixed by the following commit: commit d90f236f8b9e ("cxl/test: Update mock dev array before calling platform_device_add()") Mock CXL devices require updating the mock device array prior to platform_device_add(), otherwise, the CXL subsystem could fail to recognize the newly added mock device. Switch to cxl_mock_platform_device_add() helper to resolve this ordering issue. Besides, this patch also includes two minor changes. 1. Preserve the original error code returned by cxl_mock_platform_device_add(), rather than unconditionally overriding it with -ENOMEM. 2. Drop redundant NULL check before platform_device_unregister(), as the function internally handles NULL pointer. Fixes: 6b2e585142e6 ("cxl/test: Add hierarchy enumeration support for type2 device") Signed-off-by: Li Ming <ming.li@zohomail.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Link: https://patch.msgid.link/20260713061531.56322-1-ming.li@zohomail.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions