[Cbe-oss-dev] [PATCH 2/9]MARS: Add const to ptr ea function
Yuji Mano
yuji.mano at am.sony.com
Sat Oct 18 10:28:43 EST 2008
This just adds the const qualifier to the pointer parameter passed into
mars_ptr_to_ea.
Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>
---
include/host/mars/context.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/include/host/mars/context.h
+++ b/include/host/mars/context.h
@@ -119,9 +119,9 @@ static inline void *mars_ea_to_ptr(uint6
return (void *)(uintptr_t)ea;
}
-static inline uint64_t mars_ptr_to_ea(void *ptr)
+static inline uint64_t mars_ptr_to_ea(const void *ptr)
{
- return (uint64_t)(uintptr_t)ptr;
+ return (uint64_t)(const uintptr_t)ptr;
}
#if defined(__cplusplus)
More information about the cbe-oss-dev
mailing list