Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0045c8dd authored by Markus Böhme's avatar Markus Böhme Committed by Greg Kroah-Hartman
Browse files

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: default avatarMarkus Böhme <markus.boehme@mailbox.org>
Reviewed-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
Reviewed-by: default avatarLaura Abbott <labbott@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c784c82a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -396,7 +396,7 @@ static int ion_handle_put_nolock(struct ion_handle *handle)
	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;
	int ret;
@@ -438,7 +438,7 @@ static struct ion_handle *ion_handle_get_by_id_nolock(struct ion_client *client,
	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)
{
	struct ion_handle *handle;