]> git.karo-electronics.de Git - linux-beck.git/commitdiff
greybus: control: Fix sparse warnings
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 28 Jan 2016 10:20:49 +0000 (15:50 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 3 Feb 2016 05:26:32 +0000 (21:26 -0800)
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>
drivers/staging/greybus/control.c

index fb0bb1c40d99b1f8b63509355d4a673d2933ee5c..ba2754aa513c8f2d96edd935dabcec9c67953547 100644 (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;