diff options
Diffstat (limited to 'include/linux/cma.h')
| -rw-r--r-- | include/linux/cma.h | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/cma.h b/include/linux/cma.h index 9384ba66e975..f7ef093ec49a 100644 --- a/include/linux/cma.h +++ b/include/linux/cma.h  | |||
| @@ -16,16 +16,16 @@ | |||
| 16 | struct cma; | 16 | struct cma; | 
| 17 | 17 | ||
| 18 | extern unsigned long totalcma_pages; | 18 | extern unsigned long totalcma_pages; | 
| 19 | extern phys_addr_t cma_get_base(struct cma *cma); | 19 | extern phys_addr_t cma_get_base(const struct cma *cma); | 
| 20 | extern unsigned long cma_get_size(struct cma *cma); | 20 | extern unsigned long cma_get_size(const struct cma *cma); | 
| 21 | 21 | ||
| 22 | extern int __init cma_declare_contiguous(phys_addr_t base, | 22 | extern int __init cma_declare_contiguous(phys_addr_t base, | 
| 23 | phys_addr_t size, phys_addr_t limit, | 23 | phys_addr_t size, phys_addr_t limit, | 
| 24 | phys_addr_t alignment, unsigned int order_per_bit, | 24 | phys_addr_t alignment, unsigned int order_per_bit, | 
| 25 | bool fixed, struct cma **res_cma); | 25 | bool fixed, struct cma **res_cma); | 
| 26 | extern int cma_init_reserved_mem(phys_addr_t base, | 26 | extern int cma_init_reserved_mem(phys_addr_t base, phys_addr_t size, | 
| 27 | phys_addr_t size, int order_per_bit, | 27 | unsigned int order_per_bit, | 
| 28 | struct cma **res_cma); | 28 | struct cma **res_cma); | 
| 29 | extern struct page *cma_alloc(struct cma *cma, int count, unsigned int align); | 29 | extern struct page *cma_alloc(struct cma *cma, unsigned int count, unsigned int align); | 
| 30 | extern bool cma_release(struct cma *cma, struct page *pages, int count); | 30 | extern bool cma_release(struct cma *cma, const struct page *pages, unsigned int count); | 
| 31 | #endif | 31 | #endif | 
