Skip to content

Commit

Permalink
[PAL,mbedtls] Fix build issues on newer Ubuntu and Clang
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Dmitrii Kuvaiskii committed Jun 25, 2024
1 parent a11ae6a commit e95a3a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pal/src/host/linux-common/topo_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e95a3a1

Please sign in to comment.