[RFC PATCH] staging: goldfish: run_command_locked() can be static

kbuild test robot fengguang.wu at intel.com
Thu Jun 28 01:34:48 UTC 2018


Fixes: 82784e31bba8 ("staging: goldfish: Add goldfish sync driver")
Signed-off-by: kbuild test robot <fengguang.wu at intel.com>
---
 goldfish_sync_timeline.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/goldfish/goldfish_sync_timeline.c b/drivers/staging/goldfish/goldfish_sync_timeline.c
index 33b17fd..da8c6db 100644
--- a/drivers/staging/goldfish/goldfish_sync_timeline.c
+++ b/drivers/staging/goldfish/goldfish_sync_timeline.c
@@ -546,8 +546,8 @@ static u32 get_commands_todo_locked(struct goldfish_sync_state *sync_state,
 	return to_do_end;
 }
 
-void run_command_locked(const struct goldfish_sync_hostcmd *todo,
-			struct goldfish_sync_state *sync_state)
+static void run_command_locked(const struct goldfish_sync_hostcmd *todo,
+			       struct goldfish_sync_state *sync_state)
 {
 	switch (todo->cmd) {
 	case CMD_SYNC_READY:
@@ -619,9 +619,9 @@ void run_command_locked(const struct goldfish_sync_hostcmd *todo,
 	dev_info(sync_state->dev, "Done executing sync command\n");
 }
 
-void run_commands_locked(struct goldfish_sync_state *sync_state,
-			 struct goldfish_sync_hostcmd *to_run,
-			 u32 to_do_end)
+static void run_commands_locked(struct goldfish_sync_state *sync_state,
+				struct goldfish_sync_hostcmd *to_run,
+				u32 to_do_end)
 {
 	u32 i;
 


More information about the devel mailing list