diff --git a/drivers/staging/android/ion/ion.h b/drivers/staging/android/ion/ion.h index 5cd978cfc9fa..6bd962c3e7bb 100644 --- a/drivers/staging/android/ion/ion.h +++ b/drivers/staging/android/ion/ion.h @@ -315,7 +315,12 @@ struct ion_page_pool *ion_page_pool_create(gfp_t gfp_mask, unsigned int order); void ion_page_pool_destroy(struct ion_page_pool *pool); struct page *ion_page_pool_alloc(struct ion_page_pool *pool); void ion_page_pool_free(struct ion_page_pool *pool, struct page *page); + +#ifdef CONFIG_ION_SYSTEM_HEAP long ion_page_pool_nr_pages(void); +#else +static inline long ion_page_pool_nr_pages(void) { return 0; } +#endif /** ion_page_pool_shrink - shrinks the size of the memory cached in the pool * @pool: the pool