summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'memplugin_android.c')
-rw-r--r--memplugin_android.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/memplugin_android.c b/memplugin_android.c
index 6807da9..d99e717 100644
--- a/memplugin_android.c
+++ b/memplugin_android.c
@@ -35,6 +35,7 @@
35#include <sys/mman.h> 35#include <sys/mman.h>
36#include <sys/eventfd.h> 36#include <sys/eventfd.h>
37#include <pthread.h> 37#include <pthread.h>
38#include <unistd.h>
38 39
39#include "memplugin.h" 40#include "memplugin.h"
40#include "libdce.h" 41#include "libdce.h"
@@ -113,6 +114,9 @@ int memplugin_close()
113 114
114void *memplugin_alloc(int sz, int height, MemRegion region, int align, int flags) 115void *memplugin_alloc(int sz, int height, MemRegion region, int align, int flags)
115{ 116{
117 (void)height;
118 (void)align;
119
116 MemHeader *h = NULL; 120 MemHeader *h = NULL;
117 struct omap_bo *bo = omap_bo_new(OmapDev, sz + sizeof(MemHeader), 121 struct omap_bo *bo = omap_bo_new(OmapDev, sz + sizeof(MemHeader),
118 OMAP_BO_WC | OMAP_BO_SCANOUT); 122 OMAP_BO_WC | OMAP_BO_SCANOUT);
@@ -169,6 +173,9 @@ int32_t memplugin_share(void *ptr)
169 173
170void *memplugin_alloc_noheader(MemHeader *memHdr, int sz, int height, MemRegion region, int align, int flags) 174void *memplugin_alloc_noheader(MemHeader *memHdr, int sz, int height, MemRegion region, int align, int flags)
171{ 175{
176 (void)height;
177 (void)align;
178
172 MemHeader *h = memHdr; 179 MemHeader *h = memHdr;
173 if (!memHdr) 180 if (!memHdr)
174 return NULL; 181 return NULL;