summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLuis Chamberlain <mcgrof@kernel.org>2022-12-19 22:50:50 +0300
committerDan Williams <dan.j.williams@intel.com>2023-01-26 00:04:39 +0300
commitf45d63c1218636f77b9c3c53318c56ecd27dc8ec (patch)
treef940429b5281b44a53d4a3144054a21b3ba1928d /tools
parent852db33c6c180a48268eca52e25b267ed32de3ab (diff)
downloadlinux-f45d63c1218636f77b9c3c53318c56ecd27dc8ec.tar.xz
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 <mcgrof@kernel.org> Link: https://lore.kernel.org/r/20221219195050.325959-1-mcgrof@kernel.org Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/cxl/config_check.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/cxl/config_check.c b/tools/testing/cxl/config_check.c
index c4c457e59841..99b56b5f6edf 100644
--- a/tools/testing/cxl/config_check.c
+++ b/tools/testing/cxl/config_check.c
@@ -7,6 +7,7 @@ void check(void)
* These kconfig symbols must be set to "m" for cxl_test to load
* and operate.
*/
+ BUILD_BUG_ON(!IS_ENABLED(CONFIG_64BIT));
BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_BUS));
BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_ACPI));
BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_PMEM));