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

Commit 17396ddc authored by Vinayak Menon's avatar Vinayak Menon Committed by Gerrit - the friendly Code Review server
Browse files

ion: fix compile time error with !CONFIG_CMA



Let ION compile when CONFIG_CMA is not defined.

Change-Id: I6f3cf19a94e3f966c0973c9f8d765ecb752b7a48
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
parent 72ee5cb1
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -366,8 +366,16 @@ void ion_carveout_heap_destroy(struct ion_heap *);

struct ion_heap *ion_chunk_heap_create(struct ion_platform_heap *);
void ion_chunk_heap_destroy(struct ion_heap *);
#ifdef CONFIG_CMA
struct ion_heap *ion_cma_heap_create(struct ion_platform_heap *);
void ion_cma_heap_destroy(struct ion_heap *);
#else
static inline struct ion_heap *ion_cma_heap_create(struct ion_platform_heap *h)
{
	return NULL;
}
static inline void ion_cma_heap_destroy(struct ion_heap *h) {}
#endif

/**
 * kernel api to allocate/free from carveout -- used when carveout is