File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -62,5 +62,6 @@ cxl_core-$(CONFIG_TRACING) += $(CXL_CORE_SRC)/trace.o
62
62
cxl_core-$(CONFIG_CXL_REGION) += $(CXL_CORE_SRC ) /region.o
63
63
cxl_core-y += config_check.o
64
64
cxl_core-y += cxl_core_test.o
65
+ cxl_core-y += cxl_core_exports.o
65
66
66
67
obj-m += test/
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: GPL-2.0
2
+ /* Copyright(c) 2022 Intel Corporation. All rights reserved. */
3
+
4
+ #include "cxl.h"
5
+
6
+ /* Exporting of cxl_core symbols that are only used by cxl_test */
7
+ EXPORT_SYMBOL_NS_GPL (cxl_num_decoders_committed , CXL );
Original file line number Diff line number Diff line change @@ -669,10 +669,11 @@ static int mock_decoder_commit(struct cxl_decoder *cxld)
669
669
return 0 ;
670
670
671
671
dev_dbg (& port -> dev , "%s commit\n" , dev_name (& cxld -> dev ));
672
- if (port -> commit_end + 1 != id ) {
672
+ if (cxl_num_decoders_committed ( port ) != id ) {
673
673
dev_dbg (& port -> dev ,
674
674
"%s: out of order commit, expected decoder%d.%d\n" ,
675
- dev_name (& cxld -> dev ), port -> id , port -> commit_end + 1 );
675
+ dev_name (& cxld -> dev ), port -> id ,
676
+ cxl_num_decoders_committed (port ));
676
677
return - EBUSY ;
677
678
}
678
679
You can’t perform that action at this time.
0 commit comments