Commit ee9627bc authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 1045451f
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#define GB_CONTROL_VERSION_MINOR 1 #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_interface *intf = control->connection->intf;
struct gb_control_version_request request; struct gb_control_version_request request;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment