staging: wilc1000: make some variables static
authorHugo Camboulive <hugo.camboulive@gmail.com>
Mon, 4 Jan 2016 22:02:23 +0000 (22:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:11:00 +0000 (15:11 -0800)
terminated_handle is used only in host_interface.c
wilc1000_spi_driver is exported by module_spi_driver()

This fixes a few Sparse warnings.

Signed-off-by: Hugo Camboulive <hugo.camboulive@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/wilc_spi.c

index 34d56cdd16c5a272682c24ac43fb364a8ae96192..69946df84bafbc1f004bd763411b56affac786e5 100644 (file)
@@ -225,7 +225,7 @@ struct join_bss_param {
        u8 start_time[4];
 };
 
-struct host_if_drv *terminated_handle;
+static struct host_if_drv *terminated_handle;
 bool wilc_optaining_ip;
 static u8 P2P_LISTEN_STATE;
 static struct task_struct *hif_thread_handler;
index 86de50c9f7f5ff4faa9f4bcdc2c81b1068b5a8b9..b9dc91de90e8c8175c5a07025c1ec78d79cafd71 100644 (file)
@@ -153,7 +153,7 @@ static const struct of_device_id wilc1000_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, wilc1000_of_match);
 
-struct spi_driver wilc1000_spi_driver = {
+static struct spi_driver wilc1000_spi_driver = {
        .driver = {
                .name = MODALIAS,
                .of_match_table = wilc1000_of_match,
This page took 0.027069 seconds and 5 git commands to generate.