提交 0045c8dd 编写于 作者: M Markus Böhme 提交者: Greg Kroah-Hartman

staging: android: ion: make locally used functions static

Functions ion_handle_put and ion_handle_get_by_id are only used locally
in ion.c, so they should be made static as they used to be before
9590232b ("staging/android/ion : fix a race condition in the ion driver").
Signed-off-by: NMarkus Böhme <markus.boehme@mailbox.org>
Reviewed-by: NSumit Semwal <sumit.semwal@linaro.org>
Reviewed-by: NLaura Abbott <labbott@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c784c82a
...@@ -396,7 +396,7 @@ static int ion_handle_put_nolock(struct ion_handle *handle) ...@@ -396,7 +396,7 @@ static int ion_handle_put_nolock(struct ion_handle *handle)
return ret; return ret;
} }
int ion_handle_put(struct ion_handle *handle) static int ion_handle_put(struct ion_handle *handle)
{ {
struct ion_client *client = handle->client; struct ion_client *client = handle->client;
int ret; int ret;
...@@ -438,8 +438,8 @@ static struct ion_handle *ion_handle_get_by_id_nolock(struct ion_client *client, ...@@ -438,8 +438,8 @@ static struct ion_handle *ion_handle_get_by_id_nolock(struct ion_client *client,
return handle ? handle : ERR_PTR(-EINVAL); return handle ? handle : ERR_PTR(-EINVAL);
} }
struct ion_handle *ion_handle_get_by_id(struct ion_client *client, static struct ion_handle *ion_handle_get_by_id(struct ion_client *client,
int id) int id)
{ {
struct ion_handle *handle; struct ion_handle *handle;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册