chore: make function private to ffa_memory

Make the function 'ffa_composite_constituent_offset' private to
src/ffa_memory.c.

Change-Id: I2fd7e772fa87619de40595af695e28c297525e98
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/inc/hf/ffa_memory_internal.h b/inc/hf/ffa_memory_internal.h
index 451f047..1d98d7b 100644
--- a/inc/hf/ffa_memory_internal.h
+++ b/inc/hf/ffa_memory_internal.h
@@ -137,24 +137,6 @@
 				  struct ffa_memory_share_state *share_state);
 void dump_share_states(void);
 
-/**
- * Return the offset to the first constituent within the
- * `ffa_composite_memory_region` for the given receiver from an
- * `ffa_memory_region`. The caller must check that the receiver_index is within
- * bounds, and that it has a composite memory region offset.
- */
-static inline uint32_t ffa_composite_constituent_offset(
-	struct ffa_memory_region *memory_region, uint32_t receiver_index)
-{
-	CHECK(receiver_index < memory_region->receiver_count);
-	CHECK(memory_region->receivers[receiver_index]
-		      .composite_memory_region_offset != 0);
-
-	return memory_region->receivers[receiver_index]
-		       .composite_memory_region_offset +
-	       sizeof(struct ffa_composite_memory_region);
-}
-
 struct ffa_value ffa_memory_send_validate(
 	struct vm_locked from_locked, struct ffa_memory_region *memory_region,
 	uint32_t memory_share_length, uint32_t fragment_length,
diff --git a/src/ffa_memory.c b/src/ffa_memory.c
index bd8f197..74e0f82 100644
--- a/src/ffa_memory.c
+++ b/src/ffa_memory.c
@@ -38,6 +38,24 @@
 static struct ffa_memory_share_state share_states[MAX_MEM_SHARES];
 
 /**
+ * Return the offset to the first constituent within the
+ * `ffa_composite_memory_region` for the given receiver from an
+ * `ffa_memory_region`. The caller must check that the receiver_index is within
+ * bounds, and that it has a composite memory region offset.
+ */
+static uint32_t ffa_composite_constituent_offset(
+	struct ffa_memory_region *memory_region, uint32_t receiver_index)
+{
+	CHECK(receiver_index < memory_region->receiver_count);
+	CHECK(memory_region->receivers[receiver_index]
+		      .composite_memory_region_offset != 0);
+
+	return memory_region->receivers[receiver_index]
+		       .composite_memory_region_offset +
+	       sizeof(struct ffa_composite_memory_region);
+}
+
+/**
  * Extracts the index from a memory handle allocated by Hafnium's current world.
  */
 uint64_t ffa_memory_handle_get_index(ffa_memory_handle_t handle)