From e95a3a12112a26edc3f0cf612cc24ce5664e373e Mon Sep 17 00:00:00 2001 From: Dmitrii Kuvaiskii Date: Tue, 25 Jun 2024 06:20:09 -0700 Subject: [PATCH] [PAL,mbedtls] Fix build issues on newer Ubuntu and Clang Two issues fixed: - Unused for-loop variable `input_i` in `topo_info.c` - Required ASN.1 dependencies for RSA in `mbedtls/config-pal.h` Signed-off-by: Dmitrii Kuvaiskii --- pal/src/host/linux-common/topo_info.c | 2 +- subprojects/packagefiles/mbedtls/include/mbedtls/config-pal.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pal/src/host/linux-common/topo_info.c b/pal/src/host/linux-common/topo_info.c index c57e7b7a8d..4266768bf2 100644 --- a/pal/src/host/linux-common/topo_info.c +++ b/pal/src/host/linux-common/topo_info.c @@ -75,7 +75,7 @@ static int read_distances_from_file(const char* path, size_t* out_arr, const char* end; char last_separator = ' '; size_t node_i = 0; - for (size_t input_i = 0; /* no condition */; input_i++) { + while (true) { /* Find next online node (only these are listed in `distance` file). */ while (node_i < nodes_cnt && !numa_nodes[node_i].is_online) node_i++; diff --git a/subprojects/packagefiles/mbedtls/include/mbedtls/config-pal.h b/subprojects/packagefiles/mbedtls/include/mbedtls/config-pal.h index 6ffa2a8392..1bd1de5f6a 100644 --- a/subprojects/packagefiles/mbedtls/include/mbedtls/config-pal.h +++ b/subprojects/packagefiles/mbedtls/include/mbedtls/config-pal.h @@ -18,9 +18,11 @@ * TODO: analyze their impact and add the applicable ones */ -#define MBEDTLS_AES_USE_HARDWARE_ONLY #define MBEDTLS_AESNI_C #define MBEDTLS_AES_C +#define MBEDTLS_AES_USE_HARDWARE_ONLY +#define MBEDTLS_ASN1_PARSE_C +#define MBEDTLS_ASN1_WRITE_C #define MBEDTLS_BASE64_C #define MBEDTLS_BIGNUM_C #define MBEDTLS_CIPHER_C