fix: implicitly casts
Change macros to include an explicit cast to type size_t.
This was being hinted by clang-tidy of clang-14.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I4af78fcf5e5f5793584082b0b9cb61e0a9ab8f26
diff --git a/inc/vmapi/hf/ffa.h b/inc/vmapi/hf/ffa.h
index 0bf05ae..4db2c14 100644
--- a/inc/vmapi/hf/ffa.h
+++ b/inc/vmapi/hf/ffa.h
@@ -144,7 +144,7 @@
* be confused with PAGE_SIZE, which is the translation granule Hafnium is
* configured to use.
*/
-#define FFA_PAGE_SIZE 4096
+#define FFA_PAGE_SIZE ((size_t)4096)
/** The ID of a VM. These are assigned sequentially starting with an offset. */
typedef uint16_t ffa_vm_id_t;
diff --git a/inc/vmapi/hf/types.h b/inc/vmapi/hf/types.h
index 5794fa2..6e2522d 100644
--- a/inc/vmapi/hf/types.h
+++ b/inc/vmapi/hf/types.h
@@ -41,10 +41,10 @@
#define HF_SLEEP_INDEFINITE 0xffffffffffffffff
/** The amount of data that can be sent to a mailbox. */
-#define HF_MAILBOX_SIZE 4096
+#define HF_MAILBOX_SIZE ((size_t)4096)
/** Interrupt ID returned when there is no interrupt pending. */
-#define HF_INVALID_INTID 0xffffffff
+#define HF_INVALID_INTID ((ffa_vm_id_t)0xffffffff)
/** Interrupt ID indicating the mailbox is readable. */
#define HF_MAILBOX_READABLE_INTID 1