Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

firmware: google: make structure gsmi_dev static

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>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
162aa53b a71bcc1b

+1 -1
+1 -1
drivers/firmware/google/gsmi.c
··· 84 84 u32 address; /* physical address of buffer */ 85 85 }; 86 86 87 - struct gsmi_device { 87 + static struct gsmi_device { 88 88 struct platform_device *pdev; /* platform device */ 89 89 struct gsmi_buf *name_buf; /* variable name buffer */ 90 90 struct gsmi_buf *data_buf; /* generic data buffer */