firmware: google: make structure gsmi_dev static
authorColin Ian King <colin.king@canonical.com>
Mon, 3 Sep 2018 07:34:02 +0000 (09:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2018 13:25:57 +0000 (15:25 +0200)
The structure gsmi_dev is local to the source and does not need to be
in global scope, so make it static.

Cleans up sparse warning:
symbol 'gsmi_dev' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/google/gsmi.c

index c8f169bf2e27dc0264785f402759a3d15f307ef0..734146eec1b902373d06a057c6213049418fa8da 100644 (file)
@@ -84,7 +84,7 @@ struct gsmi_buf {
        u32 address;                    /* physical address of buffer */
 };
 
-struct gsmi_device {
+static struct gsmi_device {
        struct platform_device *pdev;   /* platform device */
        struct gsmi_buf *name_buf;      /* variable name buffer */
        struct gsmi_buf *data_buf;      /* generic data buffer */