From: Viresh Kumar Date: Thu, 28 Jan 2016 10:20:49 +0000 (+0530) Subject: greybus: control: Fix sparse warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee9627bce7561f772345a329e783149893cfbb55;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- 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;