ion: export functions to enable usage by kernel modules
authorJianxu Zheng <jian.xu.zheng@intel.com>
Thu, 19 Apr 2012 11:45:51 +0000 (19:45 +0800)
committerbuildbot <buildbot@intel.com>
Tue, 24 Apr 2012 23:58:14 +0000 (16:58 -0700)
BZ:32709

EXPORT_SYMBOL/EXPORT_SYMBOL_GPL is missing for the exposed ION
API. This patch adds the EXPORT_SYMBOL to the public ION API.

Change-Id: I88ff618506efd136eb1d1b2648edfb4cea4ae53d
Signed-off-by: Jianxu Zheng <jian.xu.zheng@intel.com>
Reviewed-on: http://android.intel.com:8080/44095
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/gpu/ion/ion.c

index 37b23af..5a9ed2b 100644 (file)
@@ -332,6 +332,7 @@ end:
        ion_buffer_put(buffer);
        return handle;
 }
+EXPORT_SYMBOL(ion_alloc);
 
 void ion_free(struct ion_client *client, struct ion_handle *handle)
 {
@@ -349,6 +350,7 @@ void ion_free(struct ion_client *client, struct ion_handle *handle)
        }
        ion_handle_put(handle);
 }
+EXPORT_SYMBOL(ion_free);
 
 static void ion_client_get(struct ion_client *client);
 static int ion_client_put(struct ion_client *client);
@@ -406,6 +408,7 @@ int ion_phys(struct ion_client *client, struct ion_handle *handle,
        ret = buffer->heap->ops->phys(buffer->heap, buffer, addr, len);
        return ret;
 }
+EXPORT_SYMBOL(ion_phys);
 
 void *ion_map_kernel(struct ion_client *client, struct ion_handle *handle)
 {
@@ -443,6 +446,7 @@ void *ion_map_kernel(struct ion_client *client, struct ion_handle *handle)
        mutex_unlock(&client->lock);
        return vaddr;
 }
+EXPORT_SYMBOL(ion_map_kernel);
 
 struct scatterlist *ion_map_dma(struct ion_client *client,
                                struct ion_handle *handle)
@@ -479,6 +483,7 @@ struct scatterlist *ion_map_dma(struct ion_client *client,
        mutex_unlock(&client->lock);
        return sglist;
 }
+EXPORT_SYMBOL(ion_map_dma);
 
 void ion_unmap_kernel(struct ion_client *client, struct ion_handle *handle)
 {
@@ -494,6 +499,7 @@ void ion_unmap_kernel(struct ion_client *client, struct ion_handle *handle)
        mutex_unlock(&buffer->lock);
        mutex_unlock(&client->lock);
 }
+EXPORT_SYMBOL(ion_unmap_kernel);
 
 void ion_unmap_dma(struct ion_client *client, struct ion_handle *handle)
 {
@@ -509,6 +515,7 @@ void ion_unmap_dma(struct ion_client *client, struct ion_handle *handle)
        mutex_unlock(&buffer->lock);
        mutex_unlock(&client->lock);
 }
+EXPORT_SYMBOL(ion_unmap_dma);
 
 
 struct ion_buffer *ion_share(struct ion_client *client,
@@ -531,6 +538,7 @@ struct ion_buffer *ion_share(struct ion_client *client,
         */
        return handle->buffer;
 }
+EXPORT_SYMBOL(ion_share);
 
 struct ion_handle *ion_import(struct ion_client *client,
                              struct ion_buffer *buffer)
@@ -552,6 +560,7 @@ end:
        mutex_unlock(&client->lock);
        return handle;
 }
+EXPORT_SYMBOL(ion_import);
 
 static const struct file_operations ion_share_fops;
 
@@ -575,6 +584,7 @@ end:
        fput(file);
        return handle;
 }
+EXPORT_SYMBOL(ion_import_fd);
 
 static int ion_debug_client_show(struct seq_file *s, void *unused)
 {
@@ -728,6 +738,7 @@ struct ion_client *ion_client_create(struct ion_device *dev,
 
        return client;
 }
+EXPORT_SYMBOL(ion_client_create);
 
 static void _ion_client_destroy(struct kref *kref)
 {
@@ -768,6 +779,7 @@ void ion_client_destroy(struct ion_client *client)
 {
        ion_client_put(client);
 }
+EXPORT_SYMBOL(ion_client_destroy);
 
 static int ion_share_release(struct inode *inode, struct file* file)
 {