fix: fix build with clang-18
Some uses of inline assembly for accessing floating point registers did
not enable the FP extension and were failing with clang-18.
The check in the linker script for the `hftest_enable` variable fails
under clang-18. However, hftest still compiles and passes without the
check, so it was removed.
Fix new warnings from `clang-tidy`.
Apply `make format`.
Change-Id: I43996abb4c42de54be807dcdb76107b9752c62fb
Signed-off-by: Karl Meakin <karl.meakin@arm.com>
diff --git a/src/ffa_memory.c b/src/ffa_memory.c
index 27e3b56..53a605f 100644
--- a/src/ffa_memory.c
+++ b/src/ffa_memory.c
@@ -618,8 +618,8 @@
bool comp_offset_lt_transaction_descriptor_size =
composite_offset_0 <
(sizeof(struct ffa_memory_region) +
- (uint32_t)(memory_region->memory_access_desc_size *
- memory_region->receiver_count));
+ (size_t)(memory_region->memory_access_desc_size *
+ memory_region->receiver_count));
bool comp_offset_with_comp_gt_fragment_length =
composite_offset_0 +
sizeof(struct ffa_composite_memory_region) >
@@ -3621,8 +3621,8 @@
composite_constituents_offset +
retrieved_constituents_count *
sizeof(struct ffa_memory_region_constituent) -
- (uint32_t)(memory_region->memory_access_desc_size *
- (memory_region->receiver_count - 1));
+ (size_t)(memory_region->memory_access_desc_size *
+ (memory_region->receiver_count - 1));
return expected_fragment_offset;
}