Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1371688 > unrolled thread

[PATCH] staging: android: make function static

Started bySudip Mukherjee <sudipm.mukherjee@gmail.com>
First post2016-04-05 17:00 +0200
Last post2016-04-05 17:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] staging: android: make function static Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2016-04-05 17:00 +0200

#1371688 — [PATCH] staging: android: make function static

FromSudip Mukherjee <sudipm.mukherjee@gmail.com>
Date2016-04-05 17:00 +0200
Subject[PATCH] staging: android: make function static
Message-ID<rkACt-5ln-5@gated-at.bofh.it>
The only user of ion_handle_put() is within the file ion.c, so we can
safely make it static. Just to be double sure, checked the function
ion_handle_get() which is static.
So we can make ion_handle_put() static.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
---
 drivers/staging/android/ion/ion.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c
index d4c6207..bbc8bc5 100644
--- a/drivers/staging/android/ion/ion.c
+++ b/drivers/staging/android/ion/ion.c
@@ -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;
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web