From baa8692f930f00bb83cfe1f73abd04584b28fc31 Mon Sep 17 00:00:00 2001 From: Mitchel Humpherys Date: Fri, 2 Nov 2012 16:35:39 -0700 Subject: [PATCH] ion: update API stubs The stubs for some of the Ion functions have gotten stale since the last Ion API change. Update these to avoid compile errors when Ion is not included in the build. Change-Id: Idfe475c0f1990e5a9b5919434a27ae9dd63ffcb4 Signed-off-by: Mitchel Humpherys --- include/linux/ion.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/linux/ion.h b/include/linux/ion.h index 85e500262db..73fb9958d43 100644 --- a/include/linux/ion.h +++ b/include/linux/ion.h @@ -418,7 +418,7 @@ static inline struct sg_table *ion_sg_table(struct ion_client *client, } static inline void *ion_map_kernel(struct ion_client *client, - struct ion_handle *handle, unsigned long flags) + struct ion_handle *handle) { return ERR_PTR(-ENODEV); } @@ -453,6 +453,12 @@ static inline int ion_map_iommu(struct ion_client *client, return -ENODEV; } +static inline int ion_handle_get_size(struct ion_client *client, + struct ion_handle *handle, unsigned long *size) +{ + return -ENODEV; +} + static inline void ion_unmap_iommu(struct ion_client *client, struct ion_handle *handle, int domain_num, int partition_num)