Skip to content

Commit f45d63c

Browse files
mcgrofdjbw
authored andcommitted
tools/testing/cxl: require 64-bit
size_t is limited to 32-bits and so the gen_pool_alloc() using the size of SZ_64G would map to 0, triggering a low allocation which is not expected. Force the dependency on 64-bit for cxl_test as that is what it was designed for. This issue was found by build test reports when converting this driver as a proper upstream driver. Signed-off-by: Luis Chamberlain <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent 852db33 commit f45d63c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/cxl/config_check.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ void check(void)
77
* These kconfig symbols must be set to "m" for cxl_test to load
88
* and operate.
99
*/
10+
BUILD_BUG_ON(!IS_ENABLED(CONFIG_64BIT));
1011
BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_BUS));
1112
BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_ACPI));
1213
BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_PMEM));

0 commit comments

Comments
 (0)