1
0
Fork 0

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>
hifive-unleashed-5.1
Viresh Kumar 2016-01-28 15:50:49 +05:30 committed by Greg Kroah-Hartman
parent 1045451f8a
commit ee9627bce7
1 changed files with 1 additions and 1 deletions

View File

@ -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;