From: Colin Ian King Date: Mon, 16 Jul 2018 10:42:02 +0000 (+0200) Subject: gnss: ubx: make struct ubx_gserial_ops static X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=55570f1a441787f67efe1aef3b5deae431ca7ee9;p=linux.git gnss: ubx: make struct ubx_gserial_ops static The structure ubx_gserial_ops is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'ubx_gserial_ops' was not declared. Should it be static? Signed-off-by: Colin Ian King Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/gnss/ubx.c b/drivers/gnss/ubx.c index 902b6854b7db6..12568aebb7f6a 100644 --- a/drivers/gnss/ubx.c +++ b/drivers/gnss/ubx.c @@ -59,7 +59,7 @@ static int ubx_set_power(struct gnss_serial *gserial, return -EINVAL; } -const struct gnss_serial_ops ubx_gserial_ops = { +static const struct gnss_serial_ops ubx_gserial_ops = { .set_power = ubx_set_power, };