fix(rmm): fix MISRA C:2012 Rule 8.3 violations
Fixes Function Declaration to use the same name and type
as the definition.
Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
Change-Id: I4f83457ef62779cc93967f0526fa4aaeb68b14fb
diff --git a/lib/realm/src/s2tt.c b/lib/realm/src/s2tt.c
index 55fa198..44d03dc 100644
--- a/lib/realm/src/s2tt.c
+++ b/lib/realm/src/s2tt.c
@@ -464,13 +464,13 @@
* - S2AP
* - Shareability
*/
-unsigned long s2tte_create_assigned_ns(unsigned long s2tte, long level)
+unsigned long s2tte_create_assigned_ns(unsigned long pa, long level)
{
assert(level >= RTT_MIN_BLOCK_LEVEL);
if (level == RTT_PAGE_LEVEL) {
- return (s2tte | S2TTE_PAGE_NS);
+ return (pa | S2TTE_PAGE_NS);
}
- return (s2tte | S2TTE_BLOCK_NS);
+ return (pa | S2TTE_BLOCK_NS);
}
/*