mm: fix compile time error with !CONFIG_CMA
Fixes compile time failures because of not protecting CMA related elements with CONFIG_CMA. Change-Id: I930b7c0ffdce0f1bfc4f8a582a698be16ed44d1f Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
This commit is contained in:
parent
96a3f68ab5
commit
84ec496c74
|
@ -1155,6 +1155,7 @@ retry_reserve:
|
|||
return page;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CMA
|
||||
static struct page *__rmqueue_cma(struct zone *zone, unsigned int order)
|
||||
{
|
||||
struct page *page = 0;
|
||||
|
@ -1163,6 +1164,12 @@ static struct page *__rmqueue_cma(struct zone *zone, unsigned int order)
|
|||
page = __rmqueue_smallest(zone, order, MIGRATE_CMA);
|
||||
return page;
|
||||
}
|
||||
#else
|
||||
static inline struct page *__rmqueue_cma(struct zone *zone, unsigned int order)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Obtain a specified number of elements from the buddy allocator, all under
|
||||
|
|
Loading…
Reference in New Issue