summaryrefslogtreecommitdiff
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index f54a84fb5e6e..cadce191d555 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1822,6 +1822,7 @@ static struct page *__rmqueue(struct zone *zone, unsigned int order,
return page;
}
+#ifdef CONFIG_CMA
static struct page *__rmqueue_cma(struct zone *zone, unsigned int order)
{
struct page *page = 0;
@@ -1831,6 +1832,12 @@ static struct page *__rmqueue_cma(struct zone *zone, unsigned int order)
trace_mm_page_alloc_zone_locked(page, 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