Skip to contentSkip to conversation

eicon: Fixed checkpatch warning

PATCH Applied Andreea Hodea 2 participants 3 messages Mar 10, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eicon: Fixed checkpatch warning

drivers/isdn/hardware/eicon/diva_didd.c:32:6: warning: symbol 'DRIVERRELEASE_DIDD' was not declared. Should it be static?

---
 drivers/isdn/hardware/eicon/diva_didd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/isdn/hardware/eicon/diva_didd.c +1 -1
index fab6ccf..21468be 100644
@@ -29,7 +29,7 @@ static char *main_revision = "$Revision: 1.13.6.4 $";
 static char *DRIVERNAME =
 	"Eicon DIVA - DIDD table (http://www.melware.net)";
 static char *DRIVERLNAME = "divadidd";
-char *DRIVERRELEASE_DIDD = "2.0";
+static char *DRIVERRELEASE_DIDD = "2.0";
 
 MODULE_DESCRIPTION("DIDD table driver for diva drivers");
 MODULE_AUTHOR("Cytronics & Melware, Eicon Networks");
Signature · 1 line
1.7.10.4
maintainer
#2 lore raw

From: David Miller <[email protected]>
Date: Sun, 10 Mar 2013 16:56:13 -0400 (EDT)

Quoted 9 lines

From: Andreea Hodea <[email protected]>
Date: Sun, 10 Mar 2013 14:34:36 +0200

Quoted 4 lines

drivers/isdn/hardware/eicon/diva_didd.c:32:6: warning: symbol 'DRIVERRELEASE_DIDD' was not declared. Should it be static?

Applied, thanks.

I had to revert, did you even try to compile the driver after this change?

The symbol is refenced by DbgRegister() calls in diddfunc.c, and a very simple grep would have shown that to you.

Please do not just blindly try to fix checkpatch warnings.