[firefly] [PATCH 2/2] staging: cxt1e1: hwprobe: Fix sparse warning

Matei Oprea eu at opreamatei.ro
Wed Mar 19 00:01:24 EET 2014


This fixes the following sparse warning:
Should it be static?

Signed-off-by: Matei Oprea <eu at opreamatei.ro>
Cc: ROSEdu Kernel Community <firefly at lists.rosedu.org>
---
 drivers/staging/cxt1e1/hwprobe.c |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/cxt1e1/hwprobe.c b/drivers/staging/cxt1e1/hwprobe.c
index 02b4f8f..694047a 100644
--- a/drivers/staging/cxt1e1/hwprobe.c
+++ b/drivers/staging/cxt1e1/hwprobe.c
@@ -40,10 +40,10 @@ void        c4_stopwd (ci_t *);
 struct net_device * __init c4_add_dev (hdw_info_t *, int, unsigned long, unsigned long, int, int);
 
 
-struct s_hdw_info hdw_info[MAX_BOARDS];
+static struct s_hdw_info hdw_info[MAX_BOARDS];
 
 
-void        __init
+static void        __init
 show_two (hdw_info_t *hi, int brdno)
 {
     ci_t       *ci;
@@ -95,7 +95,7 @@ show_two (hdw_info_t *hi, int brdno)
 }
 
 
-void        __init
+static void        __init
 hdw_sn_get (hdw_info_t *hi, int brdno)
 {
     /* obtain hardware EEPROM information */
@@ -145,7 +145,7 @@ hdw_sn_get (hdw_info_t *hi, int brdno)
 }
 
 
-void        __init
+static void        __init
 prep_hdw_info (void)
 {
     hdw_info_t *hi;
@@ -165,7 +165,7 @@ prep_hdw_info (void)
     }
 }
 
-void
+static void
 cleanup_ioremap (void)
 {
     hdw_info_t *hi;
@@ -191,7 +191,7 @@ cleanup_ioremap (void)
 }
 
 
-void
+static void
 cleanup_devs (void)
 {
     hdw_info_t *hi;
@@ -289,7 +289,7 @@ c4_hdw_init (struct pci_dev *pdev, int found)
 }
 
 
-status_t    __init
+static status_t    __init
 c4hw_attach_all (void)
 {
     hdw_info_t *hi;
-- 
1.7.9.5



More information about the firefly mailing list