aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaurabh Bipin Chandra2013-07-31 09:53:08 -0500
committerSaurabh Bipin Chandra2013-08-27 16:12:42 -0500
commit90deab3291a4cf18f2bb3df18da0678fd27ac467 (patch)
treefc534e082e3f4da5b0125a8ea36b22bb7a937890 /memplugin_qnx.c
parentf71e00630af23f1dd7d2a0df87d9b5b524c823a8 (diff)
downloadrepo-libdce-90deab3291a4cf18f2bb3df18da0678fd27ac467.tar.gz
repo-libdce-90deab3291a4cf18f2bb3df18da0678fd27ac467.tar.xz
repo-libdce-90deab3291a4cf18f2bb3df18da0678fd27ac467.zip
[MEMPLUGIN] Modify memplugin_share() implementation for QNX
This patch updates the definition of memplugin_share() for QNX to make it aligned with the definition for linux. It also makes the function inline, to save on function switching in QNX. Only the QNX declaration is made inline. Signed-off-by: Saurabh Bipin Chandra <a0131926@ti.com> Change-Id: I20b89d4a3f560d8f4e4de36a496b87b6820b2d10
Diffstat (limited to 'memplugin_qnx.c')
-rw-r--r--memplugin_qnx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/memplugin_qnx.c b/memplugin_qnx.c
index 610a4f9..b6e8af2 100644
--- a/memplugin_qnx.c
+++ b/memplugin_qnx.c
@@ -121,10 +121,10 @@ void memplugin_free(void *ptr, mem_type memory_type)
121EXIT:; 121EXIT:;
122} 122}
123 123
124void *memplugin_share(void *ptr, mem_type memory_type) 124inline int memplugin_share(void *ptr)
125{ 125{
126 /* No Userspace Virtual pointers to DMA BUF Handles conversion required*/ 126 /* No Userspace Virtual pointers to DMA BUF Handles conversion required*/
127 /* Do nothing */ 127 /* Do nothing */
128 return (ptr); 128 return ((int)ptr);
129} 129}
130 130