diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-01-28 15:50:49 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-02-02 21:26:32 -0800 |
commit | ee9627bce7561f772345a329e783149893cfbb55 (patch) | |
tree | f62e15f778ecd8824a2ac7064de56e454db886ec /drivers/staging/greybus/control.c | |
parent | 1045451f8abbfe3628af9bc1ce53da4d57723626 (diff) |
greybus: control: Fix sparse warnings
gb_control_get_version() is not used outside of the file and must be
marked as static. Following sparse warnings are reported today:
greybus/control.c:20:5: warning: symbol 'gb_control_get_version' was not declared. Should it be static?
Fix it by marking gb_control_get_version() 'static'.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/control.c')
-rw-r--r-- | drivers/staging/greybus/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/control.c b/drivers/staging/greybus/control.c index fb0bb1c40d99..ba2754aa513c 100644 --- a/drivers/staging/greybus/control.c +++ b/drivers/staging/greybus/control.c @@ -17,7 +17,7 @@ #define GB_CONTROL_VERSION_MINOR 1 -int gb_control_get_version(struct gb_control *control) +static int gb_control_get_version(struct gb_control *control) { struct gb_interface *intf = control->connection->intf; struct gb_control_version_request request; |