Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22d5dc89 authored by Ashok Bhat's avatar Ashok Bhat Committed by David Butcher
Browse files

Change M4OSA_ERR_CREATE to return unsigned integer.



While M4OSA_ERR is defined as M4OSA_UInt32, MOSA_ERR_CREATE
is defined to return M4OSA_Int32. This leads to signed/unsigned
comparison warnings. M4OSA_ERR_CREATE has been changed to return
M4OSA_UInt32 to fix this issue.

Change-Id: I71a5c50a95c7f296469604b486a1d3969d302a3f
Signed-off-by: default avatarAshok Bhat <ashok.bhat@arm.com>
parent 8115f4b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ typedef M4OSA_UInt32 M4OSA_ERR;
  * @arg coreID: (IN) [M4OSA_UInt32] CoreID to put in the error code
  * @arg errorID: (IN) [M4OSA_UInt32] ErrorID to put in the error code*/
#define M4OSA_ERR_CREATE(severity, coreID, errorID)\
   (M4OSA_Int32)((((M4OSA_UInt32)severity)<<30)+((((M4OSA_UInt32)coreID)&0x003FFF)<<16)+(((M4OSA_UInt32)errorID)&0x00FFFF))
   (M4OSA_UInt32)((((M4OSA_UInt32)severity)<<30)+((((M4OSA_UInt32)coreID)&0x003FFF)<<16)+(((M4OSA_UInt32)errorID)&0x00FFFF))

/** This macro extracts the 3 fields from the error:
  * @arg error: (IN) [M4OSA_ERR] Error code