fix(rmm): fix MISRA C:2012 Rule 10.3 in lib & runtime

Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
Change-Id: If607bf37c82c5db40ce4a8771fd29739bffa8aa8
diff --git a/lib/realm/src/buffer.c b/lib/realm/src/buffer.c
index 9ef27e6..be9693e 100644
--- a/lib/realm/src/buffer.c
+++ b/lib/realm/src/buffer.c
@@ -227,8 +227,8 @@
 	buffer_arch_unmap(buf);
 }
 
-bool memcpy_ns_read(void *dest, const void *ns_src, unsigned long size);
-bool memcpy_ns_write(void *ns_dest, const void *src, unsigned long size);
+bool memcpy_ns_read(void *dest, const void *ns_src, size_t size);
+bool memcpy_ns_write(void *ns_dest, const void *src, size_t size);
 
 /*
  * Map a Non secure granule @g into the slot @slot and read data from
@@ -241,7 +241,7 @@
 bool ns_buffer_read(enum buffer_slot slot,
 		    struct granule *ns_gr,
 		    unsigned int offset,
-		    unsigned int size,
+		    size_t size,
 		    void *dest)
 {
 	uintptr_t src;
@@ -281,7 +281,7 @@
 bool ns_buffer_write(enum buffer_slot slot,
 		     struct granule *ns_gr,
 		     unsigned int offset,
-		     unsigned int size,
+		     size_t size,
 		     void *src)
 {
 	uintptr_t dest;